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

Add submission tags #1358

Merged
merged 4 commits into from
May 22, 2024
Merged

Add submission tags #1358

merged 4 commits into from
May 22, 2024

Conversation

mikaelGusse
Copy link
Contributor

@mikaelGusse mikaelGusse commented Apr 30, 2024

Description

What?

Added tags to submissions and the possibility to filter using these tags.

submission_tags_demo_compressed_1.mp4

Why?

Adds a requested feature that allows teachers to more easily identify particular submissions.

How?

Added a new django model for the submissiontag and additionally a submissiontagging class which stores which submissiontags belong to which submissions. Additionally added javascript table manipulation for filtering.

Fixes #1347

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.

Tested adding tags to multiple submissions and creating new tags. Also tried filtering with different combinations of tags.

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!

- Increased padding
- Implemented wrapping for tags
- Changed dropdown appearance
exercise/views.py Fixed Show fixed Hide fixed
exercise/views.py Fixed Show fixed Hide fixed
Copy link
Contributor

@murhum1 murhum1 left a comment

Choose a reason for hiding this comment

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

Thanks! I left comments on some things I think should be fixed before merging.

There's also some parts I'm not entirely sure about, and the whole thing with saving submission taggings by creating on-demand forms in JS, but we can take a look at that later if need be since this implementation does work.

locale/en/LC_MESSAGES/django.po Outdated Show resolved Hide resolved
locale/fi/LC_MESSAGES/django.po Outdated Show resolved Hide resolved
exercise/templates/exercise/staff/_assessment_panel.html Outdated Show resolved Hide resolved
exercise/templates/exercise/staff/_submissions_table.html Outdated Show resolved Hide resolved
exercise/templates/exercise/staff/_submissions_table.html Outdated Show resolved Hide resolved
exercise/templates/exercise/staff/list_submissions.html Outdated Show resolved Hide resolved
locale/fi/LC_MESSAGES/django.po Show resolved Hide resolved
exercise/views.py Dismissed Show dismissed Hide dismissed
exercise/views.py Dismissed Show dismissed Hide dismissed
Submission tags are created through the inspect submission
UI so the form is unnecessary, as well as the associated
template. Also checked submission tagging add- and delete
forms to verify the tag comes from the accessed course
instance.
@murhum1 murhum1 merged commit 3a94abe into apluslms:master May 22, 2024
9 checks passed
@mikaelGusse mikaelGusse deleted the submission_tags branch May 27, 2024 09:45
@mikaelGusse mikaelGusse restored the submission_tags branch May 27, 2024 09:45
@mikaelGusse mikaelGusse deleted the submission_tags branch May 27, 2024 09:45
@mikaelGusse mikaelGusse restored the submission_tags branch May 27, 2024 09:45
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.

Allow tagging submissions
2 participants