We have a complex hierarchy of filters and prompts. One of the filters is an AND between 2 filters and 1 prompt. Since we create them by a setup pythong script, we use custom expressions to handle easily. Creating the filter works, but updating it (even with the same expression) does not work. The server returns a weird error about an ID that is 0. We found a workaround that setting {} as the qualification before the actual update works, BUT when the filter has many dependents (there are about 6 filters depending on it and tens of dossiers), the update returns timeout.
We'll look into possibilities and limitations of REST API and mstrio-py and I'll get back to you when we establish validity of some enhancements implementations.
We have a complex hierarchy of filters and prompts. One of the filters is an AND between 2 filters and 1 prompt. Since we create them by a setup pythong script, we use custom expressions to handle easily. Creating the filter works, but updating it (even with the same expression) does not work. The server returns a weird error about an ID that is 0. We found a workaround that setting
{}
as the qualification before the actual update works, BUT when the filter has many dependents (there are about 6 filters depending on it and tens of dossiers), the update returns timeout.We do something along the lines:
Where the expression is build like this:
And create_expression_from_string returns:
and children is a list of strings: