-
Notifications
You must be signed in to change notification settings - Fork 43
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
refactor: Remove GetPrimaryIndexDocKey from collection interface #279
refactor: Remove GetPrimaryIndexDocKey from collection interface #279
Conversation
net/process.go
Outdated
func getPrimaryIndexDocKey(c client.Collection, key core.DataStoreKey) core.DataStoreKey { | ||
return core.DataStoreKey{ | ||
CollectionId: fmt.Sprint(c.ID()), | ||
IndexId: fmt.Sprint(c.PrimaryIndex().ID), | ||
}.WithInstanceInfo(key) | ||
} | ||
|
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.
same discussion form #277. These should ideally just be kept in the base package, and we can just call col.Description().GetXYZ()
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.
Discussed over zoom.
- Move to (internally) shared location
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.
Moved onto description for now
No real reason for this to be on here, and it exposes internal types
0b45ba4
to
907cee5
Compare
Codecov Report
@@ Coverage Diff @@
## develop #279 +/- ##
===========================================
- Coverage 62.37% 62.36% -0.02%
===========================================
Files 84 84
Lines 9245 9250 +5
===========================================
+ Hits 5767 5769 +2
- Misses 2871 2874 +3
Partials 607 607
|
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.
LGTM
…rcenetwork#279) * Remove GetPrimaryIndexDocKey from collection interface No real reason for this to be on here, and it exposes internal types * Remove commented out code
Part of #200
Spotted this as quick and (hopefully) conflict-free item that could be done in parallel with the other open PRs.