MCPcopy
hub / github.com/apache/superset / get_data

Method get_data

superset/viz.py:2410–2421  ·  view source on GitHub ↗
(self, df: pd.DataFrame)

Source from the content-addressed store, hash-verified

2408 return {}
2409
2410 def get_data(self, df: pd.DataFrame) -> VizData:
2411 # Late imports to avoid circular import issues
2412 # pylint: disable=import-outside-toplevel
2413 from superset import db
2414 from superset.models.slice import Slice
2415
2416 slice_ids = self.form_data.get("deck_slices")
2417 slices = db.session.query(Slice).filter(Slice.id.in_(slice_ids)).all()
2418 return {
2419 "mapboxApiKey": config["MAPBOX_API_KEY"],
2420 "slices": [slc.data for slc in slices],
2421 }
2422
2423
2424class BaseDeckGLViz(BaseViz):

Callers

nothing calls this directly

Calls 3

filterMethod · 0.80
getMethod · 0.45
queryMethod · 0.45

Tested by

no test coverage detected