Query Portability

Friday Demos · September 1, 2023 · 6:06

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. I can uh I can kick us off I guess I'm gonna wave my hands like this so I know when to edit so this week I was working on Tab portability uh we already had the ability to like move tabs to new workbooks um but we now have the ability to move tabs between workbooks um it's important that well it should be noted that like you need to be able to rather the workbooks need to be built off the same shared model to be able to move tabs between them um but the first way that tabs can be moved is via what we call slug hacking um which is copy and pasting the menu ideas that represent query tabs between workbooks so I just want

  2. to show the failure so this is a tab that's from a different connection than all of the other tabs in my browser uh if I try to copy this one to you get a an error page that just says that the tab specifies or the the URL specifies tabs from different workbooks or uh with different shared models um yeah I think because we have UI we're not really expecting people to do this but I guess like power users like Colin have tried to do this in the past um and we will still enable them to do it uh so just here is a happy path case of slug hacking uh from one workbook to another workbook the query that I'm copying over now has or

  3. is built on a workbook model with a custom field so we have a bigger age which is just age plus a thousand I believe um and when you slug hack it over to here also you need this to slug hack you paste the tab in this middle section right after the E uh if you want the tab to be focused after the slug act you need to also change the uuid at the end of the link um but if I do that you'll see here is biggerage uh the workbook model that the query was copied into changed and has bigger age now um and additionally the behavior changes a little bit when a workbook is named so it's a piece of content now um if

  4. I went to go do a different uh query you'll see we will go into and explore um say you're not pushing the workbook ahead at all um but you have the capability to do that if you'd like um snower and explore you get a little toast every time a tab is copied over um and I didn't do a good job so the tab doesn't get focused unless you're manual about it in the slug hacking case um but yeah we'll save this here we'll move the workbook forward and then uh there's also you ought to do this now so you don't need to slug hack um so now I'll show you there's an import tab here in the file menu um if a workbook is named

  5. you have to go into edit mode for it to be active and when you click import tab you get this little prompt here that says paste a tab ID obviously it's required uh if I put some garbage tab idea in it hits the back end checks if there's a query there this is a garbage one I could do one from another same thing as before uh query that is incompatible with the workbook because it is on a different shared model you should get an error here um and then also there's uh there's also UI that I forgot to show for grabbing a query or copying a query so you can either go to the tab nav down here or the tab file menu up here

  6. and click copy to existing workbook you get this little dialog with a copy input there's some stuff that needs to happen here uh to give a little indication when this is successfully copied but this is on my clipboard now I can go back to the named workbook and try to import this and we're in edit mode it imported the new tab um and the dashboard also will have brought in the new chart as well uh but yeah there's a lot of different steps so I'm sure I maybe missed a little corner of it but uh I'll probably release it on Monday and then I need to do a little bit of cleanup awesome probably our most Progressive feature actually is the next step to do

  7. like cross browser window tab dragging I have no idea how that would work uh you like the question does it write an entry to the workbook history oh yeah I should be able to share that um it does indeed yeah I was I felt like I was taking too much time so I skipped a few um you see there's an import query um item here so if I were to like import again you'll see it just grab the same one too many tabs there's another one import query so that's what we're calling it for now uh opened up changing it if we want