Open
Conversation
… into feat-58-submission_workflow
# Conflicts: # backend/db/models/document_data.js
dennis-zyska
requested changes
Jan 23, 2026
| stepType: 1, | ||
| allowBackward: true, | ||
| workflowStepDocument: null, | ||
| configuration: { |
Collaborator
There was a problem hiding this comment.
We should add to the configuration that the assessment from the previous step should be loaded, maybe sometimes this is not needed
Collaborator
Author
There was a problem hiding this comment.
You mean like we add a check that the previous assessment is loaded why do wee need that though?
| // 1. Manual data from document_data[assessment_result] | ||
| const raw = this.documentData[this.assessmentDataKey]; | ||
| // 1. Manual data from document_data[assessment_result] or previous_assessment_result as fallback | ||
| let raw = this.documentData[this.assessmentDataKey]; |
Collaborator
There was a problem hiding this comment.
Can you double check that if I save one of the criteria, it only saves in the new assessment_results the criteria that I already saved with the button click?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Main Description
A new revision‑based submission review workflow has been introduced to the CARE system. This feature allows administrators and reviewers to create new submissions that build on data from previous study sessions. When reviewing a revised submission, the previous version is displayed in read‑only mode, while the new version appears with the assessment sidebar pre‑filled using the prior submission's grade (without persisting it). A new assignment mode ensures that submissions can only be created when all selected users have an associated study session.
New User Features
readOnlyComponentsconfigurationprevious_assessment_result(not saved automatically, marked withisSaved: false)study_sessionrequiring all selected users to have a corresponding study session before submissionNew Dev Features
previousSubmissionIdcolumn tosubmissiontable (migration 20260103134710-extend-submission-previousSubmissionId.js)parentSubmissionIdforeign key to track submission lineage and revision chainsRevision Workflowwith two-step annotation process added to workflow system (migration 20260103145255-extend-workflow-revision_workflow.js)Improvements
Bug Fixes
Known Limitations
Future Steps
NA