Page MenuHomePhabricator

Hide milestone columns when milestone is archived
ClosedPublic

Authored by epriestley on Feb 10 2016, 8:32 AM.
Tags
None
Referenced Files
F14092096: D15231.diff
Mon, Nov 25, 4:04 AM
Unknown Object (File)
Sat, Nov 23, 2:01 AM
Unknown Object (File)
Fri, Nov 22, 9:04 PM
Unknown Object (File)
Thu, Nov 21, 10:10 AM
Unknown Object (File)
Thu, Nov 21, 9:36 AM
Unknown Object (File)
Sat, Nov 16, 7:31 PM
Unknown Object (File)
Oct 19 2024, 11:07 PM
Unknown Object (File)
Oct 13 2024, 9:42 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
Branch
milestonecol
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 10661
Build 13093: Run Core Tests
Build 13092: arc lint + arc unit

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.