...
When a user tries to create any course from the workspace:
Since, SH-3, we have segregated the create workflow into two parts:
...
Now, we need to change this workflow, as we have introduced custom framework for any tenant (as of now, CBSE has its custom framework called ‘cbse-tpd’ ) and we need to take that framework while creating content from the training sub-tab.
Solution 1:
We will make an API call (getformConfig) to get the custom framework while we start creating any course/resource from the training sub-tab.
...
** request body for the form read API:
Code Block |
---|
{ formType: 'framework', formAction: 'search', contentType: 'framework-code', } |
...
Note : Since we are making the same getFormConfig API call to get the custom framework what we are making in the “Trainings” page, then we can take the same from the cache.
...
So, When the user goes to the “Trainings” page, we won’t make the API call again.
...
Pros: This is an existing workflow. To be easy to implement.
...
To get a new API which will give a list of frameworks tagged with a tenant.
...