Page MenuHomePhabricator

Implement "Sort by Points" on workboards
ClosedPublic

Authored by epriestley on Mar 11 2019, 4:48 PM.
Tags
None
Referenced Files
F13167913: D20276.diff
Tue, May 7, 7:26 AM
F13162776: D20276.id.diff
Mon, May 6, 3:36 PM
Unknown Object (File)
Fri, May 3, 6:16 AM
Unknown Object (File)
Thu, May 2, 9:31 AM
Unknown Object (File)
Wed, May 1, 10:31 PM
Unknown Object (File)
Mon, Apr 29, 11:50 AM
Unknown Object (File)
Mon, Apr 29, 7:09 AM
Unknown Object (File)
Thu, Apr 25, 1:05 AM
Subscribers
None

Details

Summary

Depends on D20275. Fixes T10578. This is a static sorting (like "By Date Created") where you can't change point values by dragging. You can still drag cards between columns, or use the "Edit" icon to change point values.

Test Plan

Screen Shot 2019-03-11 at 9.45.02 AM.png (499×465 px, 25 KB)

Diff Detail

Repository
rP Phabricator
Branch
grip12
Lint
Lint Passed
SeverityLocationCodeMessage
Advicesrc/applications/project/order/PhabricatorProjectColumnPointsOrder.php:13XHP16TODO Comment
Unit
Tests Passed
Build Status
Buildable 22254
Build 30433: Run Core Tests
Build 30432: arc lint + arc unit

Event Timeline

This is a static sorting (like "By Date Created") where you can't change point values by dragging.

This is still a little more sensical than changing the date created though, isn't it?

src/applications/project/order/PhabricatorProjectColumnCreatedOrder.php
30–31

This is going to conflict with D20281 but I'm sure you're on top of it.

src/applications/project/order/PhabricatorProjectColumnPointsOrder.php
13

fa-ellipsis-h? fa-cubes? fa-exclamation-circle? fa-map-pin? I think I like fa-map-pin the best. This concludes today's bike shedding.

36

Is this to call out, uh, "pointless" tasks to encourage someone to assign some points to them?

This revision is now accepted and ready to land.Mar 12 2019, 8:33 PM

This is still a little more sensical than changing the date created though, isn't it?

Changing point values is definitely an actual operation. The major issue is that if you drag a card between other cards with values "10" and "39,000", what value do we assign? 10? 39,000? 11? 38,999? Average them to produce 19,505? All these answers are probably wrong under some schemes like "Always Assign Fibonacci Numbers as Costs" which is a Real Thing that has a wiki page:

https://en.wikipedia.org/wiki/Fibonacci_scale_(agile)

I think the only good answer is probably "Prompt the user to pick a number between 10 and 39,000 inclusive", but I think they probably might as well just click the edit icon to do that anyway. We could tweak this if we get a pile of feedback or something (or let you configure a discrete set of possible point values, then put headers on this view if you do) since there's no fundamental problem with the underlying operation.

src/applications/project/order/PhabricatorProjectColumnCreatedOrder.php
30–31

Yeah, D20281 is way at the end of this sequence.

src/applications/project/order/PhabricatorProjectColumnPointsOrder.php
36

Yeah, similar to how "Unowned" tasks are on top and "Needs Triage" is the highest priority.

  • Use "fa-map-pin", which I guess is sort of a pun about "points" on a map?
This revision was automatically updated to reflect the committed changes.