-
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
Text exercises
: Fix an edge case with discarded Athena feedback suggestions for tutors
#10140
Text exercises
: Fix an edge case with discarded Athena feedback suggestions for tutors
#10140
Conversation
WalkthroughThis pull request modifies the text submission assessment component to improve handling of text block references, specifically addressing scenarios where text blocks have matching end indices. The changes enhance the logic for adding automatic text block references, ensuring more precise management of overlapping text blocks. A corresponding test suite has been updated to validate the new behavior, covering edge cases involving text block overlap and feedback suggestion management. Changes
Sequence DiagramsequenceDiagram
participant Component as TextSubmissionAssessmentComponent
participant Method as addAutomaticTextBlockRef
Component->>Method: Add text block reference
Method-->>Method: Check end index overlap
alt End indices match
Method->>Method: Adjust block reference
end
Method-->>Component: Return updated text block references
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (2)src/main/webapp/app/exercises/text/assess/text-submission-assessment.component.ts (1)src/test/javascript/spec/component/text-submission-assessment/text-submission-assessment.component.spec.ts (1)Pattern ⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (2)
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
|
Text Exercises
: Handle edge case and add corresponding test casesText exercises
: Handle edge case and add corresponding test cases
Text exercises
: Handle edge case and add corresponding test casesText exercises
: Fix edge case with discarded Athena feedback suggestions for tutors
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.
Code looks good and makes sense, it is rather hard to test but still works as expected on TS1
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.
Text exercises
: Fix edge case with discarded Athena feedback suggestions for tutorsText exercises
: Fix an edge case with discarded Athena feedback suggestions for tutors
Checklist
General
Client
Motivation and Context
Currently, there is the edge case when two feedback items overlap and have the same end_index, but a different start index, which they reference.
This leads to issues as tutors do not see all of the feedback when they assess text exercises that use feedback suggestions from Athena. In case Athena is not used, the issue does not occur.
The overlapping feedback element is not shown in the client, and therefore also the score displayed to the tutor during the assessment is wrong (as it only incorporates the visible feedback).
The overall score on Artemis is still correct, and the feedback items persist, but the overlapping text blocks not.
However, it is not clear to the tutors that they may give the students unintendedly more points than they want.
Example:
Only three feedback items are displayed to the tutor during the assessment:
However, Athena generated four feedback suggestions (where two of them overlap):
Also, in the Artemis database four feedback items are saved:
Description
This PR adds a new if condition check to the addAutomaticTextBlockRef() function that processes incoming feedback suggestions from Athena.
The check is called if the existing block is starting after the new block, but both ending at the same index.
In addition, the corresponding test has been extended by two new suitable test case instantiations.
Steps for Testing
Prerequisites:
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
Test Coverage
Summary by CodeRabbit
Bug Fixes
Tests