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)
Thu, Apr 11, 8:06 AM
Unknown Object (File)
Tue, Apr 2, 5:44 PM
Unknown Object (File)
Wed, Mar 27, 9:41 PM
Unknown Object (File)
Mar 18 2024, 7:50 PM
Unknown Object (File)
Mar 18 2024, 6:28 PM
Unknown Object (File)
Mar 18 2024, 6:28 PM
Unknown Object (File)
Mar 18 2024, 6:19 PM
Unknown Object (File)
Mar 16 2024, 11:28 PM
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.