Skip to content

[smartthings] 기기 유형별 완료 예정 시간 조회 수정#96

Merged
hej090224 merged 1 commit into
developfrom
fix/smartthings-completion-time
Jul 14, 2026
Merged

[smartthings] 기기 유형별 완료 예정 시간 조회 수정#96
hej090224 merged 1 commit into
developfrom
fix/smartthings-completion-time

Conversation

@hej090224

Copy link
Copy Markdown
Member

개요

SmartThings 기기 상태 응답에서 세탁기/건조기 완료 예정 시간이 함께 내려오는 경우, 기기 유형에 맞는 완료 예정 시간을 조회하도록 수정했습니다.

본문

기존에는 SmartThingsDeviceStatusResDto.getCompletionTime()이 세탁기 완료 예정 시간을 우선 반환해, 건조기 상태 조회 또는 예약 생명주기 처리에서 세탁기 완료 예정 시간
이 사용될 수 있었습니다.

이를 해결하기 위해 SmartThingsDeviceStatusResDto.getCompletionTime(boolean isWasher)를 추가하고, QueryAllMachinesStatusServiceImpl,
ReservationLifecycleProcessor, OverdueReservationProcessor에서 machine.isWasher() 기준으로 완료 예정 시간을 선택하도록 변경했습니다.

또한 DateTimeUtil에 기기 유형 기반 완료 예정 시간 조회 오버로드를 추가하고, 세탁기/건조기 완료 예정 시간이 함께 존재할 때 건조기 예약과 상태 조회가 건조기 완료 예정
시간을 사용하는 테스트를 추가했습니다.

검증:

  • ./gradlew spotlessApply
  • ./gradlew test --tests "team.washer.server.v2.domain.machine.service.QueryAllMachinesStatusServiceTest" --tests "team.washer.server.v2.domain.reservation.service.ReservationLifecycleProcessorTest" --tests "team.washer.server.v2.domain.reservation.service.OverdueReservationProcessorTest"
  • ./gradlew test

@hej090224
hej090224 requested a review from d1ng1724 July 14, 2026 05:02
@hej090224 hej090224 self-assigned this Jul 14, 2026
@hej090224 hej090224 added the 버그 애플리케이션의 버그에 대응합니다. label Jul 14, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request updates the completion time retrieval logic to distinguish between washers and dryers by passing the machine type to the device status DTO. This change is integrated across status queries, overdue processing, and reservation lifecycle processors, alongside new unit tests. The review feedback highlights a misplaced Javadoc comment in the DTO, suggests using the new DTO method directly instead of a private helper in the lifecycle processor, and recommends adding defensive null checks for the expected completion time in both the lifecycle and overdue processors to prevent potential NullPointerExceptions.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@hej090224
hej090224 merged commit 47e9596 into develop Jul 14, 2026
1 check passed
@hej090224
hej090224 deleted the fix/smartthings-completion-time branch July 14, 2026 05:37
@hej090224 hej090224 mentioned this pull request Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

버그 애플리케이션의 버그에 대응합니다.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants