Page MenuHomePhabricator

Make the client authoritative for "Cancel" actions
ClosedPublic

Authored by epriestley on Mar 25 2021, 9:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jan 27, 10:42 AM
Unknown Object (File)
Sat, Jan 25, 8:48 PM
Unknown Object (File)
Wed, Jan 22, 10:24 AM
Unknown Object (File)
Wed, Jan 22, 12:55 AM
Unknown Object (File)
Wed, Jan 22, 12:20 AM
Unknown Object (File)
Tue, Jan 21, 7:24 PM
Unknown Object (File)
Fri, Jan 17, 12:30 AM
Unknown Object (File)
Sun, Jan 12, 10:57 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.