Page MenuHomePhabricator

Don't publish "empty" inline comments
ClosedPublic

Authored by epriestley on May 4 2020, 4:26 PM.
Tags
None
Referenced Files
F15584243: D21211.id50525.diff
Thu, May 8, 2:16 AM
F15572679: D21211.id.diff
Mon, May 5, 5:09 PM
F15464790: D21211.id50525.diff
Apr 2 2025, 12:47 PM
F15455857: D21211.diff
Mar 30 2025, 5:19 AM
F15440471: D21211.id50525.diff
Mar 26 2025, 12:57 PM
F15376028: D21211.id50512.diff
Mar 13 2025, 1:21 AM
F15333254: D21211.diff
Mar 8 2025, 1:18 AM
F15284023: D21211.id50525.diff
Mar 4 2025, 9:04 AM
Subscribers
None

Details

Summary

Ref T13513. Currently, if you start an inline and then submit overall comments, we publish an empty inline. This is literally faithful to what you did, but almost certainly not the intent.

Instead, simply ignore empty inlines at publishing time (and ignore "done" state changes for those comments).

We could delete them outright, but if we do, they'll break if you have another window open with the empty inline (since the stored comment won't exist anymore). At least for now, leave them in place.

Test Plan

Created empty inlines, submitted comments, no longer saw them publish.

Diff Detail

Repository
rP Phabricator
Branch
inline6
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 24329
Build 33516: Run Core Tests
Build 33515: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.May 4 2020, 8:14 PM
This revision was automatically updated to reflect the committed changes.