1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-22 12:41:19 +01:00
phorge-phorge/src/applications/differential
epriestley dbdfac1e07 Recover inline comments which are "adjusted" off the end of a diff
Summary:
See PHI1834. Currently, the inline adjustment engine can sometime "adjust" an inline off the end of a diff. If it does, we lay it out on an invalid display line here and never render it.

Instead, make sure that layout never puts a comment on an invalid line, so the UI is robust against questionable decisions by the adjustment engine: no adjustment should be able to accidentally discard an inline.

Test Plan:
  - Created a two diff revision, where Diffs 1 and 2 have "alphabet.txt" with A-Z on one line each. The file is unchanged across diffs; some other file is changed.
  - Added a comment to lines P-Z of Diff 1.
  - Before: comment is adjusted out of range on Diff 2 and not shown in the UI.
  - After: comment is still adjusted out of range internally, but now corrected into the display range and shown.

Differential Revision: https://secure.phabricator.com/D21435
2020-08-05 13:12:52 -07:00
..
__tests__ Make "Highlight As..." sticky across reloads in Diffusion and Differential 2020-04-19 08:58:39 -07:00
application Add a test to verify that all routing maps are plausibly valid, and remove some dead routes 2020-02-14 18:06:24 -08:00
capability Simplify the implementation of PhabricatorPolicyCapability subclasses 2014-07-25 08:25:42 +10:00
command Fix another stray "msort()/msortv()" issue 2019-06-17 13:20:10 -07:00
conduit Make the "attach_inlines" parameter to "differential.createcomment" a no-op 2020-05-07 15:55:37 -07:00
config Remove all whitespace options/configuration everywhere 2019-02-19 13:09:29 -08:00
constants Update the diff table of contents to use hierarchical views and edit distance renames 2020-04-28 12:27:37 -07:00
controller Roughly support inline comment suggestions 2020-05-20 14:26:37 -07:00
customfield Fix some PHP 7.4 array index access issues 2020-04-26 08:35:06 -07:00
doorkeeper Remove "metamta.*.subject-prefix" options 2019-01-17 19:18:50 -08:00
edge Update parent/child revision timeline messages to use modern language ("parent revision") 2018-07-13 09:02:10 -07:00
editor Roughly support inline comment suggestions 2020-05-20 14:26:37 -07:00
engine Allow "has draft inlines?" queries to overheat 2020-05-20 14:25:34 -07:00
engineextension Add a "commits" attachment to "differential.diff.search" for retrieving local commit information 2018-04-19 17:25:06 -07:00
exception Remove an unused class 2015-01-03 09:07:32 +11:00
field Move misplaced validation for ambiguous fields in "Test Plan" to the right place 2017-06-30 06:36:05 -07:00
garbagecollector Add a very forgiving GC for Differential viewstate information 2020-04-23 14:17:48 -07:00
harbormaster Don't try to publish build results to bare diffs 2019-02-13 12:19:29 -08:00
herald Implement an "Author's packages" Herald field for Differential 2020-01-22 18:27:51 -08:00
lipsum Fix deprecated argument order for "implode()" 2019-10-17 09:11:27 -07:00
mail Update out-of-date API calls when rendering diffs inline in email 2020-05-19 10:39:58 -07:00
management For changesets that affect binaries, use the new binary file content hash as an effect hash 2020-04-27 08:34:55 -07:00
parser Recover inline comments which are "adjusted" off the end of a diff 2020-08-05 13:12:52 -07:00
phid Remove "State Icons" from handles 2019-10-31 12:04:43 -07:00
query Put a readthrough cache in front of inline context construction 2020-05-20 14:28:37 -07:00
relationships Convert all standard relationship-editing actions to modern Relationships code 2016-06-29 11:24:52 -07:00
remarkup Rename PhutilRemarkupRule subclasses 2014-08-05 00:55:43 +10:00
render In 1-up source diffs, retain the "No newline at end of file" on "\" lines 2020-08-05 10:16:58 -07:00
search Remove Ferret function aliases and overrides 2020-04-16 13:40:17 -07:00
storage Fix an issue with destruction of Revision and Diff objects with viewstates 2020-07-22 13:07:11 -07:00
typeahead Support "none()" in Differential to find revisions with no (un-resigned) reviewers 2019-05-21 12:56:59 -07:00
view Make "Open in Editor" use the simple line number of the current selected block 2020-05-21 15:31:16 -07:00
xaction Allow non-authors to "Request Review" of draft revisions 2020-07-09 14:20:51 -07:00
DifferentialGetWorkingCopy.php Extend from Phobject 2015-06-15 18:02:27 +10:00