Skip to content
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

Yda 5480 expiration date schema options #6

Merged
merged 2 commits into from
Oct 17, 2023

Conversation

claravox
Copy link
Contributor

@claravox claravox commented Oct 13, 2023

Also updated a comment to the ruleset as part of this. UtrechtUniversity/yoda-ruleset#346

"""Is this schema at least a correctly formatted schema-id?"""
if schema_id == "":
return True
return re.search(r"^[a-zA-Z0-9\-]+\-[0-9]+$", schema_id) is not None
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is this check too restrictive?

Copy link
Member

Choose a reason for hiding this comment

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

This is a bit stricter than the current schema name format definition (https://github.com/UtrechtUniversity/yoda/blob/development/docs/design/metadata/adr-schema-identifiers.md), but I like the change. As far as I'm concerned, let's use this regex and update the docs.

@claravox claravox marked this pull request as ready for review October 13, 2023 10:41
Copy link
Member

@stsnel stsnel left a comment

Choose a reason for hiding this comment

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

Excellent, looks good to me 👍

We may also need to update the default metadata schema for Yoda 1.9 in the group manager and client tools (e.g. to default-3 or just the instance/category default one), but that's outside of the scope of this ticket and can be updated later if needed, after this PR has been merged.

@stsnel stsnel merged commit 1fb300d into master Oct 17, 2023
1 check passed
@stsnel stsnel deleted the YDA-5480-expiration-date-schema-options branch October 17, 2023 08:49
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