You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/09/12 20:11:36 UTC

[GitHub] [superset] Antonio-RiveroMartnez opened a new pull request, #21442: fix(datasets): Stop showing alert when saving from query

Antonio-RiveroMartnez opened a new pull request, #21442:
URL: https://github.com/apache/superset/pull/21442

   ### 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](https://user-images.githubusercontent.com/38889534/189748498-b547acab-9b4d-4efa-adc4-16f0a00292e0.gif)
   
   
   After:
   ![test](https://user-images.githubusercontent.com/38889534/189748553-9789c987-ce86-45e9-87be-555aa4674b13.gif)
   
   ### TESTING INSTRUCTIONS
   1. Create a chart from SQL Lab with source = query
   2. Save the dataset in Explore
   
   ### 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


[GitHub] [superset] eschutho merged pull request #21442: fix(datasets): Stop showing alert when saving from query

Posted by GitBox <gi...@apache.org>.
eschutho merged PR #21442:
URL: https://github.com/apache/superset/pull/21442


-- 
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


[GitHub] [superset] yousoph commented on pull request #21442: fix(datasets): Stop showing alert when saving from query

Posted by GitBox <gi...@apache.org>.
yousoph commented on PR #21442:
URL: https://github.com/apache/superset/pull/21442#issuecomment-1244454305

   /testenv up


-- 
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


[GitHub] [superset] github-actions[bot] commented on pull request #21442: fix(datasets): Stop showing alert when saving from query

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #21442:
URL: https://github.com/apache/superset/pull/21442#issuecomment-1244457588

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


-- 
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


[GitHub] [superset] github-actions[bot] commented on pull request #21442: fix(datasets): Stop showing alert when saving from query

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #21442:
URL: https://github.com/apache/superset/pull/21442#issuecomment-1275079950

   Ephemeral environment shutdown and build artifacts deleted.


-- 
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


[GitHub] [superset] eschutho commented on a diff in pull request #21442: fix(datasets): Stop showing alert when saving from query

Posted by GitBox <gi...@apache.org>.
eschutho commented on code in PR #21442:
URL: https://github.com/apache/superset/pull/21442#discussion_r978980999


##########
superset-frontend/src/explore/components/ControlPanelsContainer.tsx:
##########
@@ -272,6 +272,7 @@ export const ControlPanelsContainer = (props: ControlPanelsContainerProps) => {
   useEffect(() => {
     if (
       prevDatasource &&
+      prevDatasource.type !== DatasourceType.Query &&

Review Comment:
   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. 



-- 
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


[GitHub] [superset] codecov[bot] commented on pull request #21442: fix(datasets): Stop showing alert when saving from query

Posted by GitBox <gi...@apache.org>.
codecov[bot] commented on PR #21442:
URL: https://github.com/apache/superset/pull/21442#issuecomment-1244478762

   # [Codecov](https://codecov.io/gh/apache/superset/pull/21442?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
   > Merging [#21442](https://codecov.io/gh/apache/superset/pull/21442?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (d3d40a6) into [master](https://codecov.io/gh/apache/superset/commit/9c285dafb44a75cf0386fd4647a5b43a6fba1a48?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (9c285da) will **not change** coverage.
   > The diff coverage is `n/a`.
   
   ```diff
   @@           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](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#carryforward-flags-in-the-pull-request-comment) to find out more.
   
   | [Impacted Files](https://codecov.io/gh/apache/superset/pull/21442?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
   |---|---|---|
   | [.../src/explore/components/ControlPanelsContainer.tsx](https://codecov.io/gh/apache/superset/pull/21442/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2V4cGxvcmUvY29tcG9uZW50cy9Db250cm9sUGFuZWxzQ29udGFpbmVyLnRzeA==) | `80.15% <ø> (ø)` | |
   
   :mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
   


-- 
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