1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-21 09:48:47 +02:00
phorge-phorge/src/applications
epriestley 23b835b647 Begin lifting column layout logic out of ColumnPositionQuery
Summary:
Ref T10010. This is a precursor to D15171, which I'll eventually rebuild on top of these changes.

Currently, ColumnPositionQuery does a lot of "column layout" stuff that's very similar to the Milestone/Subproject stuff that needs to happen in D15171. The current approach there ended up splitting this layout stuff across two unrelated classes (ColumnPositionQuery + BoardViewController), neither of which is a particularly great place to do it -- the Query is too low-level, and the Controller is too high-level.

Instead, introduce a new "LayoutEngine" which does all this layout stuff. Swap two of the four places that we query this stuff over to the new engine:

  - "Project (Column)" on tasks.
  - Transaction generation when moving cards.

These sites aren't swapped by this diff, but will be by the next one:

  - Actually applying transactions.
  - Main layout for boards (this could swap easily now, but applying transactions currently relies on position writes having taken place, so it can't swap until the other one swaps).

Once everything is swapped over, I should be able to add the D15171 logic to LayoutEngine instead of BoardViewController and end up with a cleaner approach overall.

One particularly benefit is that //looking// at a board won't do a bunch of position writes anymore, which wasn't a big deal, but which I was a bit uneasy with.

Test Plan:
  - Viewed tasks that are on boards, saw column annotations in project list.
  - Moved cards between columns on a board.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10010

Differential Revision: https://secure.phabricator.com/D15174
2016-02-03 15:05:32 -08:00
..
almanac Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
aphlict Update "should not run as root" message 2015-10-31 11:20:23 +00:00
arcanist/conduit Remove remaining arcanist project code 2015-07-08 19:37:28 +10:00
audit Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
auth Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
badges Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
base Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
cache Write 500 words on how to restart webservers 2015-12-02 09:16:10 -08:00
calendar Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
celerity Swap charts from gRaphael to D3 2016-02-01 10:36:59 -08:00
chatlog Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
conduit Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
config Use large text columns to store IP addresses 2016-02-02 10:13:14 -08:00
conpherence Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
console Separate external editor integration from callsigns 2016-01-04 06:54:01 -08:00
countdown Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
daemon Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
dashboard Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
differential Move PhabricatorHovercard to PHUIHovercard 2016-02-03 16:26:30 +00:00
diffusion Move PhabricatorHovercard to PHUIHovercard 2016-02-03 16:26:30 +00:00
diviner Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
doorkeeper Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
draft/storage Fix EditEngine preview/draft for first comment on a task you didn't create 2015-12-05 09:57:45 -08:00
drydock Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
fact Swap charts from gRaphael to D3 2016-02-01 10:36:59 -08:00
feed Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
files Fix mishandling of chunk threshold in Diffusion for installs with no chunk engines available 2016-02-03 14:46:21 -08:00
flag Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
fund Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
harbormaster Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
help Begin modularizing main menu items 2016-01-04 06:57:09 -08:00
herald Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
home Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
legalpad Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
lipsum Improve lispum generation of pastes 2015-12-25 07:41:38 -08:00
macro Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
maniphest Move PhabricatorHovercard to PHUIHovercard 2016-02-03 16:26:30 +00:00
meta Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
metamta Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
multimeter Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
notification Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
nuance Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
oauthserver Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
owners Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
passphrase Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
paste Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
people Move PhabricatorHovercard to PHUIHovercard 2016-02-03 16:26:30 +00:00
phame Flip layout on PhameHome 2016-02-02 15:11:02 -08:00
phid Move PhabricatorHovercard to PHUIHovercard 2016-02-03 16:26:30 +00:00
phlux Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
pholio Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
phortune Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
phpast Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
phragment Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
phrequent Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
phriction Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
phurl Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
policy Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
ponder Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
project Begin lifting column layout logic out of ColumnPositionQuery 2016-02-03 15:05:32 -08:00
releeph Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
remarkup/conduit phtize all the things 2015-05-22 21:16:39 +10:00
repository Use large text columns to store IP addresses 2016-02-02 10:13:14 -08:00
search Move PhabricatorHovercard to PHUIHovercard 2016-02-03 16:26:30 +00:00
settings Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
slowvote Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
spaces Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
subscriptions Allow any user to watch any project they can see 2016-01-19 19:38:30 -08:00
support/application Implement the getName method in PhabricatorApplication subclasses 2014-07-23 23:52:50 +10:00
system Fully modularize DestructionEngine 2015-12-21 17:03:44 -08:00
tokens Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
transactions Implement subproject/milestone conflict resolution rules 2016-02-02 13:12:27 -08:00
typeahead Always give users "fa-user" icons in tokenizers 2016-02-01 09:49:12 -08:00
uiexample Move PhabricatorHovercard to PHUIHovercard 2016-02-03 16:26:30 +00:00
xhprof Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00