Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Publish Project

    1. In a published project, the status of QuestionSets remains draft.

    2. In the QuestionSet, questions will be:   

      1. Added and submitted by Contributors(status: Draft, but Review Pending ),

      2. Reviewed by ContributorOrg reviewer(status: Live but Approval pending) and then

      3. Approved and published by SourcingOrg reviewer(status: Live but Approved).

    3. For QuestionSets having all approved questions, we’ll publish the QuestionSet on click of button(Publish Question Set) which will be enabled on the basis of config we’ll pass to category definition API.

    4. An existing key publishQuestionset will be used in category definition which will have boolean values.

      1. API: category/definition/v1/read

    5. On click of button(Publish Question Set), we’ll hit publish API so the status of QuestionSets will become live.

      1. API : questionset/v1/publish/do_id
        It’s an Async API.

  2. Adding Import Button on TOC

    1. After having the status of QuestionSet as live, will show a button “Import QuestionSet” to import it on Ed Portal.

    2. This will be enabled on the basis of the category definition config we used for the button(Publish Question Set) in 1(D).

    3. On click of the button(Import QuestionSet) we’ll hit the import API.
      API: questionset/v1/import

Pros: Use of existing API
Cons: Existing API only allows the QuestionSet having all approved questions

...



Open questions:

  1. As the publish QuestionSet API is Async, how will we show the Import QuestionSet button.

  2. If the publish QuestionSet API fails, what shall we show there or how should we handle this?

...