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

Handle exercise directories with numeric suffixes #722

Merged
merged 2 commits into from
Aug 28, 2018
Merged

Conversation

kytrinyx
Copy link
Member

An early design decision was to allow people to work on multiple solutions to the same
exercise at the same time. We later decided not to do this, but the CLI still had
logic that supported it.

This caused us to (incorrectly) create exercise directories that were named with a
numeric suffix, which would then get submitted to the backend server, which doesn't
care about filepaths.

Because the exercise with the numeric suffix doesn't match the expected path, we did
not correctly trim off any leading directories on submit, which further caused
the download command to put the solution in a weirdly and deeply nested directory,
making the solution hard to find and review.

Closes exercism/exercism#4275
Closes exercism/exercism#4066

@kytrinyx kytrinyx requested a review from nywilken August 26, 2018 20:00
@kytrinyx kytrinyx force-pushed the numeric-suffix branch 2 times, most recently from 5569709 to be218b6 Compare August 28, 2018 01:57
@nywilken
Copy link
Contributor

@kytrinyx pay no attention to my previous comment; in fact I deleted it because it was way off. I see the error of my ways now.

Copy link
Contributor

@nywilken nywilken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It took me a minute to get what was going on here. But I got it. This is good to go. I recommend a rebase to keep the history in order. But great stuff.

Katrina Owen added 2 commits August 28, 2018 16:14
An early design decision was to allow people to work on multiple solutions to the same
exercise at the same time. We later decided not to do this, but the CLI still had
logic that supported it.

This caused us to (incorrectly) create exercise directories that were named with a
numeric suffix, which would then get submitted to the backend server, which doesn't
care about filepaths.

Because the exercise with the numeric suffix doesn't match the expected path, we did
not correctly trim off any leading directories on submit, which further caused
the download command to put the solution in a weirdly and deeply nested directory,
making the solution hard to find and review.
@kytrinyx
Copy link
Member Author

Thanks @nywilken. I was a but unsure how much context to add to the comment.

@kytrinyx kytrinyx merged commit e9877e2 into master Aug 28, 2018
@kytrinyx kytrinyx deleted the numeric-suffix branch August 28, 2018 22:31
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.

Cannot download student's solution with cli Absolute path of file from computer shown in solution
2 participants