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
F14096500: D8420.diff
Tue, Nov 26, 3:48 AM
Unknown Object (File)
Mon, Nov 25, 1:34 AM
Unknown Object (File)
Thu, Nov 21, 2:39 PM
Unknown Object (File)
Sat, Nov 16, 7:15 PM
Unknown Object (File)
Oct 24 2024, 12:48 PM
Unknown Object (File)
Oct 21 2024, 6:26 AM
Unknown Object (File)
Oct 21 2024, 12:46 AM
Unknown Object (File)
Oct 20 2024, 11:49 PM

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

Repository
rP Phabricator
Branch
boardsauce6
Lint
Lint Passed
Unit
Tests Passed

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.