-
Notifications
You must be signed in to change notification settings - Fork 4
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
Rule labels in regulations and regular regulations #97
Conversation
I've implemented a However, given that our labels are concatenated in the regex without any delimiters (e.g., spaces), I had to resort to generating all possible label permutations to validate against the regex. This approach ensures comprehensive validation but introduces significant time complexity due to the exhaustive permutation process. I'm concerned about the performance impact and am currently exploring ways to optimize this operation. Do you have any suggestions or insights on more efficient methods to validate regex patterns against our label set without generating permutations? I'd greatly appreciate your input. |
Feel free to introduce some form of delimiters - don't pay attention to how it is right now. |
Introduced a |
I think we should also add tests covering these changes. We can discuss how to test this. EDIT: to be continued in #101. |
This pull request is ensuring all rule labels referenced in regulations exist within the model and makes sure that only correct regular expressions are allowed in regular regulation.
Invalid regulations now trigger new error
RegulationParsingError
.Each regulation has now a method
check_labels
that makes sure labels mentioned in the regulation actually exist in the model.Close #95
Close #88