1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-21 17:58:47 +02:00
phorge-phorge/src/applications/project
epriestley 043e0db8d3 When selecting implicit column positions, actually create them
Summary:
Ref T4807. This is an alternative to D10179. The problem these diffs solve is that I want to be able to reorder a column's positions without having to load the actual objects, but that's difficutl because two positions may have the same sequence number (and I think it's good that we allow that, since it makes a bunch of other stuff way easier).

Instead of using the object ID (e.g., the task ID) to reorder positions with the same sequence, use the position itself. This is a little easier, is less ambiguous if columns eventually have several types of objects, and produces a better behavior when old objects are freshly added to a board. For example, if you tag `T300` with `#project`, this new rule will push it to the top of "Backlog" while the old rule might have buried it deep. I think this behavior is desirable and more "natural".

When creating a group of new rows, we do order the batch by ID, so a group of freshly-tagged objects float to the top togehter in ID order. This seems like the most natural rule, too.

Test Plan:
  - Loaded some boards with implicit objects on them (freshly tagged tasks) and saw rows create.
  - Verified new rows created in the right order.
  - Dragged some tasks around.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T4807

Differential Revision: https://secure.phabricator.com/D10180
2014-08-08 08:10:49 -07:00
..
application Workboards - add new "initialization" flow 2014-08-05 13:40:41 -07:00
capability Simplify the implementation of PhabricatorPolicyCapability subclasses 2014-07-25 08:25:42 +10:00
conduit First stab at a conduit method for creating projects. 2014-08-05 09:29:30 -07:00
config Change double quotes to single quotes. 2014-06-09 11:36:50 -07:00
constants Move Project transaction storage to modern tables 2013-10-22 13:49:28 -07:00
controller Add UI for alternate board ordering rules 2014-08-08 08:10:29 -07:00
customfield Fix PhabricatorProjectCustomFields to use storage correctly. 2014-07-11 20:20:37 -07:00
edge Modernize Project/Object edges 2014-07-17 15:42:19 -07:00
editor Give projects a proper on-demand datasource 2014-07-17 16:35:54 -07:00
events Implement PhabricatorProjectInterface on ManiphestTask 2014-08-07 15:44:12 -07:00
exception Delete license headers from files 2012-11-05 11:16:51 -08:00
icon Add 4 more project icons 2014-07-13 10:18:48 -07:00
interface Implement PhabricatorProjectInterface for marking that objects can be tagged with projects 2014-06-03 17:19:40 -07:00
lipsum Migrate project profiles onto projects, and remove ProjectProfile object 2014-02-10 14:32:14 -08:00
phid Rename PHIDType classes 2014-07-24 08:05:46 +10:00
query When selecting implicit column positions, actually create them 2014-08-08 08:10:49 -07:00
remarkup Rename PhutilRemarkupRule subclasses 2014-08-05 00:55:43 +10:00
search Rename PHIDType classes 2014-07-24 08:05:46 +10:00
storage Add UI for alternate board ordering rules 2014-08-08 08:10:29 -07:00
typeahead Workboards - add new "initialization" flow 2014-08-05 13:40:41 -07:00
view Allow workboards to be filtered with ApplicationSearch 2014-05-20 11:42:05 -07:00