codeant-ai-for-open-source[bot] commented on PR #38595:
URL: https://github.com/apache/superset/pull/38595#issuecomment-4045618661
## **Sequence Diagram**
This PR updates polygon data transformation to support boundary JSON where
coordinates are nested under a geometry field. The fallback prevents rows from
being dropped and allows deckgl polygon maps to render correctly for affected
datasets.
```mermaid
sequenceDiagram
participant User
participant PolygonChart
participant TransformProps
participant BoundaryJSON
participant DeckGL
User->>PolygonChart: Open polygon chart
PolygonChart->>TransformProps: Transform query rows into polygon features
TransformProps->>BoundaryJSON: Parse boundary JSON
alt Top level coordinates exist
BoundaryJSON-->>TransformProps: Return coordinates
else Nested geometry coordinates exist
BoundaryJSON-->>TransformProps: Return geometry coordinates
end
TransformProps->>DeckGL: Build polygon features
DeckGL-->>User: Render polygons on map
```
---
*Generated by [CodeAnt AI](https://codeant.ai)*
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]