-
-
Notifications
You must be signed in to change notification settings - Fork 361
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
Implement behavior to migrate legacy exercises on the filesystem #639
Comments
I was originally going to write this, but I wasn't sure how many people have extensive local copies to migrate. It sounds like it would be useful! This would probably be pretty straight-forward to do with a bash script / powershell script. |
Thinking about this a little bit more I think I'd like to have this as a command in the CLI, so that we can simply call the "download" endpoint, which will return all the necessary data for the metadata file, and then we can simply not download the other files. Then people wouldn't have to be careful about backing up local copies etc. |
I spent a bit of time sketching out a few different possibilities, and the approach I like the best is to write an |
.solution.json
for all locally available exercises
This can rely on the the Line 48 in 80f08fc
The basic behavior should be: if directory has solution, do nothing if directory has no solution, write it migrates all available exercises provide dry-run capabalities |
I plan to give this a go this weekend. |
An initial thought: the convention for What do you think about considering another name? |
That's a good point. How about |
Sure,
Is it necessary to fake a test server here? Would writing a text file and comparing ModTime() to verify it doesn't get modified accomplish the same ends? Edit: After diving further into this, it seems the purpose is to verify that non-metadata files aren't downloaded (and thus the local workspace files aren't modified), so it seems that something like fakeSubmitServer is needed (and the above use of ModTime isn't going to cut it). |
It seems we need most of runDownload which suggests some refactoring. Since both |
I made a WIP PR #744. Since there are multiple issues related to |
Is atool as described in the subject planned, available or otherwise easily possible or not wanted at all?
The text was updated successfully, but these errors were encountered: