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

[Feature] 카테고리 수정 API 두개로 분리 #116

Merged
merged 5 commits into from
Jan 16, 2024
Merged

Conversation

mmihye
Copy link
Member

@mmihye mmihye commented Jan 16, 2024

🚩 관련 이슈

📋 구현 기능 명세

  • 우선순위 편집 api
  • 제목 편집 api

📌 PR Point

  • 무슨 이유로 어떻게 코드를 변경했는지
    기존 로직중 우선순위를 정할때 유저별로 우선순위를 반영하는게 아니라 모든 카테고리에서 우선순위를 정했었는데
    이러면 클라에서 변경 우선순위를 보내줬을때 이상하게 우선순위가 변경되어서 카테고리 생성시 우선순위를 현재유저의 우선순위 max +1 값으로 변경했습니다.

  • 어떤 부분에 리뷰어가 집중해야 하는지

  • 개발하면서 어떤 점이 궁금했는지

📸 결과물 스크린샷

스크린샷 2024-01-16 오후 11 37 19 스크린샷 2024-01-16 오후 11 37 59

🛠️ 테스트

  • 테스트

🚀 API Endpoint

  • baseurl/category/title
  • baseurl/category/priority

@mmihye mmihye added 🐞 fix Something isn't working ⚒️ Feat labels Jan 16, 2024
@mmihye mmihye requested a review from sss4920 January 16, 2024 14:40
@mmihye mmihye self-assigned this Jan 16, 2024
@mmihye mmihye changed the base branch from develop to test January 16, 2024 14:40
@mmihye mmihye changed the title [Feature] [Feature] 카테고리 수정 API 두개로 분리 Jan 16, 2024
Copy link
Contributor

@sss4920 sss4920 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니당!!

int currentPriority = category.getPriority();
category.updateCategoryPriority(changeCateoryPriorityDto.newPriority());

if(currentPriority < newPriority)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

얘도 나중에 유지보수하기 좋게 주석으로 메모 넣어주면 좋을 것 같아요!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sss4920 sss4920 merged commit 49ef14d into test Jan 16, 2024
1 check passed
@mmihye mmihye deleted the feature/#113 branch January 19, 2024 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚒️ Feat 🐞 fix Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat] 카테고리 수정 두개의 api로 수정
2 participants