Skip to content

Conversation

@anhe-odoo
Copy link
Contributor

@anhe-odoo anhe-odoo commented Dec 9, 2025

Task Description

This commit aims to fix the usage of the zoomWindowPlugin, which draws the zoomed window boundaries on the master chart in a chart.
Due to file order, when first calling the registerChartJsExtensions method, the zoomWindowPlugin wasn't added in the chartJsExtensionRegistry yet, and was therefore not added. Unfortunately, each following call to registerChartJsExtension were ignored by the early-return checking if the chartShowValuesPlugin
was already registered, which is the case.

This fix adds the zoomWindowPlugin in the registry at the same time as the others plugins, fixing this issue by ensuring every plugin is in the registry when we first call the registerChartJsExtension method.

Related Task

N./A.

@robodoo
Copy link
Collaborator

robodoo commented Dec 9, 2025

Pull request status dashboard

Task Description

This commit aims to fix the usage of the zoomWindowPlugin, which
draws the zoomed window boundaries on the master chart in a chart.
Due to file order, when first calling the registerChartJsExtensions
method, the zoomWindowPlugin wasn't added in the
chartJsExtensionRegistry yet, and was therefore not added.
Unfortunately, each following call to registerChartJsExtension
were ignored by the early-return checking if the chartShowValuesPlugin
was already registered, which is the case.

This fix adds the zoomWindowPlugin in the registry at the same time
as the others plugins, fixing this issue by ensuring every plugin
is in the registry when we first call the registerChartJsExtension
method.

Related Task

Task: 0
@anhe-odoo anhe-odoo force-pushed the master-chart-fix_zoom_slicer-anhe branch from 0c91700 to 7c04926 Compare December 9, 2025 15:58
Copy link
Collaborator

@pro-odoo pro-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

robodoo r+

robodoo pushed a commit that referenced this pull request Dec 10, 2025
Task Description

This commit aims to fix the usage of the zoomWindowPlugin, which
draws the zoomed window boundaries on the master chart in a chart.
Due to file order, when first calling the registerChartJsExtensions
method, the zoomWindowPlugin wasn't added in the
chartJsExtensionRegistry yet, and was therefore not added.
Unfortunately, each following call to registerChartJsExtension
were ignored by the early-return checking if the chartShowValuesPlugin
was already registered, which is the case.

This fix adds the zoomWindowPlugin in the registry at the same time
as the others plugins, fixing this issue by ensuring every plugin
is in the registry when we first call the registerChartJsExtension
method.

Related Task

closes #7621

Task: 0
Signed-off-by: Pierre Rousseau (pro) <[email protected]>
@robodoo robodoo added the 19.1 label Dec 10, 2025
@robodoo robodoo closed this Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants