-
Notifications
You must be signed in to change notification settings - Fork 11
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
Remove escaping (\) of : in 2 identifiers regexes #290
Conversation
yarikoptic
commented
Feb 24, 2025
- Closes: Remove unnecessary backslash from regex patterns #289
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.
Thanks!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #290 +/- ##
=======================================
Coverage 97.88% 97.88%
=======================================
Files 16 16
Lines 1983 1983
=======================================
Hits 1941 1941
Misses 42 42
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
We have them in: ❯ git grep 'DANDI\\*:' -- releases/0.6.9 releases/0.6.9/dandiset.json: "pattern": "^DANDI\\:\\d{6}$", releases/0.6.9/published-dandiset.json: "pattern": "^DANDI:\\d{6}/\\d+\\.\\d+\\.\\d+", releases/0.6.9/published-dandiset.json: "pattern": "^DANDI\\:\\d{6}$",
I believe we would need schema version boost since it is to be changed for ❯ git grep 'DANDI\\*:' -- releases/0.6.9
releases/0.6.9/dandiset.json: "pattern": "^DANDI\\:\\d{6}$",
releases/0.6.9/published-dandiset.json: "pattern": "^DANDI:\\d{6}/\\d+\\.\\d+\\.\\d+",
releases/0.6.9/published-dandiset.json: "pattern": "^DANDI\\:\\d{6}$", |
@mvandenburgh would it be possible to test adjusted/fixed up schema without releasing it so we could bundle more of potentially necessary fixes into the next (0.6.10?) release of the schema? @candleindark tests fail with
I think it might relate to recent enhancements? in this case we must not check for current (proposed) version since it is not yet released. |
Let me take a look. |
That should be fine. I can build the schema locally and test it. I'm currently dynamically modifying the schema to fix these regexes (dandi/dandi-archive@d57d9fb), so I can just leave that in until the new schema version is released. |
@yarikoptic @candleindark I think I found another issue with the current schema and |
I described this issue in #286 (comment) |