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 2021/02/16 20:05:41 UTC

[GitHub] [superset] hughhhh opened a new pull request #13160: fix: Grab datasets initially onMount

hughhhh opened a new pull request #13160:
URL: https://github.com/apache/superset/pull/13160


   ### SUMMARY
   <!--- Describe the change below, including rationale and design decisions -->
   User now will be able to see the top 20 datasets, without having to type in the `SaveDataModal.autocomplete`
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   ![dataset_onload](https://user-images.githubusercontent.com/27827808/108115590-59c62680-7068-11eb-8c7f-49cbbca493d4.gif)
   
   <!--- Skip this if not applicable -->
   
   ### TEST PLAN
   <!--- What steps should be taken to verify the changes -->
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [ ] Has associated issue:
   - [ ] Changes UI
   - [ ] Requires DB Migration.
   - [ ] Confirm DB Migration upgrade and downgrade tested.
   - [ ] 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.

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] hughhhh merged pull request #13160: fix: Grab datasets initially onMount

Posted by GitBox <gi...@apache.org>.
hughhhh merged pull request #13160:
URL: https://github.com/apache/superset/pull/13160


   


----------------------------------------------------------------
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:
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 change in pull request #13160: fix: Grab datasets initially onMount

Posted by GitBox <gi...@apache.org>.
eschutho commented on a change in pull request #13160:
URL: https://github.com/apache/superset/pull/13160#discussion_r577909799



##########
File path: superset-frontend/src/SqlLab/components/ResultSet.tsx
##########
@@ -159,9 +159,23 @@ export default class ResultSet extends React.PureComponent<
     this.handleExploreBtnClick = this.handleExploreBtnClick.bind(this);
   }
 
-  componentDidMount() {
+  async componentDidMount() {
     // only do this the first time the component is rendered/mounted
     this.reRunQueryIfSessionTimeoutErrorOnMount();
+
+    const response = await makeApi({
+      method: 'GET',
+      endpoint: '/api/v1/dataset',

Review comment:
       do we need to pass in the user id like below on line 342? What's the difference in the api response if you don't?




----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org