...
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 useIf sourcing reviewer approves the question, we will add its identifier to
acceptedContributions
array and if question is rejected it will be added torejectedContributions
array.We are using autoCreatorV2 flink job to copy contents from sourcing to consumption. Here we will add a check condition to validate if
acceptedContributions
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 only with approved questions 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.
...