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

Fix for routing in the FE to handle /preprints/<preprint_guid> #2052

Conversation

bp-cos
Copy link
Contributor

@bp-cos bp-cos commented Nov 13, 2023

  • Ticket: [https://www.notion.so/cos/0de7c99478234fd7be57029dd96aa2d3?v=a4e6d7c70c004d27a0955aa2742775a4&p=b40cc3e5b898476b8d8434de71d9b8fc&pm=c]
  • Feature flag: n/a

Purpose

Allow /preprints/<preprint_guid> to be routed correctly and a provider

Summary of Changes

Added an conditional if statement to the error handling on the index page if the provider_id fails.

Screenshot(s)

N/A

Side Effects

N/A

QA Notes

https://www.notion.so/cos/0de7c99478234fd7be57029dd96aa2d3?v=a4e6d7c70c004d27a0955aa2742775a4&p=b40cc3e5b898476b8d8434de71d9b8fc&pm=c

@bp-cos bp-cos requested review from adlius and futa-ikeda November 13, 2023 21:23
@bp-cos bp-cos force-pushed the feature/routing-fix branch from ade9c1e to 3909869 Compare November 13, 2023 21:24
Copy link
Contributor

@adlius adlius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we separate this into multiple try-catch blocks? Right now it is catching all errors thrown between line 19 and line 46. Ideally the if (params.provider_id) case should only apply to errors during fetching of the preprint provider.

@bp-cos bp-cos merged commit 035d2f6 into CenterForOpenScience:feature/preprint-details-page Nov 14, 2023
9 checks passed
@bp-cos bp-cos deleted the feature/routing-fix branch November 14, 2023 17:10
@futa-ikeda futa-ikeda added this to the 23.15.0 milestone Nov 14, 2023
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.

3 participants