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)
Thu, Mar 28, 4:17 AM
Unknown Object (File)
Wed, Mar 27, 11:12 PM
Unknown Object (File)
Feb 21 2024, 6:28 AM
Unknown Object (File)
Feb 21 2024, 6:28 AM
Unknown Object (File)
Feb 21 2024, 6:28 AM
Unknown Object (File)
Feb 7 2024, 2:07 AM
Unknown Object (File)
Feb 4 2024, 12:57 AM
Unknown Object (File)
Jan 18 2024, 7:20 AM
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.