Add the API token for the Dataverse search request#7
Open
julienpaul wants to merge 1 commit intoinrae:mainfrom
Open
Add the API token for the Dataverse search request#7julienpaul wants to merge 1 commit intoinrae:mainfrom
julienpaul wants to merge 1 commit intoinrae:mainfrom
Conversation
julienpaul
commented
Mar 16, 2026
- Check the API token before the request
- Handle dynamic error states (missing token / invalid token / API error)
Author
|
Bonjour, J'ai fait quelque modification pour prendre en compte le cas du CIRAD sur le dataerse (qui n'autorise pas la recherche de collection dataverse sans token). J'ai également ajouté des commentaires différents en fonction d'eventuel erreur dans la popup. J'ai un peu regardé pour faire qqchose de similaire avec zenodo pour être coherent, mais je n'ai pas insisté notamment vu que l'API de recherche de "communauté" zenodo fonctionne moins bien dasn la mesure où le recherche ne se fait que sur le slug qui n'ai pas toujours coherent avec le nom de la communauté. Enfin je te laisse regarder, et tu me dis si tu veux que je fasse qqchose coté zenodo ou differement cote dataverse Julien |
2560c19 to
52fcb8e
Compare
- Check the API token before the request - Handle dynamic error states (missing token / invalid token / API error)
52fcb8e to
039c63d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.