Page MenuHomePhabricator

Fix inline comment links for non-visible comments
ClosedPublic

Authored by epriestley on Feb 14 2014, 12:05 AM.
Tags
None
Referenced Files
F18763373: D8224.id.diff
Mon, Oct 6, 11:58 PM
F18763033: D8224.id.diff
Mon, Oct 6, 10:13 PM
F18758781: D8224.diff
Sun, Oct 5, 11:39 PM
F18757743: D8224.diff
Sun, Oct 5, 7:15 PM
F18629803: D8224.id19567.diff
Sep 16 2025, 9:55 AM
F18624126: D8224.diff
Sep 15 2025, 7:03 PM
F18461449: D8224.id.diff
Sep 1 2025, 8:32 PM
F18444061: D8224.diff
Aug 31 2025, 7:26 PM
Subscribers

Details

Summary

Ref T2222. Restore this funky is-visible / inline-is-elsewhere logic.

Test Plan

Updated a revision, saw all the inlines render properly when looking at various diffs and versus-diffs. Clicked inline links.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

src/applications/differential/editor/DifferentialRevisionEditor.php
705

Fixes a similar content source issue to the CommentEditor one -- this one was on the web update pathway.

src/applications/differential/view/DifferentialTransactionView.php
133–135

I realized that this was probably wrong too, and would sort 11 before 9. Since we should rarely have files which are more than 2^16 lines long, and also rarely have comments that are more than 2^16 lines long, just do some bit fiddling.