-
Notifications
You must be signed in to change notification settings - Fork 307
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
: Remove author from exam live events
#10422
Exam mode
: Remove author from exam live events
#10422
Conversation
WalkthroughThe changes remove the Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant ExamLiveEventsService
participant EventDTO
Caller->>ExamLiveEventsService: createAndSendProblemStatementUpdateEvent(exercise, message)
Note right of ExamLiveEventsService: Now executes synchronously (removal of @Async)
ExamLiveEventsService->>EventDTO: Construct EventDTO (without createdBy)
ExamLiveEventsService->>Caller: Return control after processing
Possibly related PRs
Suggested labels
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (23)
💤 Files with no reviewable changes (15)
🧰 Additional context used📓 Path-based instructions (1)`src/main/java/**/*.java`: naming:CamelCase; principles:{sin...
⏰ Context from checks skipped due to timeout of 90000ms (8)
🔇 Additional comments (9)
✨ Finishing Touches
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 using PR comments)
Other keywords and placeholders
Documentation and Community
|
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 makes sense, but please add a screenshot to the description
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 LGTM
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. No author shown in event notification, as described.
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, participated in an exam and received a notification without an author
Checklist
General
Server
Client
Motivation and Context
Together with @krusche, we decided to remove the author from live exam events as this information is unnecessary. Additionally, this PR fixes an issue where the
@CreatedBy
annotation did not correctly capture the user due to the@Async
annotation interfering withAuthenticationContext
propagation.Description
I removed the author from live exam events and removed the
@Async
annotation so thatAuthenticationContext
is properly propagated and@CreatedBy
can be used as intended.Steps for Testing
Prerequisites:
Testserver States
You can manage test servers using Helios. Check environment statuses in the environment list. To deploy to a test server, go to the CI/CD page, find your PR or branch, and trigger the deployment.
Review Progress
Performance Review
Code Review
Manual Tests
Summary by CodeRabbit