Commit 71c89bd
epriestley
Pass all adjacent card PHIDs from the client to the server when moving a card
Summary:
Depends on D20321. Fixes T12175. Ref T13074. Now that before/after PHIDs are suggestions, we can give the server a more complete view of what the client is trying to do so we're more likely to get a good outcome if the client view is out of date.
Instead of passing only the one directly adjacent card PHID, pass all the card PHIDs that the client thinks are in the same group.
(For gigantic columns with tens of thousands of tasks this might need some tweaking -- like, slice both lists down to 10 items -- but we can cross that bridge when we come to it.)
Test Plan:
- Dragged some cards around to top/bottom/middle positions, saw good positioning in all cases.
- In two windows, dragged stuff around on the same board. At least at first glance, conflicting simultaneous edits seemed to do reasonable things.
Reviewers: amckinley
Reviewed By: amckinley
Maniphest Tasks: T13074, T12175
Differential Revision: https://secure.phabricator.com/D203221 parent 6138e50 commit 71c89bd
File tree
3 files changed
+40
-60
lines changed- resources/celerity
- src/applications/project/controller
- webroot/rsrc/js/application/projects
3 files changed
+40
-60
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
412 | | - | |
| 412 | + | |
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
| |||
737 | 737 | | |
738 | 738 | | |
739 | 739 | | |
740 | | - | |
| 740 | + | |
741 | 741 | | |
742 | 742 | | |
743 | 743 | | |
| |||
1015 | 1015 | | |
1016 | 1016 | | |
1017 | 1017 | | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
1021 | | - | |
1022 | | - | |
1023 | | - | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
1027 | | - | |
1028 | | - | |
1029 | | - | |
1030 | 1018 | | |
1031 | 1019 | | |
1032 | 1020 | | |
| |||
1940 | 1928 | | |
1941 | 1929 | | |
1942 | 1930 | | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
1943 | 1943 | | |
1944 | 1944 | | |
1945 | 1945 | | |
| |||
Lines changed: 6 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 15 | + | |
| 16 | + | |
27 | 17 | | |
28 | 18 | | |
29 | 19 | | |
| |||
98 | 88 | | |
99 | 89 | | |
100 | 90 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
108 | 95 | | |
109 | 96 | | |
110 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
412 | | - | |
413 | | - | |
| 412 | + | |
| 413 | + | |
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
| |||
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
427 | | - | |
428 | | - | |
429 | | - | |
| 427 | + | |
430 | 428 | | |
431 | 429 | | |
432 | 430 | | |
433 | | - | |
434 | | - | |
435 | 431 | | |
436 | | - | |
437 | 432 | | |
438 | | - | |
| 433 | + | |
439 | 434 | | |
| 435 | + | |
| 436 | + | |
440 | 437 | | |
441 | 438 | | |
442 | 439 | | |
443 | 440 | | |
444 | 441 | | |
445 | 442 | | |
446 | 443 | | |
447 | | - | |
448 | | - | |
449 | | - | |
| 444 | + | |
450 | 445 | | |
451 | 446 | | |
452 | 447 | | |
453 | | - | |
454 | | - | |
455 | 448 | | |
456 | | - | |
457 | 449 | | |
458 | | - | |
| 450 | + | |
459 | 451 | | |
| 452 | + | |
| 453 | + | |
460 | 454 | | |
461 | 455 | | |
462 | 456 | | |
| |||
476 | 470 | | |
477 | 471 | | |
478 | 472 | | |
479 | | - | |
480 | | - | |
| 473 | + | |
| 474 | + | |
481 | 475 | | |
482 | 476 | | |
483 | 477 | | |
| |||
496 | 490 | | |
497 | 491 | | |
498 | 492 | | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
| 493 | + | |
| 494 | + | |
507 | 495 | | |
508 | 496 | | |
509 | 497 | | |
| |||
530 | 518 | | |
531 | 519 | | |
532 | 520 | | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
533 | 526 | | |
534 | 527 | | |
535 | 528 | | |
536 | 529 | | |
537 | 530 | | |
538 | 531 | | |
539 | | - | |
| 532 | + | |
540 | 533 | | |
541 | 534 | | |
542 | 535 | | |
| |||
0 commit comments