You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "michael-s-molina (via GitHub)" <gi...@apache.org> on 2026/02/05 15:03:09 UTC

[PR] docs: Updates extensions docs [superset]

michael-s-molina opened a new pull request, #37704:
URL: https://github.com/apache/superset/pull/37704

   <!---
   Please write the PR title following the conventions at https://www.conventionalcommits.org/en/v1.0.0/
   Example:
   fix(dashboard): load charts correctly
   -->
   
   ### SUMMARY
   Validated and corrected the extensions documentation in `docs/developer_portal/extensions/` against the actual codebase implementation.
   
   #### Changes
   
   ##### `docs/developer_portal/extensions/development.md`
   
   **Fixed incorrect API signatures and types:**
   
   - Changed `onDidQueryRun` and `onDidQueryStop` event types from `Event<Editor>` to `Event<QueryContext>` to match the actual implementation in `superset-frontend/packages/superset-core/src/api/sqlLab.ts`
   - Fixed `commands.registerCommand` example to use callback function syntax instead of object syntax:
     ```typescript
     // Before (incorrect)
     commands.registerCommand('id', { title: 'Title', execute: () => {} });
   
     // After (correct)
     commands.registerCommand('id', () => {});
     ```
   - Updated event handler example to use correct parameter name (`queryContext` instead of `editor`)
   
   ##### `docs/developer_portal/extensions/extension-points/sqllab.md`
   
   **Updated to reflect actual implementation:**
   
   - Reduced extension points from 5 to 4 (removed Status Bar - not yet supported)
   - Updated layout diagram to remove Status Bar
   - Added Views/Menus support columns to clarify what each area supports:
   
     | Extension Point | Views | Menus |
     |-----------------|-------|-------|
     | Left Sidebar    | —     | ✓     |
     | Editor          | ✓*    | ✓     |
     | Right Sidebar   | ✓     | —     |
     | Panels          | ✓     | ✓     |
   
   - Added footnote explaining Editor views use Editor Contributions
   - Reorganized into clearer "Customization Types" sections (Views, Menus, Custom Editors)
   - Removed Context Actions (not implemented in `PanelToolbar`)
   - Updated toolbar diagram to show buttons on the left
   - Fixed `commands.registerCommand` examples to use correct callback syntax
   
   ### TESTING INSTRUCTIONS
   Check the new docs.
   
   ### 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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] docs: Updates extensions docs [superset]

Posted by "netlify[bot] (via GitHub)" <gi...@apache.org>.
netlify[bot] commented on PR #37704:
URL: https://github.com/apache/superset/pull/37704#issuecomment-3854254825

   ### <span aria-hidden="true">✅</span> Deploy Preview for *superset-docs-preview* ready!
   
   
   |  Name | Link |
   |:-:|------------------------|
   |<span aria-hidden="true">🔨</span> Latest commit | b4278b7e8f359df492eca3abc1b55d7d48f2faa3 |
   |<span aria-hidden="true">🔍</span> Latest deploy log | https://app.netlify.com/projects/superset-docs-preview/deploys/6984b12e37f2c90008bd6d01 |
   |<span aria-hidden="true">😎</span> Deploy Preview | [https://deploy-preview-37704--superset-docs-preview.netlify.app](https://deploy-preview-37704--superset-docs-preview.netlify.app) |
   |<span aria-hidden="true">📱</span> Preview on mobile | <details><summary> Toggle QR Code... </summary><br /><br />![QR Code](https://app.netlify.com/qr-code/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1cmwiOiJodHRwczovL2RlcGxveS1wcmV2aWV3LTM3NzA0LS1zdXBlcnNldC1kb2NzLXByZXZpZXcubmV0bGlmeS5hcHAifQ.bedGhiNC02WU9RS0yFz6Mo5iYIBrEUvPPLTVU7Lx8KA)<br /><br />_Use your smartphone camera to open QR code link._</details> |
   ---
   <!-- [superset-docs-preview Preview](https://deploy-preview-37704--superset-docs-preview.netlify.app) -->
   _To edit notification comments on pull requests, go to your [Netlify project configuration](https://app.netlify.com/projects/superset-docs-preview/configuration/notifications#deploy-notifications)._


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] docs: Updates extensions docs [superset]

Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina merged PR #37704:
URL: https://github.com/apache/superset/pull/37704


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] docs: Updates extensions docs [superset]

Posted by "villebro (via GitHub)" <gi...@apache.org>.
villebro commented on code in PR #37704:
URL: https://github.com/apache/superset/pull/37704#discussion_r2774897694


##########
docs/developer_portal/extensions/extension-points/sqllab.md:
##########
@@ -41,42 +41,44 @@ SQL Lab provides 5 extension points where extensions can contribute custom UI co
 │          │                                         │             │
 │          │                                         │             │
 │          │                                         │             │
-├──────────┴─────────────────────────────────────────┴─────────────┤
-│                          Status Bar                              │
-└──────────────────────────────────────────────────────────────────┘
+└──────────┴─────────────────────────────────────────┴─────────────┘

Review Comment:
   It'd be nice to throw this in there at some point in the not-so-distant future, as we could probably centralize many indicators in the Status Bar.



-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] docs: Updates extensions docs [superset]

Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #37704:
URL: https://github.com/apache/superset/pull/37704#issuecomment-3854240748

   AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] docs: Updates extensions docs [superset]

Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #37704:
URL: https://github.com/apache/superset/pull/37704#issuecomment-3861270261

   <!-- Bito Reply -->
   This question isn’t related to the pull request. I can only help with questions about the PR’s code or comments.


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org