Skip to content

RSDEV-1253: Adding related identifiers field - #6

Open
rs-nicof wants to merge 2 commits into
mainfrom
RSDEV-1253-datacite
Open

RSDEV-1253: Adding related identifiers field#6
rs-nicof wants to merge 2 commits into
mainfrom
RSDEV-1253-datacite

Conversation

@rs-nicof

@rs-nicof rs-nicof commented Aug 24, 2026

Copy link
Copy Markdown

@rs-nicof

Copy link
Copy Markdown
Author

@greptileai

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR extends the DataCite DOI attributes model to support DataCite’s relatedIdentifiers field, and adds tests to validate serialization/deserialization behavior for that new field.

Changes:

  • Add relatedIdentifiers (and a RelatedIdentifier nested type) to DataCiteDoiAttributes.
  • Add unit tests covering round-trip JSON serialization and tolerance of unknown response properties for related identifiers.
  • Update the Maven project version string in pom.xml.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/main/java/com/researchspace/datacite/model/DataCiteDoiAttributes.java Adds relatedIdentifiers support and a corresponding model type with unknown-property tolerance.
src/test/java/com/researchspace/datacite/model/DataCiteDoiTest.java Adds tests for relatedIdentifiers round-trip and unknown-property tolerance.
pom.xml Changes project version to a ticket-specific snapshot string.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread pom.xml

<artifactId>datacite-java-client</artifactId>
<version>1.0.0</version>
<version>RSDEV-1253-datacite-SNAPSHOT</version>

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Skipping this one deliberately, leaving the thread open for the human reviewer.

RSDEV-1253-datacite-SNAPSHOT is a temporary cross-repo pin, not the version this branch ships. rspace-web PR 1054 needs the new relatedIdentifiers field, and the branch-named SNAPSHOT is how the two in-flight branches are paired while both are under review. Before either merges, this goes back to a released semver (1.1.0) and the rspace-web pom is bumped to it, so nothing branch-named reaches a consumer or the release automation.

Comment thread src/test/java/com/researchspace/datacite/model/DataCiteDoiTest.java
…bstrings

Copilot review: substring matching on the serialized JSON can produce false
positives and breaks on harmless serialization changes. Reading the JSON back
into a JsonNode and asserting the property paths keeps the part that matters -
the wire property names DataCite reads - while making field order and
whitespace irrelevant.

Asserting only on the deserialized model, as suggested, would not have kept
that: a renamed property still round-trips through Jackson symmetrically, so
the wire contract would go unchecked.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@rs-nicof

Copy link
Copy Markdown
Author

@greptileai

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@rs-nicof
rs-nicof marked this pull request as ready for review August 25, 2026 13:13
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.

2 participants