Skip to content

Fix problem with downloading another person's solution using the --uuid flag#641

Merged
kytrinyx merged 3 commits intomasterfrom
download-uuid
Jul 14, 2018
Merged

Fix problem with downloading another person's solution using the --uuid flag#641
kytrinyx merged 3 commits intomasterfrom
download-uuid

Conversation

@kytrinyx
Copy link
Member

We were failing to do a mkdir -p before trying to write files when downloading someone else's solution.

Closes #621

Katrina Owen added 3 commits July 14, 2018 17:57
The fake download server hardcodes responses, effectively hiding information.
Since the setup in the test doesn't obviously create the data, it
makes some sort of sense to hide the filenames in the assertion.

I don't massively like it, but I think it kind of makes sense for now.
You should be able to download by an exercise name or a uuid.
This adds a test for the uuid case.
When downloading someone else's solution, we weren't creating the necessary directories
before trying to write the file to the target directory.
@kytrinyx kytrinyx requested a review from nywilken July 14, 2018 23:17
@kytrinyx
Copy link
Member Author

Merging so I can get one more fix in before this flight leaves (and so I can cut a release!)

@kytrinyx kytrinyx merged commit f6e8b73 into master Jul 14, 2018
@kytrinyx kytrinyx deleted the download-uuid branch July 14, 2018 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant