leap-stc / data-management

Collection of code to manually populate the persistent cloud bucket with data
https://catalog.leap.columbia.edu/
Apache License 2.0
0 stars 6 forks source link

Build catalog website preview for PRs? #61

Closed jbusecke closed 7 months ago

jbusecke commented 11 months ago

It would be really neat if there would be a preview of the catalog from a PR, so that users do not have to wait for a merge and open another PR to fix things.

@andersy005 this is not a high priority, but just wondering what you think about this?

cisaacstern commented 11 months ago

I think this would need to happen on whichever repo is building the vercel site? If there is a way to do it from here, that'd be awesome tho!

andersy005 commented 7 months ago

With the addition of previews in PR #89, we should now be able to load the catalog page and point to different catalogs for previewing. Whenever a user opens a PR, we create a "deployment" that points to the catalog version in the pull request branch. To access this deployment, click on the View deployment button. Below is a screenshot of the button:

Screenshot 2024-03-09 at 08 02 21

For instance: https://leap-data-catalog.vercel.app/?catalog=https://raw.githubusercontent.com/leap-stc/data-management/export-pangeo-forge-api/catalog/datasets/consolidated-web-catalog.json points to the catalog version from https://github.com/leap-stc/data-management/pull/74

Cc @jbusecke / @katamartin for visibility