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.
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