-
Notifications
You must be signed in to change notification settings - Fork 1
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
implement admin push notification controller #420
base: main
Are you sure you want to change the base?
Conversation
🔥🔥🔥 Backend CI Failed. github action link 🔥🔥🔥 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
빌드가 깨졌어요 :회초리:
) | ||
} | ||
|
||
transactionManager.doAfterCommit { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
굳이 doAfterCommit에 넣을 필요가 있나요? 걍 트랜잭션 밖에서 해도 될 것 같아서용
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ㅇㅎ 저는 그냥 두개가 같다고 생각했는데 수환님은 doAfterCommit이 PersistentContext에 접근 가능한 것을 염두하고 "트랜잭션 밖" 이라고 말씀하신거죠?
schema: | ||
type: object | ||
properties: | ||
userIds: | ||
type: array | ||
items: | ||
type: string | ||
notification: | ||
type: object | ||
properties: | ||
title: | ||
type: string | ||
body: | ||
type: string | ||
deepLink: | ||
type: string | ||
required: | ||
- body | ||
required: | ||
- userIds | ||
- notification |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 약간 컨벤션이 없긴 한데, request dto를 따로 만드는 게 좋은 것 같습니다. 이렇게 하면 openapi generator가 지맘대로 dto class를 생성하는데, 이 dto class 이름이 openapi generator 버전 따라서 조금씩 달라지더라구요.
Checklist
충분한 양의 자동화 테스트를 작성했는가?
아직 테스트는 작성안하였습니다.
너무 오랜만에 비즈니스 로직 짜는거라 감을 잃었어요... 회초리 부탁드립ㄴ디ㅏ.
admin 을 통해 호출할거지만 한동안 admin 페이지가 만들어지기 전까지는 서버내에서 호출할거라 인증을 붙여야 하는지 아직 모르겠네요
애초에 이 controller가 user domain에 속하는지 좀 아리송합니다.