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

Louis/remove db coalescer #106

Merged
merged 9 commits into from
Feb 10, 2020
Merged

Louis/remove db coalescer #106

merged 9 commits into from
Feb 10, 2020

Conversation

ldelossa
Copy link
Contributor

This PR removes the indexer's Store implementation from the Coalescer implementations. This is step one to moving internal indexer interfaces to a driver package.

Copy link
Member

@hdonnay hdonnay left a comment

Choose a reason for hiding this comment

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

Just a comment nit and I think you should use the errgroup differently

@@ -23,18 +22,12 @@ type layerArtifacts struct {
// for dpkg, os-release, and apt scanners
type Coalescer struct {
// a store to access scanartifacts
Copy link
Member

Choose a reason for hiding this comment

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

old comment

internal/indexer/controller/coalesce.go Show resolved Hide resolved
hdonnay
hdonnay previously approved these changes Jan 29, 2020
Copy link
Member

@hdonnay hdonnay left a comment

Choose a reason for hiding this comment

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

OK, but drone is complaining about mergeability.

@ldelossa
Copy link
Contributor Author

ldelossa commented Feb 8, 2020

@hdonnay

Just dealt with merge conflicts. The new Digest type makes it tough to test arbitrary layer fixtures.
I made Repr public with a comment in order to create Layer objects in test tables without trouble.

Copy link
Member

@hdonnay hdonnay left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks for pulling the random digest generator out into the test package.

@ldelossa ldelossa merged commit 66c3fba into master Feb 10, 2020
@ldelossa ldelossa deleted the louis/remove-db-coalescer branch February 28, 2020 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants