From 76d71ed710ae08a47f3a3eeb0dee09557d49eee1 Mon Sep 17 00:00:00 2001 From: Sandy Hider Date: Mon, 3 Mar 2025 14:34:41 -0500 Subject: [PATCH] changes needed to go from staging to sandbox --- .github/workflows/backend-staging-deploy.yml | 4 ++-- dandiapi/settings.py | 2 +- web/netlify.toml | 8 ++++---- .../ExternalDandisetServicesDialog.vue | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/backend-staging-deploy.yml b/.github/workflows/backend-staging-deploy.yml index a7a54cf6a..1aaff097a 100644 --- a/.github/workflows/backend-staging-deploy.yml +++ b/.github/workflows/backend-staging-deploy.yml @@ -3,7 +3,7 @@ name: Deploy backend to staging on: push: branches: - - staging + - sandbox paths-ignore: - "web/**" - "CHANGELOG.md" @@ -41,7 +41,7 @@ jobs: python -m build --sdist - name: Create Heroku Build - run: heroku builds:create -a ember-dandi-api-staging --source-tar dist/*.tar.gz + run: heroku builds:create -a ember-dandi-api-sandbox --source-tar dist/*.tar.gz env: HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} HEROKU_EMAIL: ${{ secrets.HEROKU_EMAIL }} diff --git a/dandiapi/settings.py b/dandiapi/settings.py index 6fcf373e6..bc874d7ee 100644 --- a/dandiapi/settings.py +++ b/dandiapi/settings.py @@ -199,7 +199,7 @@ def mutate_configuration(configuration: type[ComposedConfiguration]): ALLOWED_HOSTS += [ 'api-dandi.emberarchive.org', - 'api-dandi-staging.emberarchive.org', + 'api-dandi-sandbox.emberarchive.org', # Example from Linc-Archive # 'linc-staging-terraform-0b817cb1246b.herokuapp.com/', # 'api.lincbrain.org' diff --git a/web/netlify.toml b/web/netlify.toml index 5e4413b88..291b2c88c 100644 --- a/web/netlify.toml +++ b/web/netlify.toml @@ -6,18 +6,18 @@ ignore = "false" # Staging [context.master.environment] NODE_VERSION = "20" -VITE_APP_OAUTH_API_ROOT = "https://api-dandi-staging.emberarchive.org/oauth/" +VITE_APP_OAUTH_API_ROOT = "https://api-dandi-sandbox.emberarchive.org/oauth/" VITE_APP_OAUTH_CLIENT_ID = "Ov23liQeSrvR2UvwCAO2" -VITE_APP_DANDI_API_ROOT = "https://api-dandi-staging.emberarchive.org/api/" +VITE_APP_DANDI_API_ROOT = "https://api-dandi-sandbox.emberarchive.org/api/" VITE_APP_SENTRY_DSN = "https://47b58f7fd49191d6d771509e8834788f@o4508337180966912.ingest.us.sentry.io/4508337195909120" VITE_APP_SENTRY_ENVIRONMENT = "staging" # Deploy previews [context.deploy-preview.environment] NODE_VERSION = "20" -VITE_APP_OAUTH_API_ROOT = "https://api-dandi-staging.emberarchive.org/oauth/" +VITE_APP_OAUTH_API_ROOT = "https://api-dandi-sandbox.emberarchive.org/oauth/" VITE_APP_OAUTH_CLIENT_ID = "Ov23liQeSrvR2UvwCAO2" -VITE_APP_DANDI_API_ROOT = "https://api-dandi-staging.emberarchive.org/api/" +VITE_APP_DANDI_API_ROOT = "https://api-dandi-sandbox.emberarchive.org/api/" VITE_APP_SENTRY_DSN = "https://47b58f7fd49191d6d771509e8834788f@o4508337180966912.ingest.us.sentry.io/4508337195909120" VITE_APP_SENTRY_ENVIRONMENT = "staging" diff --git a/web/src/views/DandisetLandingView/ExternalDandisetServicesDialog.vue b/web/src/views/DandisetLandingView/ExternalDandisetServicesDialog.vue index c18124aef..f02f31577 100644 --- a/web/src/views/DandisetLandingView/ExternalDandisetServicesDialog.vue +++ b/web/src/views/DandisetLandingView/ExternalDandisetServicesDialog.vue @@ -82,7 +82,7 @@ const neurosiftURL = computed(() => { const metadata = currentDandiset.value.metadata; const dandisetId = currentDandiset.value.dandiset.identifier; const dandisetVersion = metadata.version; - const stagingParam = metadata.url!.startsWith('https://gui-staging.dandiarchive.org/') ? '&staging=1' : ''; + const stagingParam = metadata.url!.startsWith('https://gui-dandi-sandbox.emberarchive.org/') ? '&staging=1' : ''; return `https://neurosift.app/?p=/dandiset&dandisetId=${dandisetId}&dandisetVersion=${dandisetVersion}${stagingParam}`; });