justinpark opened a new pull request, #44276:
URL: https://github.com/apache/superset/pull/44276

   ### SUMMARY
   Adds the minimum `dashboard` and `explore` interfaces to the core API, 
matching the client tools proposed in 
[SIP-226](https://github.com/apache/superset/issues/43488).
   
   Adds two new public extension-API namespaces to `@apache-superset/core`, 
following the same pattern as the existing `sqlLab` namespace (declarations in 
`packages/superset-core/src/*`, host implementation wired through Redux in
   `src/core/*`, and exposed to extensions via `window.superset` in 
`ExtensionsStartup.tsx`/`Namespaces.ts`).
   
   **`explore`** — the chart currently open in Explore:
   - `getChartId()` — the current chart's id (undefined if unsaved or none 
loaded)
   - `getControlValues()` / `getControlValue(name)` / 
`setControlValues(values)` — generic
     read/write access to the chart's form data (control values)
   - `getQuery()` — the SQL query for the chart's current control values, 
without running it
   - `getChartData()` — the chart's result rows/columns, without running it
   
   **`dashboard`** — the classic dashboard currently active:
   - `getDashboardId()` — the active dashboard's id
   - `getLayout()` / `updateLayoutNode(nodeId, meta)` — read the layout tree / 
patch one
     node's `meta` (grid size, position, etc.)
   - `getCss()` / `setCss(css)` — read/apply the dashboard's custom CSS
   - `getFilters()` / `updateFilters(updates)` — read native filters (config + 
currently
     applied values) / apply new values to one or more filters, the same effect 
as
     interacting with the Filter Bar
   
   ### TESTING INSTRUCTIONS
   
   type check
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [ ] Has associated issue:
   - [ ] Required feature flags:
   - [ ] Changes UI
   - [ ] Includes DB Migration (follow approval process in 
[SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] Migration is atomic, supports rollback & is backwards-compatible
     - [ ] Confirm DB migration upgrade and downgrade tested
     - [ ] Runtime estimates and downtime expectations provided
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   


-- 
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]

Reply via email to