Skip to content

Commit

Permalink
Merge pull request #320 from AkshataKatwal16/reassign-cohorts
Browse files Browse the repository at this point in the history
Reassign cohorts
  • Loading branch information
itsvick authored Oct 4, 2024
2 parents 584e9d0 + b7b5e4f commit 7e4b47d
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/AssessmentReport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ const AssessmentReport: React.FC<AssessmentReportProp> = ({
try {
const options = {
userId: [userId],
courseId:assessmentList, // temporary added here assessmentList(contentId)... if assessment is done then need to pass actual course id and unit id here
unitId:assessmentList,
contentId: assessmentList,
batchId: classId,
batchId: classId,
};
const assessmentStatus = await getAssessmentStatus(options);
if (assessmentStatus?.length) {
Expand Down
2 changes: 2 additions & 0 deletions src/pages/assessments/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ const Assessments = () => {
try {
const options = {
userId: cohortMembers?.map((user: any) => user.userId),
courseId:assessmentList, // temporary added here assessmentList(contentId)... if assessment is done then need to pass actual course id and unit id here
unitId:assessmentList,
contentId: assessmentList,
batchId: classId,
};
Expand Down
6 changes: 6 additions & 0 deletions src/pages/assessments/user/[userId]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,12 @@ function AssessmentsDetails() {
try {
const options = {
userId: [params.userId],
courseId:assessmentList.map(
(item: any) => item.identifier
) as string[], // temporary added here assessmentList(contentId)... if assessment is done then need to pass actual course id and unit id here
unitId:assessmentList.map(
(item: any) => item.identifier
) as string[],
contentId: assessmentList.map(
(item: any) => item.identifier
) as string[],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ function SubjectDetail() {
try {
const body = {
userId: params.userId,
courseId:params.subjectId,//temporary added content id here for both courseId and unitId
unitId:params.subjectId,
contentId: params.subjectId,
batchId: centerId as string,
};
Expand Down
5 changes: 5 additions & 0 deletions src/utils/Interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -636,8 +636,11 @@ export interface BottomDrawerProps {

export interface IAssessmentStatusOptions {
userId: string[];
courseId?:string[];
unitId?:string[];
contentId: string[];
batchId: string;

}

export interface GetTargetedSolutionsParams {
Expand All @@ -663,6 +666,8 @@ export interface EditEvent {

export interface ISearchAssessment {
userId: string;
courseId?:string;
unitId?:string;
contentId: string;
batchId: string;
}
Expand Down

0 comments on commit 7e4b47d

Please sign in to comment.