Hello all! Are there any breaking changes between ...
# questions
j
Hello all! Are there any breaking changes between kedro-viz 6.5.0 and kedro 6.6.1? With kedro 6.6.1 I am loosing all my bookmarks in the Experiment Tracking. Instead they all show up as plain runs and the names I gave them disappeared (Notes Titles are gone). Going back to 6.5.0 solves this issue for me.
m
@Tynan could you help here?
t
@Jan we've updated the way that we save user-edited experiment tracking data. before 6.6.1, it was saved to the sqlite database via an API call. in 6.6.1, we've decided to save the data to local storage in your browser. the functionality will be the same, but if you did have bookmarked runs or edited titles/notes, you'll lose those and will need to bookmark or edit them again
👍🏽 1
j
oh okay, thanks for the info. Is there a way to access them programmatically from the browser? I have a small script that checks for bookmarked runs from the database (sqlite connection) and cleans up all the run data in my filesystem of runs that were not bookmarked. I guess this will not work anymore either 😕
t
you can certainly get that data programmatically. this line will get all Kedro-Viz experiment tracking metadata:
Copy code
const kedroVizRunMetadata = localStorage.getItem("KedroViz-runs-metadata");
so in this instance
kedroVizRunMetadata
would return something like this:
Copy code
{
  "2022-12-24T21.05.59.296Z": {
    "bookmark": true,
    "title": "My title here",
    "notes": ""
  },
  "2022-10-05T12.22.35.825Z": {
    "bookmark": true
  }
}
j
Nice! And where would I get
localStorage
from? I guess I can also then update the localstorage?
t
localStorage
is a native browser property. more here. if you wanted to update a record, you would use the
setItem
method, like this:
Copy code
localStorage.setItem("KedroViz-runs-metadata", JSON.stringify({"2022-12-24T21.05.59.296Z":{"bookmark":true,"title":"My UPDATED title here","notes":""},"2022-10-05T12.22.35.825Z":{"bookmark":true}}));
j
Thanks, I see. So I guess I would have to run some JS in the browser. Will check it out 🙂
t
yes indeed. let me know if you need additional help :)