Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust Neurosift external URLs for v2 of Neurosift #2189

Merged
merged 3 commits into from
Feb 27, 2025

Conversation

magland
Copy link
Contributor

@magland magland commented Feb 18, 2025

Neurosift has been updated to v2, and with this update, the URL specification has changed slightly. The old URLs still work, but they redirect to the new ones. It would be best to have DANDI use the new URL scheme for the external links.

For example, for a dandiset:

old:
https://neurosift.app/?p=/dandiset&dandisetId=001335&dandisetVersion=draft

new:
https://neurosift.app/dandiset/001335?dandisetVersion=draft

And for an NWB file:

old:
https://neurosift.app/?p=/nwb&url=https://api.dandiarchive.org/api/assets/7d5046f1-12b5-4b88-9ccf-9e738f265652/download/&dandisetId=000409&dandisetVersion=draft

new:
https://neurosift.app/nwb?url=https://api.dandiarchive.org/api/assets/7d5046f1-12b5-4b88-9ccf-9e738f265652/download/&dandisetId=000409&dandisetVersion=draft

For an AVI file, this is not (yet) supported in v2, so we should direct this to v1 explicitly like this:

old:
https://neurosift.app?p=/avi...

new
https://v1.neurosift/avi?...

(I don't have an example for that one at my fingertips)

@yarikoptic yarikoptic added the patch Increment the patch version when merged label Feb 19, 2025
@kabilar kabilar requested a review from waxlamp February 26, 2025 03:27
@waxlamp waxlamp added the release Create a release when this pr is merged label Feb 27, 2025
@waxlamp waxlamp merged commit 9b10412 into dandi:master Feb 27, 2025
11 checks passed
@dandibot
Copy link
Member

🚀 PR was released in v0.4.20 🚀

@dandibot dandibot added the released This issue/pull request has been released. label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged release Create a release when this pr is merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants