cli icon indicating copy to clipboard operation
cli copied to clipboard

Feature: add "outdated" notification on download and submit

Open SleeplessByte opened this issue 7 years ago • 6 comments

If a student downloads an exercise or submits an exercise that has a newer version of test suite, add the message that their version is outdated and they could update to the latest version. Preferably via a flag in the CLI.

Slack source in #questions

SleeplessByte avatar Feb 01 '19 02:02 SleeplessByte

How does the api currently handle this? I imagine it always downloads the latest version of the problem. @iHiD ?

Smarticles101 avatar Feb 05 '19 14:02 Smarticles101

@Smarticles101 yep it always downloads the newest unless you've downloaded an older version before. Then when you submit, it always just works and you must press the update button on the site and download again in order to update.

SleeplessByte avatar Feb 05 '19 17:02 SleeplessByte

We could even make it interactive :)

iHiD avatar Feb 05 '19 20:02 iHiD

Then when you submit, it always just works and you must press the update button on the site and download again in order to update.

I just had a use case where apparently I had downloaded the exercise before, never submitted and deleted the exercise directory (TBH, I have no idea why I cleared the directory, thus removing any local evidence of a previous download :man_shrugging:). When I redownloaded, the test suite was out-of-date, but the update button does not appear on the site until a submission has been made.

It would be nice if that button were visible without submission.

cmccandless avatar Feb 11 '19 16:02 cmccandless

@cmccandless Mind opening an issue in exercism/exercism for this please, as I think it's a seperate issue and I don't want it to get lost in this thread.

iHiD avatar Feb 12 '19 04:02 iHiD

@iHiD Done. See exercism/exercism#4694

cmccandless avatar Feb 12 '19 14:02 cmccandless