Page MenuHomePhabricator

When a user clicks "Cancel" on an inline comment to leave the "Editing" state, save the state change
ClosedPublic

Authored by epriestley on Apr 29 2020, 6:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 21, 4:22 AM
Unknown Object (File)
Sat, Nov 16, 5:48 PM
Unknown Object (File)
Thu, Nov 14, 9:38 AM
Unknown Object (File)
Fri, Nov 8, 11:10 AM
Unknown Object (File)
Sun, Nov 3, 6:05 AM
Unknown Object (File)
Tue, Oct 29, 10:04 PM
Unknown Object (File)
Mon, Oct 28, 6:36 PM
Unknown Object (File)
Oct 15 2024, 12:59 PM
Subscribers
None

Details

Summary

Ref T13513. Now that the "currently being edited" state of inlines is saved on the server side, clear the flag when the user clicks "Cancel" to leave the "editing" state on the client.

This also serves to delete empty comments.

Test Plan
  • Clicked a line number to create a new comment. Then:
    • Clicked "Cancel". Reloaded page, saw no more comment.
    • Typed text, saved. Reloaded page, saw non-editing draft. Clicked "Edit", reloaded page, saw editing draft. Clicked "Cancel", reloaded page, saw non-editing draft.
    • Typed text, saved. Clicked "Edit", deleted text, saved. Reloaded page, saw no more comment.

Diff Detail

Repository
rP Phabricator
Branch
inline3
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 24273
Build 33435: Run Core Tests
Build 33434: arc lint + arc unit