[GitHub] [incubator-superset] serenajiang opened a new pull request #8224: [wip][sqllab] create query slightly earlier
serenajiang opened a new pull request #8224: [wip][sqllab] create query slightly earlier URL: https://github.com/apache/incubator-superset/pull/8224 ### CATEGORY Choose one - [X] Bug Fix - [ ] Enhancement (new features, refinement) - [ ] Refactor - [ ] Add tests - [ ] Build / Development Environment - [ ] Documentation ### SUMMARY Part of the ongoing saga of trying to fix `stop_query` issues. Flips the order of the rejected tables check and query creation so that queries are created slightly earlier. This might prevent errors like `No row was found for one()` if a user stops the query before it is actually created. This also means that if a user doesn't have access to the tables in the query, the query will still be recorded in the queries table with the status `QueryStatus.FAILED`. Previously, these queries were not recorded. ### TEST PLAN Ran some queries locally to make sure they still worked. Confirmed that queries are now logged to the queries table with the status QueryStatus.FAILED if the user does not have access to a table in the query. ### REVIEWERS @etr2460 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services - To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org
[GitHub] [incubator-superset] serenajiang opened a new pull request #8224: [wip][sqllab] create query slightly earlier
serenajiang opened a new pull request #8224: [wip][sqllab] create query slightly earlier URL: https://github.com/apache/incubator-superset/pull/8224 ### CATEGORY Choose one - [X] Bug Fix - [ ] Enhancement (new features, refinement) - [ ] Refactor - [ ] Add tests - [ ] Build / Development Environment - [ ] Documentation ### SUMMARY Part of the ongoing saga of trying to fix `stop_query` issues. Flips the order of the rejected tables check and query creation so that queries are created slightly earlier. This might prevent errors like `No row was found for one()` if a user stops the query before it is actually created. This also means that if a user doesn't have access to the tables in the query, the query will still be recorded in the queries table with the status `QueryStatus.FAILED`. Previously, these queries were not recorded. ### TEST PLAN Ran some queries locally to make sure they still worked. Confirmed that queries are now logged to the queries table with the status QueryStatus.FAILED if the user does not have access to a table in the query. ### REVIEWERS @etr2460 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services - To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org
[GitHub] [incubator-superset] serenajiang opened a new pull request #8224: [wip][sqllab] create query slightly earlier
serenajiang opened a new pull request #8224: [wip][sqllab] create query slightly earlier URL: https://github.com/apache/incubator-superset/pull/8224 ### CATEGORY Choose one - [X] Bug Fix - [ ] Enhancement (new features, refinement) - [ ] Refactor - [ ] Add tests - [ ] Build / Development Environment - [ ] Documentation ### SUMMARY Part of the ongoing saga of trying to fix `stop_query` issues. Flips the order of the rejected tables check and query creation so that queries are created slightly earlier. This might prevent errors like `No row was found for one()` if a user stops the query before it is actually created. This also means that if a user doesn't have access to the tables in the query, the query will still be recorded in the queries table with the status `QueryStatus.FAILED`. Previously, these queries were not recorded. ### TEST PLAN Ran some queries locally to make sure they still worked. Confirmed that queries are now logged to the queries table with the status QueryStatus.FAILED if the user does not have access to a table in the query. ### REVIEWERS @etr2460 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services - To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org
[GitHub] [incubator-superset] serenajiang opened a new pull request #8224: [wip][sqllab] create query slightly earlier
serenajiang opened a new pull request #8224: [wip][sqllab] create query slightly earlier URL: https://github.com/apache/incubator-superset/pull/8224 ### CATEGORY Choose one - [X] Bug Fix - [ ] Enhancement (new features, refinement) - [ ] Refactor - [ ] Add tests - [ ] Build / Development Environment - [ ] Documentation ### SUMMARY Part of the ongoing saga of trying to fix `stop_query` issues. Flips the order of the rejected tables check and query creation so that queries are created slightly earlier. This might prevent errors like `No row was found for one()` if a user stops the query before it is actually created. This also means that if a user doesn't have access to the tables in the query, the query will still be recorded in the queries table with the status `QueryStatus.FAILED`. Previously, these queries were not recorded. ### TEST PLAN ### REVIEWERS 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services - To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org