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

Add missing organization name in fallback #201

Closed
wants to merge 1 commit into from

Conversation

akhuoa
Copy link
Collaborator

@akhuoa akhuoa commented Sep 14, 2024

The dataset 407 has the new organization name, "organizationName": "NIH PRECISION Human Pain Network", and it is not in the pennsieve.organization.name list, and also not in the fallback values list of getOrganizationNames.
When the dataset's organization name is not in the list of sparcOrganizationNames, it is trying to redirect to DOI link.

// Redirect them to doi if user tries to navigate directly to a dataset ID that is not a part of SPARC

However, when the DOI link is redirected back to the dataset page, it ends up in an endless loop and throws a 500 error.

This fix is to prevent that error by adding the missing organization name in the fallback.

Copy link

cypress bot commented Sep 14, 2024

SPARC Vue3 Portal Testing    Run #250

Run Properties:  status check failed Failed #250  •  git commit b95280bc69: Add missing organization name in fallback
Project SPARC Vue3 Portal Testing
Branch Review bugfix/dataset-organization
Run status status check failed Failed #250
Run duration 17m 36s
Commit git commit b95280bc69: Add missing organization name in fallback
Committer akhuoa
View all properties for this run ↗︎

Test results
Tests that failed  Failures 2
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 2
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 69
View all changes introduced in this branch ↗︎

Tests for review

Failed  tests/cypress/e2e/mapsviewer.cy.js • 2 failed tests

View Output

Test Artifacts
Maps Viewer > Provenance card for Rat Screenshots
Maps Viewer > Provenance card for Human Female Screenshots

@alan-wu alan-wu closed this Sep 16, 2024
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.

2 participants