feat: add cohort filter in filter action bar (#172)

* feat: add cohort filter in the filter action bar

* test: fix posts view fail test cases

* test: add test case for cohort filter
This commit is contained in:
Awais Ansari
2022-06-01 13:39:33 +05:00
committed by GitHub
parent 2ea48f6825
commit 7502006f01
8 changed files with 239 additions and 122 deletions

View File

@@ -42,6 +42,7 @@ export async function getThreads(
flagged,
threadType,
countFlagged,
cohort,
} = {},
) {
const params = snakeCaseObject({
@@ -58,6 +59,7 @@ export async function getThreads(
author,
flagged,
countFlagged,
groupId: cohort,
});
const { data } = await getAuthenticatedHttpClient().get(threadsApiUrl, { params });
return data;