-
Notifications
You must be signed in to change notification settings - Fork 1
[BE-FEAT] 롱 폴링 응답 데이터 추가 #408
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
Changes from all commits
b505e43
7f3bae2
f349cd5
89874f0
e680070
04ade29
d8d4b14
11806bf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,26 @@ | ||
| package endolphin.backend.domain.personal_event.dto; | ||
|
|
||
| import endolphin.backend.domain.personal_event.entity.PersonalEvent; | ||
| import endolphin.backend.global.google.dto.GoogleEvent; | ||
| import endolphin.backend.global.google.enums.GoogleEventStatus; | ||
| import java.time.LocalDateTime; | ||
|
|
||
| public record SyncPersonalEvent( | ||
| String googleEventId, | ||
| Long id, | ||
| Boolean isAdjustable, | ||
| String calendarId, | ||
| String title, | ||
| LocalDateTime startDateTime, | ||
| LocalDateTime endDateTime, | ||
| String status | ||
| Status status | ||
| ) { | ||
| public static SyncPersonalEvent from(GoogleEvent event) { | ||
| return new SyncPersonalEvent(event.eventId(), event.summary(), event.startDateTime(), | ||
| event.endDateTime(), event.status().getValue()); | ||
|
|
||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just ask; status를 enum 말고 String으로 했던 이유가 있었던가요?
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. db를 거쳐도 googleEventId 응답에 포함해야 하나요?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 프론트와 협의한 결과, googleEventId를 응답에서 삭제하기로 결정하였습니다.! |
||
| public static SyncPersonalEvent from(PersonalEvent event, Status status) { | ||
| return new SyncPersonalEvent(event.getId(), event.getIsAdjustable(), event.getCalendarId(), | ||
| event.getTitle(), event.getStartTime(), event.getEndTime(), status); | ||
| } | ||
|
|
||
| public enum Status { | ||
| CREATED, UPDATED, DELETED | ||
| } | ||
| } | ||
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.
💡 Verification agent
🧩 Analysis chain
Appropriate removal of Google-specific field.
Removing the
googleEventIdfield from the public API response is a good architectural decision that reduces coupling with Google Calendar implementation details.Consider if this removal constitutes a breaking change for existing API consumers. Please verify if there are any client applications that depend on this field.
🏁 Script executed:
Length of output: 454
I’m not finding any occurrences because the previous ripgrep commands were overly restrictive. Let’s search the entire repo for both camelCase and snake_case variants:
🏁 Script executed:
Length of output: 6031
Breaking Change: Update Front-end Model After Removing
googleEventIdThe API DTO no longer includes
googleEventId, but your front-end schema still expects it—this will break existing clients. Please remove or adapt all references togoogleEventIdin consumer code:• frontend/src/features/my-calendar/model/index.ts
– Remove the
googleEventId: z.string(),field (line 10)– Remove
googleEventId: truefrom the selected properties object (line 16)After updating the front-end, verify end-to-end functionality (e.g., calendar listing, event details) to ensure no runtime errors occur when the field is absent.
🤖 Prompt for AI Agents