-
Notifications
You must be signed in to change notification settings - Fork 276
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
Exam mode
: Show only exam relevant notifications in the exam mode
#8084
Exam mode
: Show only exam relevant notifications in the exam mode
#8084
Conversation
WalkthroughThe recent updates focus on enhancing the notification system in a web application to differentiate and manage notifications based on the user's mode, specifically targeting exam mode. A new property and method were introduced to identify exam mode, and the notification handling logic was modified accordingly. Additionally, the test suite was updated to reflect these changes, ensuring that notifications relevant to exam exercises are appropriately managed depending on the user's current mode. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
src/test/javascript/spec/component/shared/notification/notification-popup.component.spec.ts
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on TS2.
- Messages > Announcements and direct messages did not show up during the exam
- Comments on exercises and replies also did not show up
- Exercise change notifications still show up as expected during the exam
- Go back to course as student > Messages are now received normally
-> Works as expected!
I think we can dismiss this change request as it was an oversight
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes make sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Manually tested on ts6, works as expected
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested on ts6. Lgtm!
Checklist
General
Client
Motivation and Context
Notifications which are not exam relevant still lead to popups in the bottom right corner when student is in exam mode. This is annoying during an exam and only exam relevant notifications should be displayed on the exam page. Currently there's only one exam relevant notification, which informs about the changes in the problem statement.
Description
I added a check to determine if the student is currently on the exam mode page. If they are, notifications that are not relevant are not displayed.
Exam Mode Testing
Prerequisites:
Testserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Review Progress
Performance Review
Code Review
Manual Tests
Exam Mode Test
Summary by CodeRabbit