-
Notifications
You must be signed in to change notification settings - Fork 291
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
General
: Allow to publish example solutions for modeling, text and file upload exercises on a specific date
#4328
General
: Allow to publish example solutions for modeling, text and file upload exercises on a specific date
#4328
Conversation
…if sampleSolutionPublicationDate has passed.
Development:
Present Sample Solution for Modeling Exercises.
…github.com:ls1intum/Artemis into feature/modeling-exercises/present-sample-solution
…nd set it to null when importing. Add relevant tests.
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 look 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.
I noticed a small client bug although the functionality on the backend is implemented correctly.
- Create a modeling exercise and enter release date of sample solution.
- Re-import the same exercise.
- The sample solution release date of the new exercise should be emptied out but it is not done on the frontend.
- When the imported exercise is saved this way the correct behavior is seen in the backend however I think the date should be cleared as well.
Requested change is implemented
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 TS3. Checked the bug @canberkanar mentioned, it is fixed now. I also followed your testing steps for a modeling and a text exercise and checked the in exam mode. Did not encounter any problems. Nice work! 👍
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 client-side issue seen when importing exercises has been 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 TS1, works as described and expected 👍
Code changes also look good to me.
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 look 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.
Code: 👍
Development:
Present Example Solution for Modeling, Text and File Upload Exercises.Development
Allow instructors to present example solution for modeling, text and file upload exercises
Development
Allow instructors to present example solution for modeling, text and file upload exercisesDevelopment
: Allow instructors to present example solution for modeling, text and file upload exercises
Development
: Allow instructors to present example solution for modeling, text and file upload exercisesGeneral
: Allow instructors to present example solution for modeling, text and file upload exercises
General
: Allow instructors to present example solution for modeling, text and file upload exercisesGeneral
: Add possibility to publish example solutions for modeling, text and file upload exercises on a specific date
General
: Add possibility to publish example solutions for modeling, text and file upload exercises on a specific dateGeneral
: Allow to publish example solutions for modeling, text and file upload exercises on a specific date
Checklist
General
on a test serverlocally.smallissue that I tested locally and was confirmed by another developer on a test server.Server
@PreAuthorize
and checked the course groups for all new REST Calls (security).Client
authorities
to all new routes and checked the course groups for displaying navigation elements (links, buttons).Motivation and Context
This PR solves #16 for the modeling, text and file upload exercises. It allows example solutions (previously called "sample solution") to be published to the students after a predefined date.
This functionality will be added to the programming exercises in a follow-up PR.
Description
Note: Contains a database migration.
This PR adds
example_solution_publication_date
toExercise
model and allows instructors to set a date to make the example solution that is already present in the database available to the students for modeling, text and file upload exercises. Currently presenting example solutions is explicitly disabled for exam exercises, it is planned to extend this feature to include them in a follow-up PR. Also, sampleSolution (and similar) fields, attributes, translation strings, etc. are renamed to exampleSolution (and similar) for Modeling, Text and File Upload Exercises because "Example solution" term is preferred over "Sample solution".Steps for Testing
Contains a migration so please deploy only to TS1 or TS3 (new).
Prerequisites:
Instructor:
Example Solution Publication Date
is empty or after current time.Student:
Instructor:
Example Solution Publication Date
of the exercise to a time before current time.Student:
Ensure example solution is visible.
Ensure the term "Example solution" is used instead "Sample solution".
Repeat steps 1-9 with
Modeling Exercise
replaced withText Exercise
andFile Upload Exercise
.Instructor:
Import an existing
Modeling Exercise
withExample Solution Publication Date
set to a non-null date.Ensure new exercise has
Example Solution Publication Date
set to null.Repeat steps 12-13 with
Modeling Exercise
replaced withText Exercise
.Review Progress
Code Review
Manual Tests
Test Coverage
File: Branches % | Lines %
BaseExercise.java: 86% | 99%
FileUploadExercise.java: 100% | 100%
TextExercise.java: 100% | 100%
ModelingExercise.java: 100% | 89%
course-exercise-details.component.ts : 59.23% | 79.6%
modeling-exercise-update.component.ts: 81.92% | 92.07%
Screenshots
Course Management View (For Modeling Exercise)
Course Exercise Detail
Modeling Exercise
Text Exercise
File Upload Exercise