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

Fix annotation feedback not shown when share feature is disabled #686

Merged
merged 5 commits into from
Sep 19, 2024

Conversation

Splines
Copy link
Member

@Splines Splines commented Aug 22, 2024

In #668, we added an overview page for annotations (/annotations). In the following scenario, the behavior was incoherent:

  • Teacher enables "allow students to share annotations with the teacher" in the lecture settings
  • Student creates an annotation and shares it with the teacher
  • Teacher disables "allow students to share annotations with the teacher" in the lecture settings

In the annotation overview page, the annotation was then listed under the section for students annotations. However, if the teacher clicked on it, they were redirected to the feedback player but didn't see the annotation.

We came to the conclusion that we want the annotation to still be visible to the teacher in this case. This is justified since the student has deliberately clicked on "Make the annotation visible for the teacher" when creating the annotation, so the annotation should still be visible to the teacher regardless of the discussed lecture setting "allow students to share annotations with the teacher". In our interpretation, this option only refers to newly created annotations.

In this PR, we fix the incoherent behavior by still displaying shared annotations to the teacher (in the feedback player) even if the option in the lecture settings (see above) is disabled.

(should not be dependent on whether NEW annotations can be posted
with the teacher or not)
Copy link

codecov bot commented Aug 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 53.86%. Comparing base (d48e369) to head (3361ee4).
Report is 6 commits behind head on dev.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #686   +/-   ##
=======================================
  Coverage   53.86%   53.86%           
=======================================
  Files         157      157           
  Lines        6645     6645           
=======================================
  Hits         3579     3579           
  Misses       3066     3066           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@fosterfarrell9 fosterfarrell9 left a comment

Choose a reason for hiding this comment

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

LGTM.

@Splines Splines merged commit 73b0fc8 into dev Sep 19, 2024
5 checks passed
@Splines Splines deleted the fix/annotation-feedback branch September 19, 2024 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants