Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Accept zip archive for upload to Pybricks Code #833

Closed
dlech opened this issue Dec 7, 2022 · 4 comments
Closed

[Feature] Accept zip archive for upload to Pybricks Code #833

dlech opened this issue Dec 7, 2022 · 4 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request software: pybricks-code Issues with https://code.pybricks.com application

Comments

@dlech
Copy link
Member

dlech commented Dec 7, 2022

When we release the next version of Pybricks Code to code.pybricks.com, users who have been using beta.pybricks.com will likely want to move their files. Exporting the files is easy using the Backup all files button. But importing doesn't currently accept zip files, so the backup needs to be unzipped first. The Import a file open dialog allows multiple selection, so all files from this folder can be imported at one time.

So we should either document how to do this or consider allowing selecting a zip file when importing.

@dlech dlech added documentation Improvements or additions to documentation enhancement New feature or request software: pybricks-code Issues with https://code.pybricks.com application labels Dec 7, 2022
@laurensvalk
Copy link
Member

allowing selecting a zip file when importing.

I like this idea, but I'd be OK to release without this feature.

Copying a few files over isn't that much work for the end user, and not a bad idea anyway when migrating to a stable version. The beta isn't going away, so there is no risk of losing files.

@dlech
Copy link
Member Author

dlech commented Feb 13, 2023

This issue hasn't really come up, so we probably don't need to spend time on this.

@dlech dlech closed this as not planned Won't fix, can't repro, duplicate, stale Feb 13, 2023
@laurensvalk
Copy link
Member

laurensvalk commented Feb 14, 2023

allowing selecting a zip file when importing.

This could be useful if people use the download feature to move their stuff to another computer.

And edge cases like #896 (comment)

But I agree that we can live without it.

@laurensvalk laurensvalk changed the title beta.pybricks.com to code.pybricks.com file migration [Feature] Accept zip archive for upload to Pybricks Code Feb 24, 2023
@laurensvalk
Copy link
Member

I'm re-opening this based on input from an FLL coach. Another good use case for this is allowing FLL/WRO teams to back up their work and share between users/computers:

Originally posted by @TheWendyPower in https://fosstodon.org/@WendyDLN@mastodon.online/109909743109786344:

I have a quick question for you, and if it is in the documentation please direct me there. Can the programs be stored locally without have to download them. Right now we sync our code between two laptops and a backup with SyncThing. Not loosing all the code is the idea.

Originally posted by @laurensvalk in https://fosstodon.org/@laurensvalk/109912897687287118:

Download is the only way at present.
(...)
On a smaller scale, could we make it better by letting you upload the same .zip again?

Originally posted by @TheWendyPower in https://fosstodon.org/@WendyDLN@mastodon.online/109915280010666159:

Yes, being able to upload the same zip files would be great. We would have the kids download the file at the end of each meeting, and into a folder that syncs. This would allow them to have a backup of their code still, switch laptops, and collaborate from different locations. Backup is the most important.

@laurensvalk laurensvalk reopened this Feb 24, 2023
@dlech dlech self-assigned this Mar 7, 2023
dlech added a commit to pybricks/pybricks-code that referenced this issue Mar 7, 2023
Also add a new dialog to get user input when file names conflict.

Previously, we were not supplying a list of existing files, so existing
files were silently written over.

Fixes: pybricks/support#833
dlech added a commit to pybricks/pybricks-code that referenced this issue Mar 7, 2023
Also add a new dialog to get user input when file names conflict.

Previously, we were not supplying a list of existing files, so existing
files were silently written over.

Fixes: pybricks/support#833
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request software: pybricks-code Issues with https://code.pybricks.com application
Projects
None yet
Development

No branches or pull requests

2 participants