superset icon indicating copy to clipboard operation
superset copied to clipboard

Copy Query url shortener

Open vera-liu opened this issue 10 years ago • 5 comments

Use a url shortener for sharing query functionality, without exposing userId, dbId and sql query in url. related: https://github.com/airbnb/caravel/issues/1052

vera-liu avatar Oct 10 '16 22:10 vera-liu

I meant a bit different thing. For the external product to be able to open a query in SQL Lab it would be challenging to know the user_id and database_id:

  • User ID is already known in state, that should not be parameter, and when different user open's the query up - it should be tied to his account.
  • Database name should be sufficient for us to look up the database id
  • Schema may be needed as user can create the query using database and schema.

bkyryliuk avatar Oct 11 '16 05:10 bkyryliuk

@bogdan Ahh gotcha, created another issue https://github.com/airbnb/caravel/issues/1328 will work on it

vera-liu avatar Oct 12 '16 16:10 vera-liu

@bkyryliuk Actually after looking at this, userID is not part of the copy query link, and schema is already in the link, so the only thing left to do here is changing dbId to dbname

vera-liu avatar Oct 12 '16 18:10 vera-liu

@vera-liu - great news !

bkyryliuk avatar Oct 12 '16 19:10 bkyryliuk

https://github.com/airbnb/caravel/pull/1314

vera-liu avatar Oct 12 '16 23:10 vera-liu