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(datasets): Stop showing alert when saving from query #21442

Merged
merged 1 commit into from
Oct 11, 2022

Conversation

Antonio-RiveroMartnez
Copy link
Member

SUMMARY

When user saves from a query we should not display the alert saying that changes were retained. (Blue message)

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:
error

After:
test

TESTING INSTRUCTIONS

  1. Create a chart from SQL Lab with source = query
  2. Save the dataset in Explore

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

- If saving a dataset from a query do not show alert message in the control panel
@yousoph
Copy link
Member

yousoph commented Sep 12, 2022

/testenv up

@github-actions
Copy link
Contributor

@yousoph Ephemeral environment spinning up at http://34.220.8.160:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@codecov
Copy link

codecov bot commented Sep 12, 2022

Codecov Report

Merging #21442 (d3d40a6) into master (9c285da) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #21442   +/-   ##
=======================================
  Coverage   66.53%   66.53%           
=======================================
  Files        1791     1791           
  Lines       68599    68599           
  Branches     7320     7320           
=======================================
  Hits        45645    45645           
  Misses      21064    21064           
  Partials     1890     1890           
Flag Coverage Δ
javascript 52.75% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
.../src/explore/components/ControlPanelsContainer.tsx 80.15% <ø> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@eschutho eschutho left a comment

Choose a reason for hiding this comment

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

comments below

@@ -272,6 +272,7 @@ export const ControlPanelsContainer = (props: ControlPanelsContainerProps) => {
useEffect(() => {
if (
prevDatasource &&
prevDatasource.type !== DatasourceType.Query &&
Copy link
Member

Choose a reason for hiding this comment

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

can we use duck typing here instead of checking the datasource type itself? Just in case some other type comes along that also meets the requirements here.

@eschutho eschutho merged commit 605b692 into apache:master Oct 11, 2022
@github-actions
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 2.1.0 and removed 🚢 2.1.3 labels Mar 13, 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/XS 🚢 2.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants