Skip to content

863 update test datasets schema#891

Merged
jsjiang merged 24 commits intodevelopfrom
863_update_test-datasets-schema
Jun 23, 2025
Merged

863 update test datasets schema#891
jsjiang merged 24 commits intodevelopfrom
863_update_test-datasets-schema

Conversation

@jsjiang
Copy link
Copy Markdown
Contributor

@jsjiang jsjiang commented Jun 13, 2025

@sfisher Hi Scott,
Here are the major changes:

  1. Enabled schema validation for Crossref schema version 5.4

impl/crossref.py

- TAG_REGEX = re.compile("{(http://www\\.crossref\\.org/schema/(4\.[34]\.\d|5\.[3]\.\d))}([-\\w.]+)$")
+ TAG_REGEX = re.compile("{(http://www\\.crossref\\.org/schema/(4\.[34]\.\d|5\.[34]\.\d))}([-\\w.]+)$")
  1. Renamed the Linker Checker exclusion file to match the pattern used for exclusion by ID. Note: File linkchecker_user_exclusion_list.txt is already in place on the EZID instances.

settings/settings.py.j2

- LINKCHECKER_EXCLUSION_FILE = DATA_DIR / 'link_check_exclusion_list.txt'
+ LINKCHECKER_EXCLUSION_FILE = DATA_DIR / 'linkchecker_user_exclusion_list.txt'
  1. Enabled metadata type Crossref and DOI in the API testing loop. Current setting only tests DataCite and ARK.
  2. Updated DataCite test records to schema version 4
  3. Updated Crossref test records to schema version 5
  4. Removed unused test records with old schema versions
  5. Commented on not used and not implemented functions

Please take a look and let me know if you have questions.

Thank you

Jing

@jsjiang jsjiang requested a review from sfisher June 13, 2025 17:13
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.

Thanks, Jing. These changes look good to me (new updated test data) and the renaming of the file. :-) 🎉

@jsjiang jsjiang merged commit 95cfb58 into develop Jun 23, 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