Skip to content

Conversation

@michael-s-molina
Copy link
Member

SUMMARY

To avoid exposing and committing to API definitions before they are implemented, this PR removes stub functions from @apache-superset/core. Defining APIs prematurely locks us into contracts that may change once actual implementation begins.

TESTING INSTRUCTIONS

CI should be sufficient.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • 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

@codeant-ai-for-open-source
Copy link
Contributor

CodeAnt AI is reviewing your PR.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@michael-s-molina michael-s-molina moved this from To Do to In Review in Superset Extensions Jan 7, 2026
@bito-code-review
Copy link
Contributor

bito-code-review bot commented Jan 7, 2026

Code Review Agent Run #4751c7

Actionable Suggestions - 0
Review Details
  • Files reviewed - 7 · Commit Range: 29f0cb7..29f0cb7
    • superset-frontend/packages/superset-core/src/api/environment.ts
    • superset-frontend/packages/superset-core/src/api/index.ts
    • superset-frontend/packages/superset-core/src/api/sqlLab.ts
    • superset-frontend/src/core/environment/index.ts
    • superset-frontend/src/core/extensions/index.ts
    • superset-frontend/src/core/index.ts
    • superset-frontend/src/core/sqlLab/index.ts
  • Files skipped - 0
  • Tools
    • Eslint (Linter) - ✔︎ Successful
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@dosubot dosubot bot added the api Related to the REST API label Jan 7, 2026
@codeant-ai-for-open-source
Copy link
Contributor

CodeAnt AI finished reviewing your PR.

@netlify
Copy link

netlify bot commented Jan 7, 2026

Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit 83d5cdc
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/695e6bfad4a5bd000845ef7f
😎 Deploy Preview https://deploy-preview-36952--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot removed the api Related to the REST API label Jan 7, 2026
@apache apache deleted a comment from codeant-ai-for-open-source bot Jan 7, 2026
Copy link
Contributor

@bito-code-review bito-code-review bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review Agent Run #9878bf

Actionable Suggestions - 1
  • superset-frontend/packages/superset-core/src/api/sqlLab.ts - 1
Additional Suggestions - 14
  • superset-frontend/src/extensions/ExtensionsStartup.test.tsx - 1
    • Unnecessary `any` type assertion · Line 100-100
      The test assertion uses `(window as any).superset.extensions`, but since the global `Window` interface is extended in ExtensionsStartup.tsx to include `superset`, the `any` cast is unnecessary and violates the project's TypeScript standards that prohibit `any` types.
      Code suggestion
       @@ -96,6 +96,6 @@
      -    expect((window as any).superset).toBeDefined();
      -    expect((window as any).superset.authentication).toBeDefined();
      -    expect((window as any).superset.core).toBeDefined();
      -    expect((window as any).superset.commands).toBeDefined();
      -    expect((window as any).superset.extensions).toBeDefined();
      -    expect((window as any).superset.sqlLab).toBeDefined();
      +    expect(window.superset).toBeDefined();
      +    expect(window.superset.authentication).toBeDefined();
      +    expect(window.superset.core).toBeDefined();
      +    expect(window.superset.commands).toBeDefined();
      +    expect(window.superset.extensions).toBeDefined();
      +    expect(window.superset.sqlLab).toBeDefined();
  • superset-frontend/src/core/sqlLab/index.ts - 11
    • Import Rename · Line 19-19
      The import alias rename from 'sqlLabType' to 'sqlLabApi' improves code clarity without changing behavior.
    • Destructuring Update · Line 50-50
      Destructuring update to use new alias 'sqlLabApi' instead of 'sqlLabType'.
    • Function Implementation · Line 104-106
      Replaced 'notImplemented' stub with 'extractBaseData' function implementation.
    • API Implementation · Line 215-216
      Implemented getCurrentTab function matching the API declaration.
    • API Implementation · Line 218-222
      Implemented getTabs function as per API.
    • Event Implementation · Line 273-282
      Implemented onDidQueryRun event handler.
    • Event Implementation · Line 284-294
      Implemented onDidQuerySuccess event.
    • Event Implementation · Line 296-305
      Implemented onDidQueryStop event.
    • Event Implementation · Line 307-318
      Implemented onDidQueryFail event.
    • Event Implementation · Line 321-331
      Implemented onDidChangeEditorDatabase event.
    • Event Implementation · Line 333-343
      Implemented onDidCloseTab event.
  • superset-frontend/packages/superset-core/src/api/index.ts - 2
    • No Issue · Line 31-31
      The comment update replaces a reference to a non-existent 'environment' module with 'extensions', which accurately describes the extensions API for managing extension lifecycle and metadata. This change maintains consistency with the available modules.
    • No Issue · Line 40-40
      The export update removes a reference to a non-existent './environment' module and adds './sqlLab', which exists and provides SQL Lab integration APIs. This prevents potential import errors and aligns exports with available modules.
Review Details
  • Files reviewed - 11 · Commit Range: b830268..b830268
    • superset-frontend/packages/superset-core/src/api/environment.ts
    • superset-frontend/packages/superset-core/src/api/index.ts
    • superset-frontend/packages/superset-core/src/api/sqlLab.ts
    • superset-frontend/src/core/authentication/index.ts
    • superset-frontend/src/core/commands/index.ts
    • superset-frontend/src/core/environment/index.ts
    • superset-frontend/src/core/extensions/index.ts
    • superset-frontend/src/core/index.ts
    • superset-frontend/src/core/sqlLab/index.ts
    • superset-frontend/src/extensions/ExtensionsStartup.test.tsx
    • superset-frontend/src/extensions/ExtensionsStartup.tsx
  • Files skipped - 0
  • Tools
    • Eslint (Linter) - ✔︎ Successful
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@github-actions github-actions bot added the doc Namespace | Anything related to documentation label Jan 7, 2026
Copy link
Member

@villebro villebro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not closely familiar with the stability/usefulness of SQL Lab APIs, but I agree we should start light and expand as needed, as opposed to starting heavy at the risk of breaking changes down the road.

@michael-s-molina michael-s-molina merged commit 7a5441b into apache:master Jan 7, 2026
72 of 73 checks passed
@github-project-automation github-project-automation bot moved this from In Review to Done in Superset Extensions Jan 7, 2026
aminghadersohi pushed a commit to aminghadersohi/superset that referenced this pull request Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Namespace | Anything related to documentation packages size/L

Projects

Development

Successfully merging this pull request may close these issues.

2 participants