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

Avoid making purl2vcs calls in the index_packages view function #481

Open
2 tasks
keshav-space opened this issue Jun 19, 2024 · 0 comments
Open
2 tasks

Comments

@keshav-space
Copy link
Member

keshav-space commented Jun 19, 2024

  • index_packages is meant for bulk indexing of packages asynchronously. Since purl2vcs involves network call, it should not be called in the view function. Instead, purl2vcs should be called while processing the PriorityResourceURI.
  • Also, currently purl2vcs is only called when reindexing is requested. It should also be called when indexing new packages.
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

No branches or pull requests

1 participant