Exclude ancestor FileDiffs from the diffviewer
Review Request #10124 — Created Aug. 22, 2018 and submitted
When a review request is created with commit history, it is likely that
there will beFileDiff
s in multiple commits that modify the same file.
For anyFileDiff
in a commit, allFileDiff
s in previous commits are
known as "ancestor"FileDiff
s.These ancestor
FileDiff
s are now excluded from the diffviewer. This
removes the duplication of seeing the same file listed multiple times
with incremental changes. However, currently only the latest change for
that file is shown. True cumulative diffs are supported in /r/10130/.
- Ran unit tests.
- Viewed a review request with commit history and did not see repeated
files.
Description | From | Last Updated |
---|---|---|
The first sentence of the description has some redundancy going on in the first sentence of the description. I'm also … |
chipx86 | |
E501 line too long (90 > 79 characters) |
reviewbot | |
F821 undefined name 'diffset' |
reviewbot | |
F821 undefined name 'f' |
reviewbot | |
F841 local variable 'all_interfilediffs' is assigned to but never used |
reviewbot | |
E501 line too long (82 > 79 characters) |
reviewbot | |
E501 line too long (81 > 79 characters) |
reviewbot | |
E501 line too long (96 > 79 characters) |
reviewbot | |
Maybe this should be called get_leaf_filediffs? |
chipx86 | |
"FileDiffs" I feel like this could be worded better. Maybe: python """Return only the leafs in the list of FileDiffs.""" … |
chipx86 | |
This should be in the description. |
chipx86 | |
Can you move the list() to the next line, so it's more tightly coupled to the queryset? |
chipx86 | |
Alphabetical order. |
chipx86 | |
Missing docstring. |
chipx86 |
- Summary:
-
WIP: Exclude ancestor FileDiffs from the diffviewerExclude ancestor FileDiffs from the diffviewer
- Testing Done:
-
~ - Viewed a review request with commit history and did not see repeated
files.
~ - TODO: Add unit tests.
~ - Ran unit tests.
~ - Viewed a review request with commit history and did not see repeated
files.
- Viewed a review request with commit history and did not see repeated
- Commit:
-
c099ebcdb374f4577aea2f1cc18afeccc7f248694c34e77856c8096e5bc3043659e898cfa334cd12
- Change Summary:
-
flake8
- Commit:
-
4c34e77856c8096e5bc3043659e898cfa334cd123f4fdba82254a48bc5aceafb8d1ad18a9a71cffb
Checks run (2 succeeded)
- Change Summary:
-
Fix unit test failures
- Commit:
-
3f4fdba82254a48bc5aceafb8d1ad18a9a71cffbe5218e339f7b6bca0cf0b8914ea95904247c4adc
Checks run (2 succeeded)
- Change Summary:
-
Fix unit test failures
- Commit:
-
e5218e339f7b6bca0cf0b8914ea95904247c4adc2aae5599f6401a0da00bb4a235a80b1c8054f876
Checks run (2 succeeded)
-
-
The first sentence of the description has some redundancy going on in the first sentence of the description.
I'm also just having a really hard time understanding this change from the description altogether.
-
-
"FileDiffs"
I feel like this could be worded better. Maybe:
python """Return only the leafs in the list of FileDiffs."""
With a description detailing what it means to be a leaf.
-
-
-
-
- Change Summary:
-
Address feedback
- Description:
-
~ The diffviewer now only includes leaf FileDiffs in the diffviewer. That
~ is, the only FileDiffs that are shown are FileDiffs that are not ~ ancestors of other FileDiffs. This removes the duplication of files ~ appearing for each time they were modified in the history. Now, the ~ diffviewer just shows the real cumulative diff of all commits. ~ When a review request is created with commit history, it is likely that
~ there will be FileDiff
s in multiple commits that modify the same file.~ For any FileDiff
in a commit, allFileDiff
s in previous commits are~ known as "ancestor" FileDiff
s.~ + These ancestor
FileDiff
s are now excluded from the diffviewer. This+ removes the duplication of seeing the same file listed multiple times + with incremental changes. However, currently only the latest change for + that file is shown. True cumulative diffs are supported in /r/10130/. - Commit:
-
2aae5599f6401a0da00bb4a235a80b1c8054f876423f1c47b4f60eec0e20947d0342121ba0f68f9a