microbit-foundation / python-editor-v3

Micro:bit Educational Foundation Python Editor V3
https://python.microbit.org
MIT License
57 stars 36 forks source link

Avoid unwanted project persistence #1009

Closed microbit-matt-hillsdon closed 2 years ago

microbit-matt-hillsdon commented 2 years ago

Session storage lasts for the lifetime of the tab, so we need to make sure subsequent migration URLs and iframe configurations work.

Motivated by issues with "Open in Classroom" and "Open in Python" on microbit.org.

github-actions[bot] commented 2 years ago

Preview build will be at https://review-python-editor-v3.microbit.org/persistence-bug/

Get silly project: https://review-python-editor-v3.microbit.org/persistence-bug/#import:#project:XQAAgABnAQAAAAAAAAA9iImmlGSt1R++5LD+ZJ36cRz46B+lhYtNRoWF0nijpaVyZlK7ACfSpeoQpgfk21st4ty06R4PEOT0MV00On7YLgO4q3OtXDrNv8HvrphKHoNvdK6BeR/L5zLiNL2fCCTpobaxdoFzRnsx7oq4YgP+NBDWsWO40rh1V7qYqOCUB0N8cUY+VIuzkPBBS2hP4DelWNwOCN1dgmv+l+6uLSsiyCIJo7czb9lYgzx6xV/kFfF5u09BGd1MBIV3eLxAKrRrNsgBKRoLXVtQcx6mVHUY+KQhJlmh//IPGgA=

Step counter project: https://review-python-editor-v3.microbit.org/persistence-bug/#import:#project:XQAAgAD7AAAAAAAAAAA9iImmlGSt1R++5LD+ZJ36cRz46B+lhYtNRoWF0nijpaVyZlK7ACfSpeoQpgfk21st4ty06R4PEOW6a/wPneV4pD9FfCvljUifnE43gu+n4O7Yy4ILtsZn+OTIenO5LpEJfeDG/gh9o1SEnukn8Pp5lx0Px7mvRfyuqejINGhQEOtVtevRCfGGJuRue6nD9vDOK1WHZu7kG3ZW948X7mlHkU3XNvyKe/KVgjVfUkMJkJwcGQREo+AYN9vru//4YSsA

jaustin commented 2 years ago

I can switch between the two code snippets by navigating back/forward in this tab from the URLs you've provided (Ie this appears to fix the issue for me, here)