Introduce groups and dependencies on groups
We have introduced dependencies before, so rules can be executed in a certain order. However, now we cannot add new rules on-the-fly, that other rules are dependent on. For example:
We have a new rule DateRule
, that extracts the date from OSM or from cadastre information. Therefore, it is dependent on the DateFromValencianCadasterRule
. Now, if we'd like to add a rule DateFromDutchCadasterRule
, we'd need to change the dependencies of the DateRule
. For an MR, this is not a big problem, however, in a dynamic system it is.
Therefore, I propose to add rule groups. For example, we can add a rule cadaster_rules
, that the DateRule
is dependent on. All rules in that group should be executed before the DateRule
. So, if we then add a new rule that is inside that group, it is automatically executed before the DateRule
.