Skip to content
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

Shortcut button for creating exam evaluation #2008

Open
janno42 opened this issue Aug 28, 2023 · 0 comments · May be fixed by #2050
Open

Shortcut button for creating exam evaluation #2008

janno42 opened this issue Aug 28, 2023 · 0 comments · May be fixed by #2050
Assignees
Labels
[C] Backend Focuses on backend implementation [C] Frontend Focuses on frontend implementation [P] Major Major priority
Milestone

Comments

@janno42
Copy link
Member

janno42 commented Aug 28, 2023

A new button should be added to the actions column of the Evaluations tab of the staff semester page.
This button (with a fa-file-pen icon and the tooltip Create exam evaluation) should open a modal titled Create exam evaluation with a date input field (labeled Exam date) below the following text: Create an exam evaluation based on this evaluation. This will copy all the participants and contributors from the original evaluation. It will set the weight of the original evaluation to 9 and its end date will be set to the day before the exam.

When submitting the modal form (Create exam evaluation button), the following should happen:

  • The weight of the evaluation at which the button was pressed (original evaluation) will be set to 9. If the evaluation has already been published, an error message is displayed (and nothing happens).
  • If the original evaluation has not yet ended, the evaluation period end date will be set to the day before the one selected in the modal. If this date is before the start date, an error message is displayed (and nothing happens).
  • A new evaluation will be created for the same course as the original evaluation (exam evaluation), will be named "Klausur/Exam", have a weight of 1, and be unrewarded.
  • The start datetime of the exam evaluation is 08:00 on the day after the exam date defined in the modal.
  • The end date of the exam evaluation is the third day after the exam date defined in the modal.
  • All participants from the original evaluation will be copied to the exam evaluation.
  • All contributors from the original evaluation will be copied to the exam evaluation without any assigned questionnaires.
  • All questionnaires listed in a new settings variable EXAM_QUESTIONNAIRES (initially set to contain the id of the "Miscellaneous" questionnaire) will be added to the exam evaluation as general questionnaires.
@janno42 janno42 added [C] Backend Focuses on backend implementation [C] Frontend Focuses on frontend implementation [P] Major Major priority labels Aug 28, 2023
@janno42 janno42 added this to the Winter 2023 milestone Aug 28, 2023
@FSadrieh FSadrieh linked a pull request Oct 30, 2023 that will close this issue
@janno42 janno42 linked a pull request Nov 27, 2023 that will close this issue
@janno42 janno42 modified the milestones: Winter 2023, Summer 2024 Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C] Backend Focuses on backend implementation [C] Frontend Focuses on frontend implementation [P] Major Major priority
Development

Successfully merging a pull request may close this issue.

2 participants