-
Notifications
You must be signed in to change notification settings - Fork 8
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
API doesn't fail when nameIdentifiers is sent as a object rather the as an array #444
Comments
maybe related to https://app.frontapp.com/open/msg_e9onoph |
or maybe related to https://app.frontapp.com/open/msg_45cz9mr |
none of the DOIs seem to have a |
commented all other fragmentArray declaration in the DOI model until i found the one that is failing. that was name_identifiers. For some reasons bf.dissocvery was able to mint doi with an object rather than an array in this field. // contributors: fragmentArray('contributor', { defaultValue: [] }), |
Good catch @kjgarza! Is nameIdentifiers as object possible with the form or one of the APIs? And I suggest to update the DOI using the XML upload form. |
The form doesn't allow that. it must have been made with an API. It seems to be many of their dois (or all), Which is strange. I don't think they can use XML upload to fix it,because one cannot go into the doi page. we will probably need to update them via a rake tasks. They only need a |
Makes sense, thanks. |
Hi all, thanks for looking into this. Copying our engineer @JeremyLecoeur in case you have any questions. |
Hello, I'm the dev responsible on blackfynn side for the DOI requests change that added the name identifier. I see where I made a mistake and I can correct it easily. You were correct in assuming we use the API to update the DOIs. I'm surprised that I did not receive an error code in response since the request was malformed. |
@JeremyLecoeur could you let us know which endpoint did you use? We can review the validation on that endpoint to avoid that problem in the future. |
I used the PATCH |
@JeremyLecoeur could you paste the payload you were sending before ? that would help me to define changes in the validation if needed |
Expected Behaviour
Access list of DOIs by clicking on DOIs tab
Current Behaviour
DOIs tab blank
Steps to Reproduce
https://doi.datacite.org/repositories/bf.discover/dois
Context (Environment)
it can be found in the api
https://api.datacite.org/dois?client-id=bf.discover
https://api.datacite.org/clients/bf.discover/dois
Fabrica production
Hypothesis
Detailed Description
Possible Implementation
The text was updated successfully, but these errors were encountered: