Page MenuHomePhabricator

If the user cancels a workboard drop flow, put things back where they were
ClosedPublic

Authored by epriestley on Mar 21 2019, 8:41 PM.
Tags
None
Referenced Files
F15543813: D20305.id48503.diff
Sat, Apr 26, 1:17 AM
F15537638: D20305.id.diff
Thu, Apr 24, 2:49 PM
F15530654: D20305.diff
Wed, Apr 23, 6:47 AM
F15448953: D20305.id48503.diff
Fri, Mar 28, 7:51 AM
F15437542: D20305.id48503.diff
Mar 25 2025, 8:12 PM
F15436471: D20305.id48459.diff
Mar 25 2025, 2:28 PM
F15431991: D20305.id.diff
Mar 24 2025, 3:43 PM
F15426242: D20305.diff
Mar 23 2025, 7:50 AM
Subscribers
None

Details

Summary

Ref T13074. If you hit a prompt on a drop operation (today: MFA; in the future, maybe "add a comment" or "assign this task"), we currently leave the board in a bad semi-frozen state if you cancel the workflow by pressing "Cancel" on the dialog.

Instead, put things back the way they were.

Test Plan

Dragged an MFA-required card, cancelled the MFA prompt, got a functional board instead of a semi-frozen board I needed to reload.

Diff Detail

Repository
rP Phabricator
Branch
trigger11
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 22323
Build 30538: Run Core Tests
Build 30537: arc lint + arc unit

Event Timeline

amckinley added inline comments.
webroot/rsrc/js/application/projects/WorkboardBoard.js
517

Should this have a corresponding lock() somewhere?

This revision is now accepted and ready to land.Mar 25 2019, 8:57 PM
webroot/rsrc/js/application/projects/WorkboardBoard.js
517

The paired lock() happens when you first pick up the card.

We unlock() on success (below, in _oncardupdate()) already, this just adds an unlock when we complete the drag but have failed.

This revision was automatically updated to reflect the committed changes.