-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add dockey field for commit field #1216
feat: Add dockey field for commit field #1216
Conversation
5e2696e
to
2e32405
Compare
Codecov Report
@@ Coverage Diff @@
## develop #1216 +/- ##
===========================================
+ Coverage 68.57% 68.60% +0.02%
===========================================
Files 181 181
Lines 17125 17144 +19
===========================================
+ Hits 11744 11761 +17
- Misses 4423 4424 +1
- Partials 958 959 +1
|
Benchmark ResultsSummary
✅ See Better Results...
❌ See Worse Results...
✨ See Unchanged Results...
🐋 See Full Results... |
1 similar comment
Benchmark ResultsSummary
✅ See Better Results...
❌ See Worse Results...
✨ See Unchanged Results...
🐋 See Full Results... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm ok with the changes in this PR but please wait for at least an other person to review as well.
There are many changes in the PR that are not related to the main issue being worked on. I would suggest opening a separate PR next time for those code-quality changes as having so much of it mixed in can unnecessarily delay merging the main changes because people are arguing the secondary changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've not looked at the prod code yet, but I thought I'd leave feedback on the tests for you to have a look at in the meantime. Coverage looks pretty good, thanks :) Is one major discussion to be resolved, and a few smaller tasks so far.
Thank you very much for converting so many tests to the new framework - it is a very boring task.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Production code mostly looks good, but I just want to reiterate Fred's point - by including so much other stuff, especially stuff like renames which involve lots of safe, boring line changes that can be glossed over, it drowns out the actual changes that you have made.
This can be compensated for to some extent by a clean commit history, but that only goes so far and doesn't solve the problem that some of the other changes can slow down the merge of the core feature in this PR (via discussion/bugs/etc).
You also appear to have a (production) bug (in planner/commit.go
), and I think the tests may only be passing accidentally - possibly due to the presence of another, previously hidden bug.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found it a bit distracting as a reviewer to comb through things that weren't relevant to this PR (i.e. the renaming of variables that were not related to the change).
Would suggest in future to do these unrelated factoring in a separate PR. For factoring that is somewhat related but not the actual feature I would like for a way to know as reviewer (commit message, PR description or something else).
Also slight disagreement in changing names to their type names (IMO yes we can name them better but naming them after their type isn't always the better name).
+1 on the confusion for the various unrelated renames. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Thank you for tolerating the lack of test helper functions for now. Might be worth quickly checking in with Shahzad in case he is particularly bothered by any of the name changes (and not just their inclusion in this PR) if you haven't already before merge
9d4f70d
to
dd6c9a4
Compare
Add dockey field for commit field Dockey was not stored for composite deltas, with this change we store dockey in the following format /collection_id/instance_type/key/field_id. For field deltas dockey was stored but without instance_type. This change add missing intance_type to field delta. Adjust CIDs in all tests Add breaking change file Switch some tests to use new framework
Add dockey field for commit field Dockey was not stored for composite deltas, with this change we store dockey in the following format /collection_id/instance_type/key/field_id. For field deltas dockey was stored but without instance_type. This change add missing intance_type to field delta. Adjust CIDs in all tests Add breaking change file Switch some tests to use new framework
Relevant issue(s)
Resolves #846
Description
This PR add 'dockey' property to commit field. It also enables grouping and ordering commits by 'dockey'
This PR introduces a BREAKING CHANGES because it changes the way deltas are stored and as such will invalidate all previously stored CIDs for those deltas.
Tasks
How has this been tested?
integration tests
Specify the platform(s) on which this was tested: