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

Only show submissions without a course in the submission overview on the submission detail page #3544

Closed
pdawyndt opened this issue Apr 19, 2022 · 4 comments · Fixed by #3637
Assignees
Labels
bug Something isn't working medium priority Things we want to see implemented relatively soon

Comments

@pdawyndt
Copy link
Contributor

For exercises that have submissions prior to numbering of submissions was introduced, there seems to be an off-by-one error

image
image

@pdawyndt pdawyndt added the bug Something isn't working label Apr 19, 2022
@bmesuere bmesuere added this to Roadmap Apr 19, 2022
@bmesuere bmesuere moved this to Unplanned in Roadmap Apr 19, 2022
@jorg-vr
Copy link
Contributor

jorg-vr commented Apr 19, 2022

Odd, still works correctly when I try to reproduce:
image

Could you link me the specific exercise so I can investigate further?

One potential cause: we number submissions within the context of a course, so it could have happened that 9 submissions happened in the course and 1 happened outside. If this is indeed the cause we should improve the automatically numbered list. (Either by only showing submissions within the same course, or by using the database numbers instead of generated ones)

@pdawyndt
Copy link
Contributor Author

Just happende again in class with this exercise https://dodona.ugent.be/nl/exercises/837426097/. As you’ll see, these submission are not scopes in a course, so that’s probabilistisch where the issue occurs. Nummering should at leaset be the same on the same page (which is where off by onze occurs).

@pdawyndt
Copy link
Contributor Author

pdawyndt commented Apr 19, 2022

Also: wouldn’t it be logical to add numbers to all submissions retroactively? Now, submissions prior to release 5.4 have no sequence number.

@jorg-vr
Copy link
Contributor

jorg-vr commented Apr 19, 2022

Ok I found the issue.

One submission was made within the context of a course: https://dodona.ugent.be/nl/submissions/7583516/ and thus numbered separately
Here only submissions within the same course are shown as expected

The other submissions were done without a course context. But their submission overview also shows all submissions that have a course, which results in an incorrect numbering:
image

@jorg-vr jorg-vr self-assigned this Apr 19, 2022
@jorg-vr jorg-vr changed the title Wrong numbering for exercises with legacy submissions Only show submissions without a course in the submission overview on the submission detail page Apr 19, 2022
@bmesuere bmesuere added the medium priority Things we want to see implemented relatively soon label Apr 20, 2022
@bmesuere bmesuere moved this from Unplanned to Todo in Roadmap Apr 20, 2022
@bmesuere bmesuere moved this from Todo to In Progress in Roadmap Apr 20, 2022
Repository owner moved this from In Progress to Done in Roadmap May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working medium priority Things we want to see implemented relatively soon
Projects
Status: Done
3 participants