Different tickets have been updating the models files for both api and webapp. It would save a lot of time and effort for these changes to be merged into the feature and synchronized so that the same types are available for both frontend and backend tickets.
Additional Details and Resources
The following changes will need to be made:
SubmittedAssessment and OpenedAssessment should collapse into one SavedAssessment type.
There should be a base, non-exported interface called Assessment from which the different similar types (AssessmentWithSummary, SavedAssessment, and AssessmentWithSubmissions) inherit.
This inherited interface should also include a new member, principal_program_role, that responds with either "participant" or "facilitator", the role of that user for the program associated with that Assessment.
submissions_summary inside of AssessmentWithSummary should be broken into participant_submissions_summary and facilitator_submissions_summary to reduce ambiguity.
most_recent_submitted_date in AssessmentSubmissionsSummary should be made optional.
All database entity types should inherit from Entity on the frontend.
Correct Project Selected
[X] This issue is linked to the appropriate project
Describe the Feature / Enhancement
Different tickets have been updating the models files for both
api
andwebapp
. It would save a lot of time and effort for these changes to be merged into the feature and synchronized so that the same types are available for both frontend and backend tickets.Additional Details and Resources
The following changes will need to be made:
SubmittedAssessment
andOpenedAssessment
should collapse into oneSavedAssessment
type.Assessment
from which the different similar types (AssessmentWithSummary
,SavedAssessment
, andAssessmentWithSubmissions
) inherit.principal_program_role
, that responds with either "participant" or "facilitator", the role of that user for the program associated with thatAssessment
.submissions_summary
inside ofAssessmentWithSummary
should be broken intoparticipant_submissions_summary
andfacilitator_submissions_summary
to reduce ambiguity.most_recent_submitted_date
inAssessmentSubmissionsSummary
should be made optional.Entity
on the frontend.Correct Project Selected
Labels