Skip to content

fix: Query history view button in SqlLab#36540

Merged
geido merged 5 commits into
masterfrom
geido/fix/view-results-sqllab
Dec 31, 2025
Merged

fix: Query history view button in SqlLab#36540
geido merged 5 commits into
masterfrom
geido/fix/view-results-sqllab

Conversation

@geido
Copy link
Copy Markdown
Member

@geido geido commented Dec 11, 2025

User description

SUMMARY

Restore the View button in SQL Lab query history so it opens the query modal. Previously, clicking on the button would not open it.

BEFORE:

514383589-65034926-ebc2-44c7-951d-1b62ff105c62.mp4

AFTER:

521846544-6238aca4-8e86-4b49-9736-15f86f334caf.mp4

TESTING INSTRUCTIONS

  1. Navigate to SQL lab
  2. Select the Query history tab
  3. Click on the view button of one of the listed queries - a query modal should now open.

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 Description

Restore View button in SQL Lab query history to open Data preview modal

What Changed

  • The "View" button is shown only for queries that have stored results and opens a "Data preview" modal when clicked
  • Opening the modal fetches the query results (and starts the query if needed), and closing the modal clears fetched results
  • The modal content is height-constrained so large result sets display with a fixed scrollable area; the result component gained a mode to render with a fixed height
  • Unit tests added to verify the View button visibility, that the modal opens and displays "Data preview", and that the modal closes correctly

Impact

✅ Can preview query results from SQL Lab history
✅ Data preview modal opens and closes reliably
✅ Consistent modal height for large result sets

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

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

CodeAnt AI is reviewing your PR.

@geido geido added the 🎪 ⚡ showtime-trigger-start Create new ephemeral environment for this PR label Dec 11, 2025
@github-actions github-actions Bot added 🎪 70eb9a7 🚦 building and removed 🎪 ⚡ showtime-trigger-start Create new ephemeral environment for this PR labels Dec 11, 2025
@github-actions
Copy link
Copy Markdown
Contributor

🎪 Showtime is building environment on GHA for 70eb9a7

@codeant-ai-for-open-source codeant-ai-for-open-source Bot added the size:L This PR changes 100-499 lines, ignoring generated files label Dec 11, 2025
@codeant-ai-for-open-source
Copy link
Copy Markdown
Contributor

CodeAnt AI finished reviewing your PR.

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

💡 Enhance Your PR Reviews

We noticed that 3 feature(s) are not configured for this repository. Enabling these features can help improve your code quality and workflow:

🚦 Quality Gates

Status: Quality Gates are not enabled at the organization level
Learn more about Quality Gates

🎫 Jira Ticket Compliance

Status: Jira credentials file not found. Please configure Jira integration in your settings
Learn more about Jira Integration

⚙️ Custom Rules

Status: No custom rules configured. Add rules via organization settings or .codeant/review.json in your repository
Learn more about Custom Rules


Want to enable these features? Contact your organization admin or check our documentation for setup instructions.

@github-actions
Copy link
Copy Markdown
Contributor

🎪 Showtime deployed environment on GHA for 70eb9a7

Environment: http://35.87.202.32:8080 (admin/admin)
Lifetime: 48h auto-cleanup
Updates: New commits create fresh environments automatically

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

CodeAnt AI is running Incremental review

@github-actions
Copy link
Copy Markdown
Contributor

🎪 Showtime deployed environment on GHA for f5c9724

Environment: http://54.187.51.3:8080 (admin/admin)
Lifetime: 48h auto-cleanup
Updates: New commits create fresh environments automatically

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

CodeAnt AI is running Incremental review


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

@bito-code-review
Copy link
Copy Markdown
Contributor

bito-code-review Bot commented Dec 29, 2025

Code Review Agent Run #31996e

Actionable Suggestions - 0
Review Details
  • Files reviewed - 4 · Commit Range: 70eb9a7..3287b2d
    • superset-frontend/src/SqlLab/components/QueryTable/QueryTable.test.tsx
    • superset-frontend/src/SqlLab/components/QueryTable/index.tsx
    • superset-frontend/src/SqlLab/components/QueryTable/styles.ts
    • superset-frontend/src/SqlLab/components/ResultSet/index.tsx
  • Files skipped - 0
  • Tools
    • 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 evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

Comment thread superset-frontend/src/SqlLab/components/QueryTable/styles.ts Outdated
@codeant-ai-for-open-source
Copy link
Copy Markdown
Contributor

CodeAnt AI is running Incremental review


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

@geido geido added the 🎪 ⚡ showtime-trigger-start Create new ephemeral environment for this PR label Dec 31, 2025
@github-actions github-actions Bot added 🎪 9e780b0 🚦 building 🎪 ⌛ 48h Environment expires after 48 hours (default) and removed 🎪 ⚡ showtime-trigger-start Create new ephemeral environment for this PR labels Dec 31, 2025
@github-actions
Copy link
Copy Markdown
Contributor

🎪 Showtime is building environment on GHA for 9e780b0

@github-actions
Copy link
Copy Markdown
Contributor

🎪 Showtime deployed environment on GHA for 9e780b0

Environment: http://35.88.214.15:8080 (admin/admin)
Lifetime: 48h auto-cleanup
Updates: New commits create fresh environments automatically

@bito-code-review
Copy link
Copy Markdown
Contributor

bito-code-review Bot commented Dec 31, 2025

Code Review Agent Run #9d4bac

Actionable Suggestions - 0
Review Details
  • Files reviewed - 4 · Commit Range: 3287b2d..9e780b0
    • superset-frontend/src/SqlLab/components/QueryTable/QueryTable.test.tsx
    • superset-frontend/src/SqlLab/components/QueryTable/index.tsx
    • superset-frontend/src/SqlLab/components/QueryTable/styles.ts
    • superset-frontend/src/SqlLab/components/ResultSet/index.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 evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L size:L This PR changes 100-499 lines, ignoring generated files sqllab:query:history 🎪 ⌛ 48h Environment expires after 48 hours (default)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants