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

Add bootstrap import script and endpoint #1357

Merged
merged 1 commit into from
Oct 8, 2022
Merged

Conversation

justinfagnani
Copy link
Collaborator

This isn't the tightest PR... it just adds an un-authenticated endpoint to the catalog server that imports all packages listed in catalog-server/data/bootstrap-packages.json.

The import should be relatively idempotent, except when new package versions are published. We may want to put this behind auth though. We probably do not want to run it in a GCP project before we have a way of wiping the database in our staging project.

I also made respository.getCustomElements() accept a dist-tag in a probably temporary way. That needs a test.

Part of #1353

@justinfagnani justinfagnani added the New Site Issues for the rewrite of the site and catalog. label Oct 7, 2022
@justinfagnani justinfagnani requested a review from aomarks October 7, 2022 23:44
@justinfagnani justinfagnani merged commit ab7a475 into main Oct 8, 2022
@justinfagnani justinfagnani deleted the bootstrap-packages branch October 8, 2022 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Site Issues for the rewrite of the site and catalog.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants