Skip to content

12281 data cite export - #12846

Merged
pdurbin merged 115 commits into
developfrom
12281-DataCite-export
Dec 3, 2026
Merged

pdurbin merged 115 commits into
developfrom
12281-DataCite-export

Conversation

@sekmiller

Copy link
Copy Markdown
Contributor

What this PR does / why we need it: Brings DataCite and OpenAire exports into better synch.

Which issue(s) this PR closes:

Special notes for your reviewer: I attempted to put comments in to denote where code changes were made for the sub issues with the number of the sub issue

Suggestions on how to test this: Review the exports from DataCite and Open Aire under the various scenarios described in the individual sub issues

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Is there a release notes update needed for this change?: Probably - forthcoming

Additional documentation:

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Comment on lines +4 to +5
import com.google.gson.annotations.SerializedName;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I agree with AI that this import can be removed.

@github-project-automation github-project-automation Bot moved this from In Review 🔎 to Ready for QA ⏩ in IQSS Dataverse Project Dec 3, 2026
@github-actions

This comment has been minimized.

@pdurbin pdurbin moved this from Ready for QA ⏩ to QA ✅ in IQSS Dataverse Project Dec 3, 2026
@pdurbin pdurbin self-assigned this Dec 3, 2026
@github-actions

This comment has been minimized.

1 similar comment
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

📦 Pushed preview images as

ghcr.io/gdcc/dataverse:12281-DataCite-export
ghcr.io/gdcc/configbaker:12281-DataCite-export

🚢 See on GHCR. Use by referencing with full name as printed above, mind the registry name.

@sonarqubecloud

sonarqubecloud Bot commented Dec 3, 2026

Copy link
Copy Markdown

//.body("resource.dates.date[1].@dateType", CoreMatchers.equalTo("Available"))
.body("resource.dates.date[1]", CoreMatchers.equalTo("1999-12-31"))
.body("resource.version", equalTo("1.0"));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm on e142332. Locally, I'm getting the error below. It's passing in CI so maybe something is different on my laptop.

pdurbin@beamish dataverse % mvn test -Dtest=DatasetsIT#testUpdateMultipleFileMetadata
[INFO] Scanning for projects...
(snip)
[INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running edu.harvard.iq.dataverse.api.DatasetsIT
Dec 03, 2026 7:03:30 PM edu.harvard.iq.dataverse.api.UtilIT getRestAssuredBaseUri
INFO: Base URL for tests: http://localhost:8080
Dec 03, 2026 7:03:31 PM edu.harvard.iq.dataverse.api.UtilIT createRandomUser
INFO: Creating random test user userc3330bb4
Dec 03, 2026 7:03:31 PM edu.harvard.iq.dataverse.api.UtilIT getUsernameFromResponse
INFO: Username found in create user response: userc3330bb4
Dec 03, 2026 7:03:31 PM edu.harvard.iq.dataverse.api.UtilIT getApiTokenFromResponse
INFO: API token found in create user response: d4102f32-f297-4163-ba66-bf755aabce93
Dec 03, 2026 7:03:32 PM edu.harvard.iq.dataverse.api.UtilIT getAliasFromResponse
INFO: Alias found in create dataverse response: dv53d6ea0a
Dec 03, 2026 7:03:32 PM edu.harvard.iq.dataverse.api.UtilIT getDatasetIdFromResponse
INFO: Id found in create dataset response: 180
Dec 03, 2026 7:03:32 PM edu.harvard.iq.dataverse.api.UtilIT getDatasetPersistentIdFromResponse
INFO: Persistent id found in create dataset response: doi:10.5072/FK2/PBLWDC
Dec 03, 2026 7:03:32 PM edu.harvard.iq.dataverse.api.UtilIT getDataFileIdFromResponse
INFO: Id found in upload DataFile response: 181
Dec 03, 2026 7:03:32 PM edu.harvard.iq.dataverse.api.UtilIT getDataFileIdFromResponse
INFO: Id found in upload DataFile response: 182
Dec 03, 2026 7:03:32 PM edu.harvard.iq.dataverse.api.UtilIT getDataFileIdFromResponse
INFO: Id found in upload DataFile response: 183
{
    "status": "OK",
    "data": [
        {
            "lockType": "Ingest",
            "date": "Thu Dec 03 19:03:32 UTC 2026",
            "user": "userc3330bb4",
            "dataset": "doi:10.5072/FK2/PBLWDC",
            "message": "Ingest of 1 tabular data file(s) is in progress."
        }
    ]
}
Dec 03, 2026 7:03:35 PM edu.harvard.iq.dataverse.api.UtilIT getProvFreeForm
INFO: Getting Provenance Free Form
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4.820 s <<< FAILURE! -- in edu.harvard.iq.dataverse.api.DatasetsIT
[ERROR] edu.harvard.iq.dataverse.api.DatasetsIT.testUpdateMultipleFileMetadata -- Time elapsed: 3.566 s <<< FAILURE!
java.lang.AssertionError: 
1 expectation failed.
Expected status code <200> but was <403>.

	at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
	at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:73)
	at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:108)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:263)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:277)
	at io.restassured.internal.ResponseSpecificationImpl$HamcrestAssertionClosure.validate(ResponseSpecificationImpl.groovy:512)
	at io.restassured.internal.ResponseSpecificationImpl$HamcrestAssertionClosure$validate$1.call(Unknown Source)
	at io.restassured.internal.ResponseSpecificationImpl.validateResponseIfRequired(ResponseSpecificationImpl.groovy:696)
	at io.restassured.internal.ResponseSpecificationImpl.this$2$validateResponseIfRequired(ResponseSpecificationImpl.groovy)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43)
	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:198)
	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:62)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:185)
	at io.restassured.internal.ResponseSpecificationImpl.statusCode(ResponseSpecificationImpl.groovy:135)
	at io.restassured.specification.ResponseSpecification$statusCode$0.callCurrent(Unknown Source)
	at io.restassured.internal.ResponseSpecificationImpl.statusCode(ResponseSpecificationImpl.groovy:143)
	at io.restassured.internal.ValidatableResponseOptionsImpl.statusCode(ValidatableResponseOptionsImpl.java:89)
	at edu.harvard.iq.dataverse.api.DatasetsIT.testUpdateMultipleFileMetadata(DatasetsIT.java:7233)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)

[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   DatasetsIT.testUpdateMultipleFileMetadata:7233 1 expectation failed.
Expected status code <200> but was <403>.

[INFO] 
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  10.102 s
[INFO] Finished at: 2026-12-03T14:03:35-05:00
[INFO] ------------------------------------------------------------------------

@pdurbin pdurbin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I tested with our test DataCite account locally. Works.

@github-project-automation github-project-automation Bot moved this from QA ✅ to Ready for QA ⏩ in IQSS Dataverse Project Dec 3, 2026
@pdurbin
pdurbin merged commit 8648cd1 into develop Dec 3, 2026
14 checks passed
@github-project-automation github-project-automation Bot moved this from Ready for QA ⏩ to Merged 🚀 in IQSS Dataverse Project Dec 3, 2026
@pdurbin pdurbin removed their assignment Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature: API Feature: Metadata FY26 Sprint 21 FY26 Sprint 21 (2026-04-08 - 2026-04-22) FY26 Sprint 22 FY26 Sprint 22 (2026-04-22 - 2026-05-06) FY26 Sprint 23 FY26 Sprint 23 (2026-05-06 - 2026-05-20) FY26 Sprint 24 FY26 Sprint 24 (2026-05-20 - 2026-06-03) FY26 Sprint 25 FY26 Sprint 25 (2026-06-03 - 2026-06-17) FY26 Sprint 26 FY26 Sprint 26 (2026-06-17 - 2026-07-01) FY27 Priority FY27 Roadmap FY27 Sprint 1 FY27 Sprint 1 (2026-07-01 - 2026-07-15) FY27 Sprint 2 FY27 Sprint 2 (2026-07-15 - 2026-07-29) FY27 Sprint 3 FY27 Sprint 3 (2026-07-29 - 2026-08-12) FY27 Sprint 4 FY27 Sprint 4 (2026-08-12 - 2026-08-26) FY27 Sprint 5 FY27 Sprint 5 (2026-08-26 - 2026-09-09) FY27 Sprint 6 FY27 Sprint 6 (2026-09-09 - 2026-09-23) FY27 Sprint 7 FY27 Sprint 7 (2026-09-23 - 2026-10-07) FY27 Sprint 8 FY27 Sprint 8 (2026-10-07 - 2026-10-21) GREI Year 5 GREI 2 Consistent Metadata GREI 3 Search and Browse GREI 4 Analytics and Reporting Original size: 50

Projects

Status: Merged 🚀

Development

Successfully merging this pull request may close these issues.

Feature Request: Align the DataCite/Datacite and OpenAIRE/oai_datacite exports that ship with Dataverse

6 participants