Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(be): apply sorting on admin get-contest-submissions api #2183

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Jaehyeon1020
Copy link
Member

Description

Closes TAS-1009

Contest Overall 페이지의 "Participants" 탭의 테이블에서 사용하는 admin Get Contest Submissions API에 정렬 기능을 추가합니다.
기존에는 API에서 정렬 기능을 구현하지 않아, 프론트단에서 자체적으로 구현해 사용중이었습니다. 그러나 데이터가 많아지면서 한번에 모든 데이터를 fetching하기 어려운 문제가 발생해 정렬된 데이터에 pagination이 가능하도록 하기 위해 해당 기능을 구현합니다.

정렬 기준은 다음과 같습니다.

  • studentId-asc: 학번 오름차순 정렬
  • studentId-desc: 학번 내림차순 정렬
  • realName-asc: 학생이름 오름차순 정렬
  • realName-desc: 학생이름 내림차순 정렬
  • username-asc: username 오름차순 정렬
  • username-desc: username 내림차순 정렬

Additional context


Before submitting the PR, please make sure you do the following

Copy link

vercel bot commented Nov 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
codedang ✅ Ready (Inspect) Visit Preview Nov 6, 2024 3:50am

@coolify-skkuding
Copy link

coolify-skkuding bot commented Nov 6, 2024

The preview deployment is ready. 🟢

Open Preview | Open Build Logs

Last updated at: 2024-11-21 02:56:40 CET

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant