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

Prepare stub for Storage Indexer #811

Merged
merged 5 commits into from
May 18, 2022
Merged

Prepare stub for Storage Indexer #811

merged 5 commits into from
May 18, 2022

Conversation

mtojek
Copy link
Contributor

@mtojek mtojek commented May 12, 2022

Issue: #767

This PR introduces a stub for the future v2 Storage Indexer. It removes the logic responsible for pulling packages from Package Storage v1.

Comment:

I'd rather publish a set of smaller PRs instead of a huge one with the entire implementation.

@mtojek mtojek self-assigned this May 12, 2022
@elasticmachine
Copy link

elasticmachine commented May 12, 2022

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-05-18T09:48:39.737+0000

  • Duration: 4 min 33 sec

Test stats 🧪

Test Results
Failed 0
Passed 149
Skipped 0
Total 149

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@mtojek mtojek changed the title Implement storage indexer Prepare stub for Storage Indexer May 12, 2022
@mtojek mtojek requested a review from a team May 12, 2022 12:37
@mtojek mtojek marked this pull request as ready for review May 12, 2022 12:37
Copy link
Member

@jsoriano jsoriano left a comment

Choose a reason for hiding this comment

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

A couple of non-blocking comments.

main.go Outdated
Comment on lines 133 to 137
indexers = append(indexers, packages.NewFileSystemIndexer(packagesBasePaths...))
indexers = append(indexers, packages.NewZipFileSystemIndexer(packagesBasePaths...))
if featureStorageIndexer {
indexers = append(indexers, storage.NewIndexer())
}
Copy link
Member

Choose a reason for hiding this comment

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

Do we want both indexers at the same time? I think it'd be ok to use only the storage indexer when the flag is used.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed!

main.go Outdated Show resolved Hide resolved
mtojek and others added 2 commits May 18, 2022 11:42
Co-authored-by: Jaime Soriano Pastor <jaime.soriano@elastic.co>
@mtojek mtojek merged commit 8b93e0d into elastic:main May 18, 2022
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.

3 participants