Serialize primary keys in DiffCommits and history entries
Review Request #10128 — Created Aug. 25, 2018 and submitted
When doing an interdiff, it is possible that there could be two commits
in theRB.DiffCommitCollection
that have the samecommitId
property.
However, they may have different properties (however unlikely), so we
now serialize commits with their primary keys and use them for lookup in
history entries instead of the commit ID. This was especially prevalent
in test cases where the commit IDs were not actually representative
(i.e., a hash) of the content of the commit.
- Ran unit tests.
- Ran JS tests.
Description | From | Last Updated |
---|---|---|
Col: 30 Expected '{' and instead saw 'debugger'. |
reviewbot | |
Col: 30 Forgotten 'debugger' statement? |
reviewbot | |
Col: 30 Expected '{' and instead saw 'debugger'. |
reviewbot | |
Col: 30 Forgotten 'debugger' statement? |
reviewbot | |
Unwanted "for" in the summary. |
chipx86 | |
Can you put this in alphabetical order? |
chipx86 | |
Too many blank lines. |
chipx86 | |
This will easily fit on one line. It'll fit on the previous if you do: diffset = review_request_details.get_latest_diffset() editor_data['commits'] = … |
chipx86 | |
Should be in alphabetical order. |
chipx86 |
- Commit:
-
0a0c09fc7c49aadf11d3a89469b5d1f4c618ec768560976f3a0f6d74d84af1fd5b220c45189f8b9b
- Diff:
-
Revision 2 (+60 -36)
- Commit:
-
8560976f3a0f6d74d84af1fd5b220c45189f8b9be3ac6d579928e79a360e5693bbb96923b8818bff
- Diff:
-
Revision 3 (+58 -36)
Checks run (2 succeeded)
- Change Summary:
-
Addressed feedback.
- Commit:
-
e3ac6d579928e79a360e5693bbb96923b8818bff1a84a4b7cb60b889acea801c98114c7f64baad33
- Diff:
-
Revision 4 (+58 -37)
Checks run (2 succeeded)
- Change Summary:
-
Address feedback, update js tests.
- Commit:
-
1a84a4b7cb60b889acea801c98114c7f64baad338fa12e0c370f24d41d8efd6bd1367eec2056751c
- Diff:
-
Revision 5 (+64 -37)
Checks run (2 succeeded)
- Change Summary:
-
Unit test updates from /r/10125/ and /r/10126/
- Commit:
-
8fa12e0c370f24d41d8efd6bd1367eec2056751cd57abd3f7d3336649bad530b581551459f778668
- Diff:
-
Revision 6 (+75 -42)