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/#499 알림메시지 변경하기 #511

Closed
wants to merge 41 commits into from

Conversation

BackFoxx
Copy link
Collaborator

🔥 연관 이슈

📝 작업 요약

원하는 알림 항목의 알림 메시지를 수정할 수 있는 API를 제공한다.

🔎 작업 상세 설명

  • PUT 메서드로 /admin/notification/message 를 호출하여 알림 메시지를 수정할 수 있습니다.
  • 권한 설정이 되어있지 않으므로 uri만 알고 있다면 누구나 호출할 수 있습니다.
  • 알림 메시지에 %title, %comment, %count를 포함하는 경우 각각 포스트 제목, 댓글 내용, 따봉 개수로 치환해 표시합니다.
    예) [%title] 글에 댓글이 달렸습니다. -> [아 소고기 먹고싶다~~~] 글에 댓글이 달렸습니다.

🌟 리뷰 요구 사항

예상치 못한 버그가 있을 수 있읍니다.

This2sho and others added 30 commits September 13, 2023 05:30
# Conflicts:
#	backend/src/main/java/edonymyeon/backend/member/application/MemberService.java
#	backend/src/main/java/edonymyeon/backend/member/ui/MemberController.java
#	backend/src/test/java/edonymyeon/backend/member/docs/MemberControllerDocsTest.java
# Conflicts:
#	backend/src/main/java/edonymyeon/backend/member/application/MemberService.java
#	backend/src/main/java/edonymyeon/backend/member/ui/MemberController.java
#	backend/src/test/java/edonymyeon/backend/member/docs/MemberControllerDocsTest.java
# Conflicts:
#	backend/src/main/java/edonymyeon/backend/auth/application/AuthService.java
…_회원_정보_수정

# Conflicts:
#	backend/src/main/java/edonymyeon/backend/member/ui/MemberController.java
#	backend/src/test/java/edonymyeon/backend/auth/application/AuthServiceTest.java
#	backend/src/test/java/edonymyeon/backend/member/docs/MemberControllerDocsTest.java
# Conflicts:
#	backend/src/docs/asciidoc/common/mypage-api.adoc
#	backend/src/main/java/edonymyeon/backend/image/domain/Domain.java
#	backend/src/main/java/edonymyeon/backend/member/application/MemberService.java
#	backend/src/main/java/edonymyeon/backend/member/domain/Member.java
#	backend/src/main/java/edonymyeon/backend/member/ui/MemberController.java
#	backend/src/main/java/edonymyeon/backend/post/application/PostReadService.java
#	backend/src/test/java/edonymyeon/backend/member/application/MemberServiceTest.java
#	backend/src/test/java/edonymyeon/backend/member/docs/MemberControllerDocsTest.java
#	backend/src/test/java/edonymyeon/backend/member/domain/MemberTest.java
#	backend/src/test/java/edonymyeon/backend/member/integration/MemberIntegrationTest.java
@BackFoxx BackFoxx added ❤️ Backend for BackEnd ⚡️ feature New feature or request labels Oct 19, 2023
@BackFoxx BackFoxx added this to the 6차 데모데이 milestone Oct 19, 2023
@BackFoxx BackFoxx self-assigned this Oct 19, 2023
@github-actions
Copy link

github-actions bot commented Oct 19, 2023

Unit Test Results

  69 files  +  2    69 suites  +2   34s ⏱️ +4s
367 tests +10  361 ✔️ +4  0 💤 ±0  6 +6 
370 runs  +10  364 ✔️ +4  0 💤 ±0  6 +6 

For more details on these failures, see this check.

Results for commit 9748a1f. ± Comparison against base commit d176d38.

♻️ This comment has been updated with latest results.

Copy link
Collaborator

@jyeost jyeost left a comment

Choose a reason for hiding this comment

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

안녕하세여 여우!!!!
잘 해주셨군여...
제가 시켜놓고 리뷰 너무 늦게봐서 죗성합니다....

pr이 알림 메세지를 추가 & 어드민으로 알림 메세지를 변경
이 두가지 기능을 담고 있으니 읽기 힘들더라고여...
나눠서 줬으면 조앗을거 같은데,,,,, ㅜㅜ

그리고... 제목 길이나 댓글 길이가 길면 ... 으로 축약해달라고 부탁드렸는데
어디에 구현 되어 있는지 못찾았어여...ㅜㅜ 알려주심 감사홥돠


@ApiVersion(from = "1.0")
@PutMapping("/admin/notification/content")
public ResponseEntity<Void> updateNotificationMessage(@RequestBody NotificationContentRequest notificationContent) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

나중에 어드민이 커지면 그쪽 컨트롤러로 옮겨가는 게 성격이 맞아보며유

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

맞아요 어드민 권한도 만들어야 하고.. 회원 권한을 관리하는 방법은 회의를 통해 정해야겠는데욥

import lombok.NoArgsConstructor;

@NoArgsConstructor
@Getter
@Entity
Copy link
Collaborator

Choose a reason for hiding this comment

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

getter를 직접 만들어 준 이유가 있나요??

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

조만간 롬복 파기작업을 할거에요 .. 사용하지 않는 게터가 도메인 객체에 너무 많은 건 좋지 못한 것 같소

Copy link
Collaborator

@hectick hectick left a comment

Choose a reason for hiding this comment

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

🦊👏
좀만 더 고생해주십시옹!!

Comment on lines +34 to +36
@ApiVersion(from = "1.0")
@PutMapping("/admin/notification/content")
public ResponseEntity<Void> updateNotificationMessage(@RequestBody NotificationContentRequest notificationContent) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

admin용에는 api 버전을 어떻게 붙여줘야할까요??
무조건 버전 1부터 시작되도록?
api 헤더가 없어도 무방하긴 한데..

Copy link
Collaborator

Choose a reason for hiding this comment

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

아예 어드민을 다른 모듈로 빼버리는건 어떤가여?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

요건 혼자서 잘 못하겠어요 🥹 화요일에 같이 해주라

Copy link
Collaborator

@This2sho This2sho left a comment

Choose a reason for hiding this comment

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

고생이 많네요 여우상
이리내랑 케로가 열심히 남겨줘서 궁금한 부분만 커맨트 남겼습니다!
저는 어프로브하고 푸시하면 확인할게염👍

Comment on lines +34 to +36
@ApiVersion(from = "1.0")
@PutMapping("/admin/notification/content")
public ResponseEntity<Void> updateNotificationMessage(@RequestBody NotificationContentRequest notificationContent) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

아예 어드민을 다른 모듈로 빼버리는건 어떤가여?

@BackFoxx BackFoxx closed this Nov 3, 2023
@BackFoxx BackFoxx deleted the feat/#499_알림메시지_변경하기 branch November 3, 2023 13:49
@BackFoxx BackFoxx restored the feat/#499_알림메시지_변경하기 branch November 4, 2023 04:42
@BackFoxx BackFoxx reopened this Nov 4, 2023
@BackFoxx BackFoxx closed this Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❤️ Backend for BackEnd ⚡️ feature New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

알림 메시지를 설정할 수 있는 API 만들기
4 participants