-
Notifications
You must be signed in to change notification settings - Fork 16
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
chore: replace built-in dimension panel and dialog components with d2-ui-analytics shared components #260
Conversation
The metadata handling needs more testing. I had to comment out the action call in Visualization because it overrides some metadata previously set and breaks (at least) the OrgUnit dimension dialog (ou path goes missing but is required by the org unit tree)
Comment from Edoardo: "I had to remove the call to add metadata when the analytics response comes back as it overrides some metadata info that is previously set and required data goes missing (ie. ou path) causing breakage in OrgUnitDimension (at least). For testing you need latest |
Some thoughts:
|
Yes, they are and I did consider removing those 2 props, but then I saw they were used also for comparing prevProps with props. We could remove them and use |
This is to avoid having unnecessary data that bloats the store and also have the same data structure for all the items. Reduced also the number of calls to the addMetadata action by passing multiple keys instead of one at a time.
packages/app/src/components/DimensionsPanel/Dialogs/DialogManager.js
Outdated
Show resolved
Hide resolved
Just to comment on the metadata issue. |
…lizer-app into chore/shared-components
…-ui-analytics shared components (#260) This commit replaces the built-in DimensionsPanel and Dimension dialogs with those from the d2-ui-analytics shared library. The shared components are also used by Dashboards-app. Some changes regarding saving to metadata store were needed: * This is to avoid having unnecessary data that bloats the store and also have the same data structure for all the items. * Reduced also the number of calls to the addMetadata action by passing multiple keys instead of one at a time.
…ents [v32] (#260) (#275) * chore: replace built-in dimension panel and dialog components with d2-ui-analytics shared components (#260) This commit replaces the built-in DimensionsPanel and Dimension dialogs with those from the d2-ui-analytics shared library. The shared components are also used by Dashboards-app. Some changes regarding saving to metadata store were needed: * This is to avoid having unnecessary data that bloats the store and also have the same data structure for all the items. * Reduced also the number of calls to the addMetadata action by passing multiple keys instead of one at a time. * fix: org unit selector - only act on path if it exists (#276) Fixes include: * call "Set" instead of "Add" since the returned list contains the complete selected list * check that ou.path exists before acting on it. In the case of user org units, path does not exist, which resulted in the app crashing * upgrade d2-ui-analytics
🎉 This PR is included in version 33.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 33.1.13 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Remaining tasks:
decide what to do about the disabled addMetadata call(see comments below)