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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remaining submission counter #1168

Merged
merged 1 commit into from
May 7, 2024

Conversation

EerikSaksi
Copy link
Contributor

馃毃馃毃馃毃馃毃馃毃馃毃馃毃馃毃馃毃馃毃馃毃馃毃馃毃馃毃馃毃馃毃馃毃馃毃馃毃馃毃馃毃This work depends on the PR #1167 which should be merged before this

Description

What?

vid.mp4

Add counter of manually assessed users, showing the number of users that have been passed in the queue, remaining, and the percentage. This ratio and percentage are displayed on the link to assess the next user.

Why?

Gives teachers grading a sense of how much there is to grade, and how much has already been done.

How?
We first get the total number of submissions prior to filtering by time. After filtering by time, we again get the number of submissions to calculate how many submission the user has already viewed. We use these two values to show the ratio and calculate the percentage. We embed this as a session variable, because NextUnassessedSubmitterView redirects to InspectSubmissionView, and this allows us to pass this information without modifying the URL pattern.

Fixes #1109

Testing

Remember to add or update unit tests for new features and changes.

What type of test did you run?

  • Accessibility test using the WAVE extension.
  • Django unit tests.
  • Selenium tests.
  • Other test. (Add a description below)
  • Manual testing.

Ensuring the percentage and ratio of assessed submission is correct.

Did you test the changes in

  • Chrome
  • Firefox
  • This pull request cannot be tested in the browser.

Think of what is affected by these changes and could become broken

Translation

Programming style

  • Did you follow our style guides?
  • Did you use Python type hinting in all functions that you added or edited? (type hints for function parameters and return values)

Have you updated the README or other relevant documentation?

  • documents inside the doc directory.
  • README.md.
  • Aplus Manual.
  • Other documentation (mention below which documentation).

Is it Done?

  • Reviewer has finished the code review
  • After the review, the developer has made changes accordingly
  • Customer/Teacher has accepted the implementation of the feature

Clean up your git commit history before submitting the pull request!

Copy link
Contributor

@PasiSa PasiSa left a comment

Choose a reason for hiding this comment

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

As said in earlier comment, I think the idea was to count individual submitters, not submissions. Apart from that, I didn't have other comments on code. I also quickly tested this.

I think the other commit was already included in PR #1167 that was merged , so it could be cleaned up. Also remember to rebase against current master, there are also other recent commits.

@@ -338,6 +338,8 @@ def get(self, request: HttpRequest, *args: Any, **kwargs: Any) -> HttpResponse:
)
.filter(count_assessed=0))

total_submissions = submissions.count()
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the idea was to show the number of submitters remaining, now the counting is done based on submissions. I made four submissions by three different users and it shows X / 4 (and percentage accordingly), but the number of total students should have been 3.

@PasiSa
Copy link
Contributor

PasiSa commented May 31, 2023

Now that I more carefully read the issue description, I understood that the request was to add the counter on the top of the submitters list. Now it is only in the inspect submissions view, which was the other proposal in the issue. Or was it the intent that the idea in issue comment would replace the original proposal?

Related to earlier comment, I also noticed that if I manually assess one of the submissions by student with multiple submissions, the other submissions from that student are still counted as unassessed, "Assess next" button also rotates to those once assessed students.

@EerikSaksi EerikSaksi force-pushed the remaining-submission-counter branch from 3c03300 to 2c4eeea Compare June 30, 2023 12:05
@EerikSaksi
Copy link
Contributor Author

Screenshot from 2023-06-30 15-10-21

Screenshot from 2023-06-30 15-07-47

Screenshot from 2023-06-30 15-11-17

Here are the three places I added the counter. Any feedback on the formatting or location is welcome

@ihalaij1 ihalaij1 assigned ihalaij1 and unassigned EerikSaksi May 6, 2024
@ihalaij1 ihalaij1 force-pushed the remaining-submission-counter branch 2 times, most recently from bfbf8ce to 0cf3323 Compare May 7, 2024 06:53
Add counter of manually assessed submitters, showing the number of
submitters that have been assessed, remaining, and the percentage.

Fixes apluslms#1109
@ihalaij1 ihalaij1 force-pushed the remaining-submission-counter branch from 0cf3323 to 854f92a Compare May 7, 2024 06:57
@ihalaij1 ihalaij1 merged commit 747de51 into apluslms:master May 7, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Counter for manually assessed students in the submitters list view
3 participants