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 endpoint to show source of resolved resources #4465

Merged

Conversation

shinyhappydan
Copy link
Contributor

@shinyhappydan shinyhappydan commented Nov 6, 2023

Fixes #4462

image

@shinyhappydan shinyhappydan marked this pull request as ready for review November 7, 2023 08:59
Copy link
Contributor Author

Choose a reason for hiding this comment

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

All the changes here are just renames

@shinyhappydan shinyhappydan requested review from imsdu, olivergrabinski and dantb and removed request for olivergrabinski November 7, 2023 09:23
@imsdu
Copy link
Contributor

imsdu commented Nov 7, 2023

The endpoint need to be documented otherwise it looks good to me

Comment on lines 200 to 202
case ResolvedResourceOutputType.Report => emit(io.map(_.report).attemptNarrow[ResolverRejection])
case ResolvedResourceOutputType.JsonLd => emit(io.map(_.value.source).attemptNarrow[ResolverRejection])
case ResolvedResourceOutputType.Source => emit(io.map(_.value.jsonLdValue).attemptNarrow[ResolverRejection])
Copy link
Contributor

Choose a reason for hiding this comment

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

Much clearer 🙌 but I think the last two are the wrong way round

dantb
dantb previously approved these changes Nov 7, 2023
@shinyhappydan shinyhappydan merged commit cb7fb21 into BlueBrain:master Nov 7, 2023
6 checks passed
@shinyhappydan shinyhappydan deleted the resolved-resource-source branch November 7, 2023 13:38
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.

Endpoint to return the source of a resource through a resolver
3 participants