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

Automatically redirect when one is provided for a removed dataset #2766

Merged
merged 2 commits into from
Feb 14, 2023

Conversation

nellh
Copy link
Contributor

@nellh nellh commented Feb 8, 2023

Looks like the UI for this was added as part of the redesign but the actual redirect step wasn't. This returns the redirect if it is a properly formatted URL pointing at another dataset, otherwise it is discarded. This will automatically redirect for most of the uses of this field so far, but we do have some DOI values that could be handled better.

Fixes #2765

@codecov
Copy link

codecov bot commented Feb 8, 2023

Codecov Report

Merging #2766 (64c5a78) into master (8494816) will decrease coverage by 0.03%.
The diff coverage is 16.66%.

@@            Coverage Diff             @@
##           master    #2766      +/-   ##
==========================================
- Coverage   76.03%   76.01%   -0.03%     
==========================================
  Files         412      412              
  Lines       66996    67023      +27     
  Branches     2042     2042              
==========================================
+ Hits        50941    50946       +5     
- Misses      16004    16026      +22     
  Partials       51       51              
Impacted Files Coverage Δ
...ckages/openneuro-server/src/graphql/permissions.js 63.03% <16.66%> (-8.71%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@nellh nellh merged commit 61f7ba8 into master Feb 14, 2023
@nellh nellh deleted the redirect-client-implementation branch February 14, 2023 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No URL Redirect
1 participant