Page MenuHomePhabricator

Make the client authoritative for "Cancel" actions
ClosedPublic

Authored by epriestley on Mar 25 2021, 9:00 PM.
Tags
None
Referenced Files
F15585626: D21649.id51518.diff
Thu, May 8, 10:24 AM
F15574517: D21649.diff
Tue, May 6, 1:55 AM
F15573586: D21649.diff
Mon, May 5, 9:18 PM
F15562174: D21649.id51542.diff
Wed, Apr 30, 12:54 AM
F15546480: D21649.diff
Sat, Apr 26, 3:50 PM
F15545393: D21649.diff
Sat, Apr 26, 10:35 AM
F15542910: D21649.id.diff
Fri, Apr 25, 7:44 PM
F15538295: D21649.diff
Thu, Apr 24, 6:27 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.