mirror of
https://github.com/apache/superset.git
synced 2026-07-18 04:35:40 +00:00
Removes the deck.gl JS tooltip/onclick-href/data-mutator controls and the GeoJSON layer's label/icon JavaScript-mode generators, along with the ENABLE_JAVASCRIPT_CONTROLS feature flag that gated them (closes #41045). These let users write arbitrary JS, sandboxed via Node's vm module, to customize deck.gl tooltips/click behavior/data transforms; the flag defaulted off and saw negligible use. Removes the now-dead sandboxedEval() runtime (utils/sandbox.ts), its vm-browserify webpack polyfill and devDependency, and the underscore dependency it alone pulled into the deck.gl plugin. Cleans up the associated backend form_data-stripping mechanism, tests, fixtures, and docs for the removed feature. vm2 (the dependency this was originally suspected to pull in) turned out to be unrelated: it was only a transitive dev-dependency of the Cartodiagram plugin's geostyler dependency via typescript-json-schema, which has since dropped it upstream (>=0.68.0). Forced that resolution via an npm override, confirmed geostyler ships no code that touches typescript-json-schema at runtime, and verified the Cartodiagram plugin still builds and its full test suite passes. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
47 lines
921 B
JSON
47 lines
921 B
JSON
{
|
|
"color_picker": {
|
|
"a": 1,
|
|
"b": 135,
|
|
"g": 122,
|
|
"r": 0
|
|
},
|
|
"datasource": "12__table",
|
|
"filters": [],
|
|
"having": "",
|
|
"js_columns": [
|
|
"color"
|
|
],
|
|
"line_column": "path_json",
|
|
"line_type": "json",
|
|
"line_width": 150,
|
|
"mapbox_style": "mapbox://styles/mapbox/light-v9",
|
|
"reverse_long_lat": false,
|
|
"row_limit": 5000,
|
|
"since": "7 days ago",
|
|
"slice_id": 1013,
|
|
"time_grain_sqla": null,
|
|
"until": "now",
|
|
"viewport": {
|
|
"altitude": 1.5,
|
|
"bearing": 0,
|
|
"height": 1094,
|
|
"latitude": 37.73671752604488,
|
|
"longitude": -122.18885402582598,
|
|
"maxLatitude": 85.05113,
|
|
"maxPitch": 60,
|
|
"maxZoom": 20,
|
|
"minLatitude": -85.05113,
|
|
"minPitch": 0,
|
|
"minZoom": 0,
|
|
"pitch": 0,
|
|
"width": 669,
|
|
"zoom": 9.51847667620428
|
|
},
|
|
"viz_type": "deck_path",
|
|
"where": "",
|
|
"granularity_sqla": null,
|
|
"autozoom": true,
|
|
"url_params": {},
|
|
"size": "100"
|
|
}
|