-
Sub-task
-
Resolution: Done
-
L3 - Default
-
None
-
Not defined
Context:
Given OPT-5334 is implemented it becomes possible to reference specific definition entries of a report from filters to only apply them to these definitions. In order to reference definitions from filters a new `appliedTo` property must be added to all filter dto's. See https://confluence.camunda.com/display/CO/2021-06-09+Multi-Definition+Filters%3A+Technical+Kickoff.
AT:
- all report filter dtos are extended by a new `appliedTo` property which is a list of definition entry identifiers:
[{ "type": "startDate" // or one of the other filter types "filterLevel": "instance" // or "view" "data": {...} // depending on filter type, "appliedTo": ["3fhi5r8ri83", "9lqhtsiy6zg", ...] // or ["all"] }, ...]
- during migration this field is initialized to contain the identifier of the definition that was configured in Optimize 3.4.0
- if the field does not exist filtering behavior defaults to apply for all definitions present
- if the field is an empty array the create/update/evaluate request is rejected
- rest api docs filter dtos are adjusted to the changes