-
Notifications
You must be signed in to change notification settings - Fork 7
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
Could cut rules be more modular? #1105
Comments
If we do this it would make sense to add another field called |
Here I was saying I want to make the rules a dictionary, where the key can either be dataset name or process type however I see from the code that you probably want to be able to distinguish between the two. Also I guess there are some datasets which have multiple rules so clearly that doesn't work.
The point here is that |
Either way we might want to change |
I am not sure I understand what the issue is. AFAICT we never expect the filter rules to act as namespaces; they are always parsed as rules and so the |
The issue comes when you dump those rules to a lockfile and then try and use the lockfile as a runcard, then they are treated as namespaces |
But why is that? Seems to me it should go trough the parsers. |
you could add the parser with the decorator.. |
and the rules themselves don't have a parser, they're read in as raw yaml and then passed straight to class |
The |
I'd rather not TBH. I'd much prefer that the defaults are treated as a plain dictionary instead of a namespace (as done in the last commit in the reportengine PR). |
Not entirely detached from #818
Would it make more sense to store rules like
where at the moment rule key would be either the dataset name or the process_type. Then the production rule which produces the
Rule
objects would just return the relevant rules for a single datasetI think this would make the rules a bit more modular because I could redefine a subset of rules in explicit_rules but not have to redefine all of them.
Obvious trip ups are:
The text was updated successfully, but these errors were encountered: