Skip to content

Commit

Permalink
has bug in tag selection, waiting for backend update. Added tests, ch…
Browse files Browse the repository at this point in the history
…anged schemas. Fixed more frontend test fails.
  • Loading branch information
NazireAta committed Dec 13, 2024
1 parent 075baa5 commit 8bb402a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 5 additions & 3 deletions frontend/src/services/api/programmingForumSchemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export type NewQuestion = {
export type UpdateQuestion = {
title?: string;
content?: string;
tags?: string[];
tags?: number[];
};

/**
Expand All @@ -143,6 +143,7 @@ export type QuestionDetails = {
tags: TagSummary[];
likeCount: number;
dislikeCount: number;
difficulty: DifficultyLevel;
commentCount: number;
viewCount?: number;
bookmarked: boolean;
Expand Down Expand Up @@ -171,8 +172,9 @@ export type QuestionSummary = {
createdAt: string;
difficulty: DifficultyLevel;
tags: TagSummary[];
likeCount: number;
commentCount: number;
upvoteCount: number;
downvoteCount: number;
answerCount: number;
viewCount?: number;
};

Expand Down
5 changes: 4 additions & 1 deletion swagger/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1393,7 +1393,7 @@ components:
tags:
type: array
items:
type: string
type: number

QuestionDetails:
type: object
Expand All @@ -1407,6 +1407,7 @@ components:
- tags
- likeCount
- dislikeCount
- difficulty
- commentCount
- selfQuestion
- difficulty
Expand Down Expand Up @@ -1440,6 +1441,8 @@ components:
type: integer
dislikeCount:
type: integer
difficulty:
$ref: '#/components/schemas/DifficultyLevel'
commentCount:
type: integer
viewCount:
Expand Down

0 comments on commit 8bb402a

Please sign in to comment.