-
Notifications
You must be signed in to change notification settings - Fork 303
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
Assessment
: Don't allow activating presentations if no presentation scoring is set
#9251
Assessment
: Don't allow activating presentations if no presentation scoring is set
#9251
Conversation
WalkthroughThe changes involve simplifying the conditional checks for the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Component
participant Course
User->>Component: Request exercise view
Component->>Course: Fetch course data
Course-->>Component: Return course data with presentationScore
Component->>Component: Evaluate presentationScore (truthy check)
alt presentationScore is truthy
Component->>User: Render presentation score UI
else presentationScore is falsy
Component->>User: Do not render presentation score UI
end
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
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.
The code looks good 👍
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 ts4, 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 TS4, works as expected. 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.
Also tested on TS4, breadcrums show up correctly in the repository view 👍
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.
Actionable comments posted: 0
Outside diff range comments (1)
src/main/webapp/app/exercises/programming/manage/programming-exercise.component.html (1)
Line range hint
26-30
: Overall impact of presentation score condition changesThe modifications to the presentation score conditions in this file are consistent, improve code readability, and align well with the PR objectives. These changes effectively prevent the display of presentation score-related elements when the score is not defined, without introducing any apparent side effects to other parts of the template.
Consider documenting this behavior in the component's TypeScript file or in relevant documentation to ensure that future developers understand the implications of the
course.presentationScore
property on the UI rendering.Also applies to: 154-156
General
: Don't allow activating presentations if no presentation scoring is setAssessment
: Don't allow activating presentations if no presentation scoring is set
Checklist
General
Client
Motivation and Context
A conversation on Slack led me to an issue where an instructor activated presentations for an exercise, but then was unable to grade the presentations since the input was missing. This was caused by them not having setup the presentation mode in Artemis before.
Description
You can now only activate presentations for an exercise if the course has a presentation scoring setup.
The issue was caused by the presentation score value being undefined and
undefined !== 0 => true
.Steps for Testing
Testserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Click on the badges to get to the test servers.
Review Progress
Performance Review
Code Review
Manual Tests
Summary by CodeRabbit
New Features
Bug Fixes
Refactor