Improve CommitListField HTML rendered in changedescs
Review Request #10522 — Created April 9, 2019 and updated
The CommitListField now renders change description entries for the field
more similarily to its regular field view. Previously, it would just
show all old commits as removed and all new commits as added, but now it
performs a history diff between the old and new commits and renders that
instead.The new template supports rendering commit modifications, however
commit_utils.diff_histories
presently cannot generate history diffs
that contain modifications (only additions, deletions, and unmodified
entries).
Ran unit tests.
Summary | ID | Author |
---|---|---|
1d5306bd97fe94ee92cb442c2d35d09ad8928f67 | Barret Rennie |
Description | From | Last Updated |
---|---|---|
Can you add screenshots? |
chipx86 | |
F841 local variable 'to_expand' is assigned to but never used |
reviewbot | |
F841 local variable 'to_expand' is assigned to but never used |
reviewbot | |
Instead of defining yet another color constant for me to replace, how about just defining the background color for .changed … |
david |
- Commits:
-
Summary ID Author cc056f539b473aa24400a99e6f5b13a0b58be6bf Barret Rennie 05b9937d190618fd8d37f896bfe02a2f15bfd95c Barret Rennie
- Testing Done:
-
~ - Ran unit tests.
~ Ran unit tests.
- Commits:
-
Summary ID Author 05b9937d190618fd8d37f896bfe02a2f15bfd95c Barret Rennie 33d1f94cf6070af08b32eaf1cfcdea24372efa3b Barret Rennie
Checks run (2 succeeded)
- Change Summary:
-
attach unit tests
- Commits:
-
Summary ID Author 33d1f94cf6070af08b32eaf1cfcdea24372efa3b Barret Rennie 6b417754f3bbcb0af7a19619e0060cae5d8a19b6 Barret Rennie
Checks run (2 succeeded)
- Change Summary:
-
Added screenshots.
NOTE:
In the "Modifying a single commit (after)" screenshot,
diff_histories
cannot detect commit modifications, so this is a screenshot of what it would look like if it could. - Description:
-
The CommitListField now renders change description entries for the field
more similarily to its regular field view. Previously, it would just show all old commits as removed and all new commits as added, but now it performs a history diff between the old and new commits and renders that instead. + + The new template supports rendering commit modifications, however
+ commit_utils.diff_histories
presently cannot generate history diffs+ that contain modifications (only additions, deletions, and unmodified + entries). - Added Files:
- Commits:
-
Summary ID Author 6b417754f3bbcb0af7a19619e0060cae5d8a19b6 Barret Rennie 1d5306bd97fe94ee92cb442c2d35d09ad8928f67 Barret Rennie - Diff:
-
Revision 5 (+472 -104)
- Removed Files:
- Added Files: