-
Notifications
You must be signed in to change notification settings - Fork 1
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
UI-8857 - Fix unexpected filter MDX update during 4.3 to 5.0 migration #118
Conversation
This makes sense to me. On one hand, it's kicking the can down the road in case there are any issues, but on the other hand it solves the issues of when they want to look at dashboards without necessarily making too many changes. If there's an issue, one can fix it on a per dashboard basis (especially as it seems like this problem comes with custom mdx filters, so I'd assume the users are already used to custom MDX) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
This works well, but at least in the specific case of the ticket we could have fixed it on the side of the monorepo, which would be better to avoid having to rely on the So we should be more precise here, and rather than just looking at the hierarchy compound identifier, see if it actually contributes to the axis dimensionality. In general, many problems boil down to this: "does it contribute to the node dimensionality issue". |
That's a good point. We could introduce an argument to decide whether this should be done or not, so that migrations to earlier patch versions on 5.0 and 5.1 still can be done. We should, imo. |
Indeed, we can improve I still want to move forward with this, as I believe it covers more cases than just this slicing vs subselect issue, by completely preventing updates to the filters part of MDX queries during the migration script run. |
Created https://activeviam.atlassian.net/browse/UI-8862 to keep track of it |
This is the same thing that I did for Rokos in https://github.com/activeviam/atoti-ui/pull/3944.
This change is bold: it means that for all data visualization widgets migrated from 4.3 to 5:
state.filters
, so that the user sees them in the toolsstate.filters
and just run the MDX query as it isstate.filters
normally (that can cause their syntax to be modified)We could consider introducing a new CLI argument in order to make this an opt-in instead of a default behavior.
Personally, I think it's good and should be the default.