Page MenuHomePhabricator

Hide milestone columns when milestone is archived
ClosedPublic

Authored by epriestley on Feb 10 2016, 8:32 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 20, 6:15 PM
Unknown Object (File)
Wed, Dec 18, 1:07 AM
Unknown Object (File)
Wed, Dec 18, 1:07 AM
Unknown Object (File)
Sat, Dec 7, 10:49 PM
Unknown Object (File)
Fri, Dec 6, 1:50 PM
Unknown Object (File)
Tue, Dec 3, 8:35 PM
Unknown Object (File)
Sun, Dec 1, 1:12 PM
Unknown Object (File)
Thu, Nov 28, 4:46 AM
Subscribers
Tokens
"Like" token, awarded by Luke081515.2."Like" token, awarded by jcowgar.

Details

Summary

Fixes T10310. This replaces the "Hide Column" / "Show Column" option for milestone columns with one that archives/unarchives, and hides milestone columns when the milestone project is archived.

Test Plan
  • Hid and unhid a normal column (got normal dialogs).
  • Hid and unhid a milestone column (got "archive project" dialogs, underlying project archived/unarchived, column vanished).

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

hach-que retitled this revision from to Hide milestone columns when milestone is archived.
hach-que updated this object.
hach-que edited the test plan for this revision. (Show Details)
hach-que added reviewers: chad, epriestley.
hach-que edited edge metadata.

@epriestley I might not get a chance to land this myself, so feel free to land it if you accept it.

epriestley edited reviewers, added: hach-que; removed: epriestley.

I like this behavior, but want to change the patch a little bit. In particular:

  • I think we can just put this logic in $column->isHidden() to simplify things a little bit (IIRC, that already has some other logic).
  • I want to leave the "Hide" action present in the menu, but disable it and let the user select it for an explanation of why it's not available.

Lemme steal this and do those bits.

I guess we could also make "Hide Column" work and mean "Archive Project". Maaaybe I'll just do that? I'm worried that it may be a little surprising, but there's no real cost to undoing it and it's probably better than getting a dialog telling you to go somewhere else to do the thing you wanted to do.

  • Put logic in isHidden().
  • Continue showing "Hide Column" and "Show Column" on these columns.
  • When the user selects these actions, explain that visibility is tied to subproject status and let them archive/unarchive.
epriestley edited the test plan for this revision. (Show Details)
chad edited edge metadata.
This revision is now accepted and ready to land.Feb 12 2016, 4:00 PM
This revision was automatically updated to reflect the committed changes.