Page MenuHomePhabricator

Make the client authoritative for "Cancel" actions
ClosedPublic

Authored by epriestley on Mar 25 2021, 9:00 PM.
Tags
None
Referenced Files
F15503439: D21649.diff
Mon, Apr 14, 9:58 AM
F15492828: D21649.id51542.diff
Sat, Apr 12, 6:43 PM
F15470921: D21649.diff
Sat, Apr 5, 2:09 AM
F15468019: D21649.diff
Thu, Apr 3, 7:23 PM
F15464767: D21649.diff
Wed, Apr 2, 12:44 PM
F15444155: D21649.id51518.diff
Thu, Mar 27, 8:10 AM
F15437894: D21649.id.diff
Tue, Mar 25, 10:01 PM
F15433017: D21649.diff
Mon, Mar 24, 8:53 PM
Subscribers
None

Details

Summary

Ref T13559. When the user clicks the "Cancel" button, we sometimes take it to mean "delete" (when the comment is empty).

Both the client and server make a decision about this, and they may not agree, which causes the client to fall out of sync.

Make the client responsible for deciding whether it wants to interpret a click on the "Cancel" button as a "revert" or a "delete".

Test Plan

Cancelled empty and nonempty comments, etc. See followup changes.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Mar 29 2021, 4:00 PM
This revision was automatically updated to reflect the committed changes.