Page MenuHomePhabricator

Workboards - add task create + improve task placement wrt priority edits
ClosedPublic

Authored by btrahan on Mar 6 2014, 1:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 30, 12:09 AM
Unknown Object (File)
Sun, Apr 28, 5:39 AM
Unknown Object (File)
Fri, Apr 26, 11:46 PM
Unknown Object (File)
Wed, Apr 24, 9:54 PM
Unknown Object (File)
Sun, Apr 21, 4:12 PM
Unknown Object (File)
Wed, Apr 17, 3:16 PM
Unknown Object (File)
Sun, Apr 14, 1:21 AM
Unknown Object (File)
Apr 2 2024, 7:18 AM

Details

Summary

Fixes T4553, T4407.

Test Plan

created tasks and they showed up in the proper column. edited task priority and they moved about sensically.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley edited edge metadata.

Nice, this looks about as reasonable as we're likely to get to me.

src/applications/project/controller/PhabricatorProjectBoardController.php
149

Maybe put this in the header? Currently, there's some hard-coded edit stuff inside PHUIWorkpanelView, but I think that should be like addAction(...) or something, and then we should just add the "add" and "edit" actions as applicable.

(Generally, the footer isn't always easily accessible right now because columns can have varied heights.)

Not sure if @chad has opinions on this.

This is trivial to mess with later, in any case.

This revision is now accepted and ready to land.Mar 6 2014, 1:30 AM

How much more work would we need to have a message sent to a board page for each task associated with the board once it was updated? It would be cool to have live updates I think.

src/applications/project/controller/PhabricatorProjectBoardController.php
149

@chad did have a verbal preference of having it in the header but the mock image had it in the bottom. I'll put it in the header

P1081 was my brief effort at doing that if it's helpful -- then I realized I'd have to do this diff and gave up. :P

I think we reasonably look into live update stuff once Aphlict gets the fixes for Conpherence. One issue is that it would expose us to a bunch of races -- like if the server has "ABCD" and applies "A after B", then "D after A" in that order, it will end up with "BADC". If the client receives them out of order, it would get "DBAC".

We could fix this by, e.g., putting a logical clock / version number on the column, and sending back a "version" and all of the PHIDs in the column in order, and then the client just fixes the order to be correct if it gets a message with a larger version. But this would limit our ability to, e.g., animate it nicely.

btrahan updated this revision to Unknown Object (????).Mar 6 2014, 2:40 AM
  • make it a "plus" in the header instead
    • some code to support that in the View class
  • fix a bug on default column, where we need to pull all the project tasks as "no col" means "default col". make this a separate code path since its much beefier in terms of data pulling.