quantified-uncertainty / squiggle

An estimation language
https://squiggle-language.com
MIT License
150 stars 23 forks source link

Adds simple migration and edits pages for seeds in db #3068

Closed OAGr closed 6 months ago

OAGr commented 6 months ago

This adds backend seeds to Squiggle Hub.

Note: To run script, we need to set and environment variable, ADMIN_SECRET_TOKEN, then POST to /api/updateModelSeeds. Later we can choose to delete the script, we should just need it this first time.

This script would change the updatedAt times of all the modelrevisions - hopefully we're using the createdAt for ordering. It feels kind of weird to mutate old modelRevisions, but so it goes. At least it should really be a one-time thing here.

changeset-bot[bot] commented 6 months ago

🦋 Changeset detected

Latest commit: 56ea454b4baa252b23fee6d94a2f5666a6d5d231

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages | Name | Type | | ----------------------------------- | ----- | | @quri/squiggle-lang | Patch | | @quri/squiggle-components | Patch | | @quri/prettier-plugin-squiggle | Patch | | @quri/versioned-squiggle-components | Patch | | vscode-squiggle | Patch | | @quri/squiggle-textmate-grammar | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

vercel[bot] commented 6 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
quri-hub ✅ Ready (Inspect) Visit Preview Feb 26, 2024 11:27pm
3 Ignored Deployments | Name | Status | Preview | Updated (UTC) | | :--- | :----- | :------ | :------ | | **quri-ui** | ⬜️ Ignored ([Inspect](https://vercel.com/quantified-uncertainty/quri-ui/7fQiibeRH5FuCT6h58H4FejWLpU5)) | [Visit Preview](https://quri-ui-git-model-revision-seeds2-quantified-uncertainty.vercel.app) | Feb 26, 2024 11:27pm | | **squiggle-components** | ⬜️ Ignored ([Inspect](https://vercel.com/quantified-uncertainty/squiggle-components/DPtTTkzs3sMFBMnW7nugp3mhFCE8)) | [Visit Preview](https://squiggle-components-git-model-rev-5f77f6-quantified-uncertainty.vercel.app) | Feb 26, 2024 11:27pm | | **squiggle-website** | ⬜️ Ignored ([Inspect](https://vercel.com/quantified-uncertainty/squiggle-website/6jR1PecGbCzDzbHYxv6tfXtLFvfo)) | [Visit Preview](https://squiggle-website-git-model-revisi-0735a4-quantified-uncertainty.vercel.app) | Feb 26, 2024 11:27pm |