Skip to content

fix: add quotes around enum string values in visualization operators#4351

Open
xuang7 wants to merge 1 commit intoapache:mainfrom
xuang7:fix/visualization-missing-quotes
Open

fix: add quotes around enum string values in visualization operators#4351
xuang7 wants to merge 1 commit intoapache:mainfrom
xuang7:fix/visualization-missing-quotes

Conversation

@xuang7
Copy link
Copy Markdown
Contributor

@xuang7 xuang7 commented Apr 6, 2026

What changes were proposed in this PR?

This PR adds quotes around plain String values returned by Java enum methods in three visualization operators so the generated Python code is valid:

  • ContinuousErrorBands: mode='${bandConf.mode.getModeInPlotly}'
  • ContourPlot: contours_coloring='${coloringMethod.getColoringMethod}'
  • Histogram2D: histnorm='${normalize.getValue}'

Any related issues, documentation, discussions?

Related to #4189
Resolves #4350

How was this PR tested?

Existing tests passed

Was this PR authored or co-authored using generative AI tooling?

No

@chenlica
Copy link
Copy Markdown
Contributor

chenlica commented Apr 7, 2026

Can we add test cases to catch this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Visualization operators fail due to unquoted enum string values

2 participants