-
Notifications
You must be signed in to change notification settings - Fork 3
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
Br v4.0.1 - Add regex pattern check to the round.round_id
property
#116
base: main
Are you sure you want to change the base?
Conversation
/diff |
Here are your diffs for this pull request
|
"round_id": { | ||
"description": "Round identifier. If round_id_from_variable = true, round_id should be the name of a task id variable present in all sets of modeling task specifications", | ||
"examples": [ | ||
"round_1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed the example here was demonstrating an incorrect round ID format (round-1
🙈 ) so I fixed it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. Zhian made a good point about supporting languages other than English, but it seems appropriate to keep a standard set of regexp's and make the update together.
This PR Resolves #112 by adding a regex pattern check to the
round.round_id
property whenround.round_id_from_variable
id false. This provides upfront validation of the expected format of manual round IDs (i.e. not from a variable). It contains no breaking changes (Hub's can change to the version without making any further changes to their configs)When
round.round_id_from_variable
is true, validation will be handled dynamically in hubAdmin (hubverse-org/hubAdmin#68)Validation of the checks can be found in the
hubAdmin
PR added tests: https://github.com/hubverse-org/hubAdmin/blob/30923f58bac47484fd80860ba491a334876a279e/tests/testthat/test-create_round.R#L371-L474 and associated test files and snaphots