Skip to content

540 deprecate DataCite schema 2 and 3#862

Merged
jsjiang merged 5 commits intodevelopfrom
540_deprecate_datacite_schema_2_3
Apr 25, 2025
Merged

540 deprecate DataCite schema 2 and 3#862
jsjiang merged 5 commits intodevelopfrom
540_deprecate_datacite_schema_2_3

Conversation

@jsjiang
Copy link
Copy Markdown
Contributor

@jsjiang jsjiang commented Apr 22, 2025

@sfisher Hi Scott,
The major change is replacing the upgradeDcmsRecord() function with upgradeDcmsRecord_v2().

The upgradeDcmsRecord_v2() function is derived from upgradeDcmsRecord() with support of schema upgrade removed. The new function reports error if incoming record is not in schema version 4.

The upgradeDcmsRecord() function is kept for future reference in case backward version support is needed over the time.

Test dataset and configuration are adjusted accordingly.

The updated code is deployed on ezid-stg with tag test-datacite-drop-2-3_v2.
Test results are documented in ticket: #540 (comment)

Please review and let me know if you have questions.

Thank you

Jing

Copy link
Copy Markdown
Contributor

@sfisher sfisher left a comment

Choose a reason for hiding this comment

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

Thank you, Jing.

I like that you changed the name of the old functions to upgrade...v2 since it makes it clear which version to use it with in case we need it.

Looks good to me.

@jsjiang jsjiang merged commit 6e4a049 into develop Apr 25, 2025
2 checks passed
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