bbcmicrobit / bbcmicrobit/PythonEditor

Moving between versions should preserve contents of buffer

Open
#19 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
201
Forks
126
PR merge metrics
No merged PRs in 30d

Description

Since 0.1.0 we've been able to move between different versions of the editor. Hooray!

However, currently the contents of the script buffer (IE the users' code) gets lost between this version migration. In the case that the user entered with a script in the URL we will preserve that script but not any subsequent changes.

I believe the following rule is good:

> Whenever moving between editor versions, put the buffer contents into the URL bar so that the script migrates between versions

Implementation-wise there are a few privacy gotchas - If we put their script in the URL bar then it can/could end up in server logs. If we put it in a cookie we have to mention that we will use cookies in privacy policy.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.