aglinxinyuan opened a new pull request, #5844: URL: https://github.com/apache/texera/pull/5844
### What changes were proposed in this PR? Pin behavior of three more previously-untested visualization `PythonOperatorDescriptor`s in `common/workflow-operator/`. No production-code changes. | Spec | Source class | Tests | | --- | --- | --- | | `CarpetPlotOpDescSpec` | `CarpetPlotOpDesc` | 5 | | `DumbbellPlotOpDescSpec` | `DumbbellPlotOpDesc` | 5 | | `ParallelCoordinatesPlotOpDescSpec` | `ParallelCoordinatesPlotOpDesc` | 5 | **Behavior pinned (each descriptor)** | Surface | Contract | | --- | --- | | `operatorInfo` | exact name + visualization group (`Scientific` / `Basic` / `Scientific`); one input / one output | | `getOutputSchemas` | single `html-content` STRING column, asserted as the full map keyed by `operatorInfo.outputPorts.head.id` | | Field defaults | Carpet `a`/`b`/`y == ""`; Dumbbell column fields `== ""` + `showLegends == false`; ParallelCoordinates `dimensions` empty | | `generatePythonCode` | Carpet `go.Carpet(`; Dumbbell `go.Scatter(`; ParallelCoordinates `px.parallel_coordinates(` (structural Python only) | | Round-trip | config fields preserved through the polymorphic base | **Note for reviewers:** `ParallelCoordinatesPlotOpDesc.color` defaults to `null` and `dimensions` to empty — both are null/empty-guarded in `generatePythonCode`, so codegen on a fresh instance is exercised safely. Codegen assertions pin only structural Python, never the base64-encoded `EncodableString` values. ### Any related issues, documentation, discussions? Closes #5839. ### How was this PR tested? - `sbt "WorkflowOperator/testOnly org.apache.texera.amber.operator.visualization.carpetPlot.CarpetPlotOpDescSpec org.apache.texera.amber.operator.visualization.dumbbellPlot.DumbbellPlotOpDescSpec org.apache.texera.amber.operator.visualization.parallelCoordinatesPlot.ParallelCoordinatesPlotOpDescSpec"` — 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]
