squalou edited a comment on issue #9727:
URL: 
https://github.com/apache/incubator-superset/issues/9727#issuecomment-623688897


   Note that I managed an ugly patch.
   
   in `superset-frontend/src/welcome/DashboardTable.jsx` line 117 (tag 0.36.0 
of the file)
   
   i replaced
   
   ```
       return SupersetClient.get({
         endpoint: `/api/v1/dashboard/?q=${queryParams}`,
       })
   ```
   
   by 
   
   ```
       return SupersetClient.get({
         endpoint: 
`/dashboardasync/api/read?_oc_DashboardModelViewAsync=changed_on&_od_DashboardModelViewAsync=desc`,
       })
   ```
   
   from a weird kind of clue seen in `src/components/OmniContainer.jsx` : there 
is an **todo** there ... so maybe it's not yet fully implemented in tag 0.36.0 
? that's weird.
   
   ```
   const getDashboards = query =>
     // todo: Build a dedicated endpoint for dashboard searching
     // i.e. superset/v1/api/dashboards?q=${query}
     SupersetClient.get({
       endpoint: 
`/dashboardasync/api/read?_oc_DashboardModelViewAsync=changed_on&_od_DashboardModelViewAsync=desc&_flt_2_dashboard_title=${query}`,
     })
   ```
   
   **to sum up**
   I've put back in DashboardTable.jsx the api call from tag 0.34.0 ... and it 
seems to work.
   
   No idea what's missing to make new api call work
   
   
   


----------------------------------------------------------------
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to