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

refactor(S1): depth 기준 페이지 목록 정렬 #45

Closed
dusunax opened this issue Jul 28, 2024 · 0 comments · Fixed by #81
Closed

refactor(S1): depth 기준 페이지 목록 정렬 #45

dusunax opened this issue Jul 28, 2024 · 0 comments · Fixed by #81
Assignees
Labels

Comments

@dusunax
Copy link
Contributor

dusunax commented Jul 28, 2024

사전 조건

  • 페이지의 ID는 incremental index이다.
  • 페이지 목록 출력 기준은 depth 기준이다.
  • 기본적으로 정렬되어 반환될 예정이지만, 아닌 경우를 고려하여 정렬 기능을 추가할 것!

예시

  • 게임에서 depth가 3인 페이지 id 20을 작성 후, depth 1의 새로운 페이지를 만든다면 페이지 id는 이전 페이지보다 크다.(page DB에서 증가하는 unique 값이기 때문에, 게임 내에서 순차적으로 증가하지 않음)
  • 페이지 정렬: (1) depth 기준으로 정렬 (2) depth가 같다면 id 기준 정렬
@dusunax dusunax added the feature new feature✨ label Jul 28, 2024
@dusunax dusunax self-assigned this Jul 28, 2024
@dusunax dusunax linked a pull request Aug 13, 2024 that will close this issue
@dusunax dusunax changed the title feat(S1): depth 기준 페이지 목록 정렬 refactor(S1): depth 기준 페이지 목록 정렬 Aug 13, 2024
@dusunax dusunax added refactor and removed feature new feature✨ labels Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant