Display the selected revision's commits in the diffviewer
Review Request #10125 — Created Aug. 23, 2018 and submitted
The diffviewer now displays the list of commit messages and authors and
they are updated when the selected revision changes. Currently the
commit list doesn't support interdiffs and an error message is
displayed instead. This will be addressed in a future patch.
- Ran unit tests.
- Ran JS tests.
Description | From | Last Updated |
---|---|---|
Typo in the description: "commist" -> "commit" |
chipx86 | |
F401 'reviewboard.diffviewer.features.dvcs_feature' imported but unused |
reviewbot | |
Col: 27 Missing semicolon. |
reviewbot | |
Col: 14 'testRows' was used before it was defined. |
reviewbot | |
Leftover debug output. |
chipx86 | |
This can easily be in alphabetical order. (While that doesn't always make things better in CSS -- width and height, … |
chipx86 | |
Swap these. |
chipx86 | |
Alphabetical order for these selectors. |
chipx86 | |
This is using a trailing comma, but this file isn't a .es6.js. Can you rename the file? |
chipx86 | |
Can you add a constant for the max length, and then compute the two numbers from that? |
chipx86 | |
I'd prefer to be explicit and not use the shorthand. Especially when we're having to be explicit for other values … |
chipx86 | |
Missing docs. |
chipx86 | |
Missing a trailing comma. |
chipx86 | |
interview? :) |
chipx86 | |
Wrong number of spaces for indentation. |
chipx86 | |
Extra blank line. |
chipx86 | |
Alphabetical order. |
chipx86 | |
Can you be more explicit in the TODO? |
chipx86 | |
Can you split out the template parameters so it's consistent with other calls in the codebase and easier to update? … |
chipx86 | |
As above, I'd prefer being explicit with a key: value form. |
chipx86 | |
Here, too. |
chipx86 | |
Technically this is a jQuery.Event. Same below. |
chipx86 | |
Extra blank line. |
chipx86 | |
Extra blank line. |
chipx86 | |
We need to explicitly use function() with Jasmine instead of =>, as this matters. |
chipx86 | |
Blank line between these. |
chipx86 | |
No blank line here. |
chipx86 | |
function(), not () =>. Same with all others in the tests in this change. |
chipx86 | |
No need for </div>. |
chipx86 | |
No need to define to null. |
chipx86 | |
Can you use the explicit expanded form? Same below. |
chipx86 | |
No spaces within the {}. This file is inconsistent on this. Same with all below. |
chipx86 | |
Missing trailing comma. |
chipx86 | |
Missing trailing comma. |
chipx86 | |
No need for the default value. |
chipx86 | |
Comma before "if any." |
chipx86 | |
Missing docs. |
chipx86 | |
If we can avoid this form, we should. It ends up being unnecessarily expensive, since it doesn't really add anything … |
chipx86 | |
Can you put this in alphabetical order? |
chipx86 | |
In sync how? Given the length and need for more details, this can use {% comment %}...{% endcomment %}. |
chipx86 | |
Two blank lines on either side. |
chipx86 | |
Should be Model Attributes. |
chipx86 | |
boolean |
chipx86 | |
Model Attribute. |
chipx86 | |
Can you explain what needs to be kept in sync? |
chipx86 | |
Multi-line comments should be in /* .. */ format. |
chipx86 | |
Kinda looks wrong. Let's do: $content = $(tableTemplate({ ... })) .append(...) |
chipx86 | |
boolean |
chipx86 | |
Typo: "attribtues" -> "attributes". |
chipx86 | |
Needs to be .call instead of .apply if not passing a list of arguments. |
chipx86 | |
Alphabetical order. |
chipx86 | |
This defaults to an empty list, but the other view defaults to None. We should be consistent to avoid issues … |
chipx86 | |
Still need two blank lines. |
chipx86 | |
Let's be explicit, especially since we are in the two cases above. |
chipx86 | |
No spaces immediately within {..} |
chipx86 | |
No spaces immediately within {..} |
chipx86 | |
No spaces immediately within {..} |
chipx86 | |
These templates are all using 2 spaces for indentation in the HTML, but they should use 1 like all other … |
chipx86 | |
Alphabetical order. |
chipx86 | |
Alphabetical order. |
chipx86 | |
Can you check isEmpty() instead? |
chipx86 | |
Col: 34 Missing semicolon. |
reviewbot | |
Col: 34 Missing semicolon. |
reviewbot | |
Col: 34 Missing semicolon. |
reviewbot | |
Can we put the expression in parens? |
david | |
You don't need to use the $() around headerTemplate--you can just append the HTML. |
david | |
Same here. |
david | |
We should probably also do e.stopPropagation() |
david | |
We should probably also do e.stopPropagation() |
david | |
Needs "Args:" now. |
david |
- Change Summary:
-
Address issues
- Commit:
-
78ce35f91ff7165bc95f2ff908bb67ede1ef490038af8a0737f0b5cc0afb2663cf5fe285aa8d1493
- Diff:
-
Revision 2 (+692 -132)
Checks run (2 succeeded)
- Change Summary:
-
Add test case
- Commit:
-
38af8a0737f0b5cc0afb2663cf5fe285aa8d14936df2737b5616d1f1718992610907cb204a542d30
- Diff:
-
Revision 3 (+707 -132)
Checks run (2 succeeded)
-
-
-
-
This can easily be in alphabetical order. (While that doesn't always make things better in CSS -- width and height, for instance, should usually go together -- it's worth doing here.)
-
-
-
-
-
I'd prefer to be explicit and not use the shorthand. Especially when we're having to be explicit for other values in the dictionary.
-
-
-
-
-
-
-
-
Can you split out the template parameters so it's consistent with other calls in the codebase and easier to update? One line per variable.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
If we can avoid this form, we should. It ends up being unnecessarily expensive, since it doesn't really add anything beyond what we could do before and just expands to a bunch of otherwise useless code (in this usage).
-
-
In sync how?
Given the length and need for more details, this can use
{% comment %}...{% endcomment %}
.
- Change Summary:
-
addressed Christian's feedback
- Description:
-
The diffviewer now displays the list of commit messages and authors and
they are updated when the selected revision changes. Currently the ~ commist list doesn't support interdiffs and an error message is ~ commit list doesn't support interdiffs and an error message is displayed instead. This will be addressed in a future patch. - Commit:
-
6df2737b5616d1f1718992610907cb204a542d30ab8900d4bbae871804e380cb8ef5dbcef6af34ba
- Diff:
-
Revision 4 (+747 -132)
Checks run (2 succeeded)
- Change Summary:
-
Addressed feedback.
- Commit:
-
ab8900d4bbae871804e380cb8ef5dbcef6af34ba73f3c158c7093302be892f0cce3bc7f4f48d2c62
- Diff:
-
Revision 5 (+757 -133)
Checks run (2 succeeded)
- Change Summary:
-
Addressed feedback.
- Commit:
-
73f3c158c7093302be892f0cce3bc7f4f48d2c62616ebc31afef7afd59570d50c1b50eb8325bdfb5
- Diff:
-
Revision 6 (+758 -133)
Checks run (2 succeeded)
- Change Summary:
-
commitId -> commitID
- Commit:
-
616ebc31afef7afd59570d50c1b50eb8325bdfb573487aa919bba1247d88bb2ecb2a52ac14894bd8
- Diff:
-
Revision 7 (+758 -133)
Checks run (2 succeeded)
- Change Summary:
-
commitId -> commitID
- Commit:
-
73487aa919bba1247d88bb2ecb2a52ac14894bd85d16110f0cc2357c6f9ea99abdd5c0a9464f7b7f
- Diff:
-
Revision 8 (+758 -133)
Checks run (2 succeeded)
- Change Summary:
-
Make sure to use lowerPascalCase for
$.data
.
Fix issues from rerere - Commit:
-
5d16110f0cc2357c6f9ea99abdd5c0a9464f7b7fd615039b288ddf70f8cd90a711b44016341f08b3
- Diff:
-
Revision 9 (+759 -133)
Checks run (2 succeeded)
- Change Summary:
-
Addressed feedback.
- Commit:
-
d615039b288ddf70f8cd90a711b44016341f08b315815cb32d38644961b3ccf544a698a1b55527b5
- Diff:
-
Revision 10 (+759 -133)
Checks run (2 succeeded)
- Change Summary:
-
Add more JS tests
- Commit:
-
15815cb32d38644961b3ccf544a698a1b55527b5f3ae3a4c5fb74cde578dad1e2eeec0762fbbc348
- Diff:
-
Revision 11 (+690 -133)
Checks run (2 succeeded)
- Change Summary:
-
oops
- Commit:
-
f3ae3a4c5fb74cde578dad1e2eeec0762fbbc348627d920771a6d3941d416b7183e786fa7b5a2092
- Diff:
-
Revision 12 (+834 -133)
Checks run (2 succeeded)
- Change Summary:
-
Add more tests
- Commit:
-
627d920771a6d3941d416b7183e786fa7b5a209221c8e03a381b963facd2690a21060922decac7ae
- Diff:
-
Revision 13 (+1565 -704)
- Change Summary:
-
Quotes
- Commit:
-
21c8e03a381b963facd2690a21060922decac7aebeb65eccbebfc7d38fe1dee0e4e98ae5e576ff46
- Diff:
-
Revision 14 (+1565 -704)
- Change Summary:
-
Quotes
- Commit:
-
beb65eccbebfc7d38fe1dee0e4e98ae5e576ff4698b098e7a79a2b84e3e266bbf3374a5e655ddea8
- Diff:
-
Revision 15 (+1565 -704)
- Change Summary:
-
Addressed jshint issues.
- Commit:
-
98b098e7a79a2b84e3e266bbf3374a5e655ddea839832ca26eacaf6273adc56d3ca4b6182a2b9a04
- Diff:
-
Revision 16 (+1565 -704)
Checks run (2 succeeded)
- Change Summary:
-
Addressed feedback.
- Commit:
-
39832ca26eacaf6273adc56d3ca4b6182a2b9a045b1cfa399f12e7f677d9abc1967b5ab5e2246a39
- Diff:
-
Revision 17 (+1575 -704)
Checks run (2 succeeded)
- Change Summary:
-
rebase off /r/10186/
- Commit:
-
5b1cfa399f12e7f677d9abc1967b5ab5e2246a39c643e358c6fd779aaeba066f58ccdc2d35151c4c
- Diff:
-
Revision 18 (+1575 -704)