...
Contribution & Review
In case the
targetCollectionType
of the Project is"QuestionSet"
, thequestion-list
component remains the same. Upon creating or editing questions, the Question Set Editor will open directly on the create/edit question page.For this, one approach is to show the existing question list component, and then redirect to the Question Set Editor for question creation/editing
Filtering logic will need to be added to the Question Set Editor package where the question list and the preview will render only for questions added by the current user
The other approach (outlined below) involves unbundling the Question Set Editor package to extract a single Question Editor component and using that for the contribution, preview and review user flows.
Question Set Editor Component Modifications
Extract individual components from this repo and publish them as separate NPM packages, and then include those individual components for creating/editing, previewing and reviewing questions instead of including the entire Question Set Editor package.
DB Changes: ProgramTable
column_name | datatype | postgresql command |
---|---|---|
targetCollectionType | text array |
|
questionSetIds | text array |
|