...
We will have to modify this logic to be able to publish question sets only with "Approved" questions, and not re-create questions when the question set is re-published.
We will add
acceptedContributions
andrejectedContributions
attributes in creation-portal question-set schema.We use
autoCreatorV2
flink job to copy contents from sourcing to consumption. Here we will add a check condition to validate ifacceptedContributions
attribute exists or not in question-set metadata.
- If attribute exist, we follow the new flow, in which we will remove the rejected questions from
question-set hierarchy and save to consumption.
- If attribute does not exist, we will use the existing flow and save all questions in question-set to
consumption irrespective of questions approval and rejection.
DB Changes: ProgramTable
column_name | datatype | postgresql command |
---|---|---|
targetcollectionprimarycategories | jsonb |
|
DB Changes: Configuration Table
...