-
Notifications
You must be signed in to change notification settings - Fork 11
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
added funderidtype and support for funder and sponsor roles to datacite metadata #167
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #167 +/- ##
=======================================
Coverage 97.71% 97.72%
=======================================
Files 17 17
Lines 1751 1758 +7
=======================================
+ Hits 1711 1718 +7
Misses 40 40
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
lgtm |
if we got to the bottom of it correctly during today's meeting, @djarecka didn't try to actually feed it to test datacite instance. Is the test where you added test case feeding it to it via https://github.com/dandi/dandi-schema/blob/HEAD/dandischema/tests/test_datacite.py#L17 ? would it fail if you remove the code you have added? without confirming the issue we would be not quite sure we're solving it fully. |
yes, looks like the error was not from |
I think my inconsistent results could be because clean_doi doesn't work as expected... Any idea why I get |
did you call this function:
if so the doi has already been deleted because of the last step. |
but you can check that |
i don't know what's going on, but have you tried running the other function so that it posts and deletes? that should tell you it's working or not. |
usually it works... but have no idea what is wrong with my small test, will debug a bit longer... |
it looks the method |
i'm not sure i'm following, is there some script you can DM me to test? |
Just to update here:
|
thanks @djarecka - did you try it with the specific metadata that failed on dandiarchive with the current released code (i.e. that there was an issue before) and this branch (now it works)? |
I used the link for 458 that you pointed me to on Friday. Sorry, forgot to add that I don't have any issue with master, so still seems like I'm not recreating the initial problem |
@mvandenburgh - is there a way you can try to retrigger the doi generation on the server side for that dandiset that did not get a doi? |
Yes. Should I retrigger the doi generation with the code in this PR? |
@mvandenburgh - i would retest with what's on the server itself, since @djarecka can't replicate the issue with current main branch of this repo (without this PR). |
I wonder if worth
|
@mvandenburgh - could you please try to post the DOI with this branch? I've tested it in test During the meeting on Monday I mentioned that |
@jwodder - do you know why dandi-cli are failing, not sure if the error comes from these changes... |
@mvandenburgh just tested and he was able to create the proper doi with this branch https://doi.datacite.org/dois/10.48324%2Fdandi.000458%2F0.230317.0039 |
closes #168
according to @djarecka's test the current release mints a doi for the failing metadata schema on dandiarchive, so unsure what the exact issue was. nonetheless this update should be used moving forward since people use funder/sponsor synonymously in dandiset metadata.