Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(sqllab): error while removing a referenced table #25114

Merged

Conversation

justinpark
Copy link
Member

@justinpark justinpark commented Aug 29, 2023

SUMMARY

Fixes #25111

When a table schema is already populated and synced with remote id, the autocomplete can trigger 'MERGE_TABLE' with the already referenced table. This action can overwrite the remote id by the auto-gen id.

This commit fixes this bug by skipping the overwrite the remote id. This commit also fixes the unexpected narrow gap between table control buttons due to the icon migration from font-awesome to antd icons

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

  • After
after--overwrite-remote-id.mov
  • Before
before--overwrite-remote-id.mov
  • icon gap update
After Before Before under font-awesome
Screenshot 2023-08-29 at 10 48 11 AM Screenshot 2023-08-29 at 11 00 15 AM Screenshot 2023-08-29 at 10 48 06 AM

TESTING INSTRUCTIONS

set SQLLAB_BACKEND_PERSISTENCE True
Go to SQLLAB and enable autocomplete
Select a table in the table schema selector
Type some table name which is selected above
Click the same table from the autocomplete
Remove the table by the table action button
Check the error

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

Copy link
Member

@michael-s-molina michael-s-molina left a comment

Choose a reason for hiding this comment

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

LGTM

@justinpark justinpark merged commit 2935557 into apache:master Aug 29, 2023
31 checks passed
@michael-s-molina michael-s-molina added the v3.0 Label added by the release manager to track PRs to be included in the 3.0 branch label Aug 30, 2023
michael-s-molina pushed a commit that referenced this pull request Aug 30, 2023
darwinsubramaniam pushed a commit to darwinsubramaniam/superset that referenced this pull request Sep 7, 2023
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
@mistercrunch mistercrunch added 🍒 3.0.0 🍒 3.0.1 🍒 3.0.2 🍒 3.0.3 🍒 3.0.4 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 3.1.0 labels Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/M v3.0 Label added by the release manager to track PRs to be included in the 3.0 branch 🍒 3.0.0 🍒 3.0.1 🍒 3.0.2 🍒 3.0.3 🍒 3.0.4 🚢 3.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error when removing a referenced table in SQL Lab
3 participants