aglinxinyuan opened a new pull request, #5843: URL: https://github.com/apache/texera/pull/5843
### What changes were proposed in this PR? Pin behavior of three previously-untested visualization `PythonOperatorDescriptor`s in `common/workflow-operator/`. No production-code changes. | Spec | Source class | Tests | | --- | --- | --- | | `GaugeChartOpDescSpec` | `GaugeChartOpDesc` | 5 | | `RangeSliderOpDescSpec` | `RangeSliderOpDesc` | 5 | | `SankeyDiagramOpDescSpec` | `SankeyDiagramOpDesc` | 5 | **Behavior pinned (each descriptor)** | Surface | Contract | | --- | --- | | `operatorInfo` | exact name + visualization group (`Financial` / `Basic` / `Basic`); one input / one output | | `getOutputSchemas` | single `html-content` STRING column, asserted as the **full map keyed by `operatorInfo.outputPorts.head.id`** (input ignored — `Map.empty` proves it) | | Field defaults | Gauge `value`/`delta`/`threshold == ""` + empty `steps`; RangeSlider `xAxis`/`yAxis == ""`; Sankey `source`/`target`/`value == ""` | | `generatePythonCode` | Gauge `go.Indicator(`; RangeSlider `go.Scatter(`; Sankey `go.Sankey(` (structural Python only) | | Round-trip | config fields preserved through the polymorphic base | Codegen assertions check only structural Python (class def / import / plotly call) — never the interpolated `EncodableString` values, which are base64-encoded at `.encode` time and do not appear literally. ### Any related issues, documentation, discussions? Closes #5838. ### How was this PR tested? - `sbt "WorkflowOperator/testOnly org.apache.texera.amber.operator.visualization.gaugeChart.GaugeChartOpDescSpec org.apache.texera.amber.operator.visualization.rangeSlider.RangeSliderOpDescSpec org.apache.texera.amber.operator.visualization.sankeyDiagram.SankeyDiagramOpDescSpec"` — 15 tests, all green - `sbt "WorkflowOperator/Test/scalafmtCheck"` and `sbt "WorkflowOperator/Test/scalafix --check"` — clean - CI to confirm ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (Opus 4.8 [1M context]) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
