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

#56 Implement Subscribe Priority #57

Merged
merged 9 commits into from
Mar 26, 2024
Merged

#56 Implement Subscribe Priority #57

merged 9 commits into from
Mar 26, 2024

Conversation

Train0303
Copy link
Contributor

close #56

다음과 같은 구현사항이 있습니다.

  1. 구독 엔티티에 Priority 필드를 추가했습니다.
  2. 구독, 컨텐츠, 스크랩 목록에 구독의 Priority를 기준으로 정렬하는 로직을 추가했습니다.
  3. 구독에 대해서 Priority를 설정하는 API를 추가했습니다.

- 정렬에 필요한 우선순위 속성을 추가했습니다.
- 데이터베이스에 우선순위 값이 Null이라면 MaxValue로 가져올 수 있도록 Converter를 추가했습니다.
- 우선순위로 정렬된 Subscribe데이터를 받아올 수 있도록 변경했습니다.
- 구독의 우선순위를 변경할 수 있는 API를 추가했습니다.
- Builder패턴으로 만든 객체의 경우 Priority값을 넣지 않았을 때 Null이 저장되는 문제를 해결했습니다.
- 우선순위를 바꾸는 서비스 코드에 대한 단위 테스트를 구현했습니다.
- 기존의 구독 목록 출력에 정렬이 추가되어 통합 테스트및 단위 테스트를 수정했습니다.
- API /api/v0/subscribe/change/priority에 대한 통합테스트 코드를 작성했습니다.
@Train0303 Train0303 self-assigned this Mar 25, 2024
- Batch프로그램에 Null Pointer Exception문제가 발생해 이를 수정했습니다.
@Train0303 Train0303 merged commit 16c4b27 into main Mar 26, 2024
1 check passed
@Train0303 Train0303 deleted the feature/#56-setProritoy branch March 26, 2024 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

사용자가 구독한 공지사항의 순서를 바꿀 수 있는 기능을 지원해야합니다.
1 participant