Skip to content
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

Make grouper public #36

Merged
merged 3 commits into from
Dec 12, 2022
Merged

Conversation

another-rex
Copy link
Collaborator

Grouper now only takes in what's needed, and is public. By limiting the type that grouper takes in it allows much easier usage externally.

Copy link
Collaborator

@oliverchang oliverchang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with just a suggestion.

@@ -0,0 +1,21 @@
package models

type IDAliases struct {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this would belong better in the public grouper package instead of the models one, since it's very specific to that use case. Could we move it there instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can do, but this will cause some issues with cyclic imports, so have to change ToIDAliases from a receiver function to just a normal function.

@another-rex another-rex merged commit 8aef177 into google:main Dec 12, 2022
julieqiu pushed a commit to julieqiu/osv-scanner that referenced this pull request May 2, 2023
* Make grouper public

* Move types from model to grouper

* Add some comments about config loading
julieqiu pushed a commit to julieqiu/osv-scanner that referenced this pull request May 2, 2023
* Make grouper public

* Move types from model to grouper

* Add some comments about config loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants