Skip to content

Commit fee110c

Browse files
Copilotbendichter
andcommitted
Update DANDI staging references to sandbox terminology
Co-authored-by: bendichter <[email protected]>
1 parent a55003f commit fee110c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

docs/conf_extlinks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"guide-issues": ("https://github.com/NeurodataWithoutBorders/nwb-guide/issues/%s", "%s"),
99
"request-format-support": ("https://github.com/catalystneuro/neuroconv/issues/new?assignees=&labels=enhancement%%2Cdata+interfaces&projects=&template=format_request.yml&title=%%5BNew+Format%%5D%%3A+%s", "%s"),
1010
"path-expansion-guide": ("https://neuroconv.readthedocs.io/en/main/user_guide/expand_path.html%s", "%s"),
11-
"dandi-staging": ("https://gui-staging.dandiarchive.org/%s", "%s"),
11+
"dandi-sandbox": ("https://gui-sandbox.dandiarchive.org/%s", "%s"),
1212
"dandi-archive": ("https://dandiarchive.org/%s", "%s"),
1313
"conda-install": (
1414
"https://docs.conda.io/projects/conda/en/latest/user-guide/install/index.html#regular-installation%s",

src/electron/frontend/core/validation/dandi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const validateDANDIApiKey = async (apiKey: string, staging = false) => {
88

99
if (!dandiAPITokenRegex.test(apiKey)) return [{ type: "error", message: `Invalid API key format. Must be a 40 character hexadecimal string` }];
1010

11-
const authFailedError = {type: 'error', message: `Authorization failed. Make sure you're providing an API key for the <a href='https://${staging ? 'gui-staging.' : ''}dandiarchive.org' target='_blank'>${staging ? 'staging' : 'main'} archive</a>.`}
11+
const authFailedError = {type: 'error', message: `Authorization failed. Make sure you're providing an API key for the <a href='https://${staging ? 'gui-sandbox.' : ''}dandiarchive.org' target='_blank'>${staging ? 'sandbox' : 'main'} archive</a>.`}
1212

1313
const isValid = validateToken({ token: apiKey, type: staging ? 'staging' : undefined }).catch(e => false)
1414
if (!isValid) return [ authFailedError ]

src/schemas/json/dandi/create.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
"archive": {
2424
"type": "string",
2525
"enumLabels": {
26-
"staging": "Development Server",
26+
"staging": "Sandbox Server",
2727
"main": "Main Archive"
2828
},
2929
"enum": ["main", "staging"],
30-
"description": "Which DANDI server to upload to. <br><small><b>Note:</b> The Development Server is recommended for developers, or users learning to use DANDI</small>",
30+
"description": "Which DANDI server to upload to. <br><small><b>Note:</b> The Sandbox Server is recommended for developers, or users learning to use DANDI</small>",
3131
"strict": true
3232
},
3333

src/schemas/json/dandi/global.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"description": "Log in to DANDI, click on your user initials in the top-right corner, and copy your API key from the resulting pop-up. <br/><small><b>Note:</b> <a href='https://dandiarchive.org' target='_blank'>The main archive</a> and <a href='https://gui-staging.dandiarchive.org' target='_blank'>the development server</a> have different API keys.</small>",
2+
"description": "Log in to DANDI, click on your user initials in the top-right corner, and copy your API key from the resulting pop-up. <br/><small><b>Note:</b> <a href='https://dandiarchive.org' target='_blank'>The main archive</a> and <a href='https://gui-sandbox.dandiarchive.org' target='_blank'>the sandbox server</a> have different API keys.</small>",
33
"properties": {
44
"api_keys": {
55
"properties": {
@@ -11,7 +11,7 @@
1111
"development_api_key": {
1212
"type": "string",
1313
"format": "password",
14-
"description": "Your DANDI API key from the <a href='https://gui-staging.dandiarchive.org' target='_blank'>development server</a>"
14+
"description": "Your DANDI API key from the <a href='https://gui-sandbox.dandiarchive.org' target='_blank'>sandbox server</a>"
1515
}
1616
},
1717
"additionalProperties": false,

0 commit comments

Comments
 (0)