feat: Fully implements support for cohorts

Uses the discussions settings API to fetch course division configuration and makes the cohort selection dynamic based on if a topic is divided.
This commit is contained in:
Kshitij Sobti
2021-12-06 10:43:23 +05:30
parent acc466c993
commit ceea220d62
8 changed files with 100 additions and 46 deletions

View File

@@ -77,6 +77,7 @@ export async function getThread(threadId) {
* @param {ThreadType} type The thread's type (either "question" or "discussion")
* @param {string} title
* @param {string} content
* @param {number} cohort
* @param {boolean} following Follow the thread after creating
* @param {boolean} anonymous Should the thread be anonymous to all users
* @param {boolean} anonymousToPeers Should the thread be anonymous to peers