Skip to content

CLAP-92 기간별 작업 처리량 조회#50

Merged
hyoseong-Choi merged 6 commits intoCLAP-68from
CLAP-92
Jan 22, 2025
Merged

CLAP-92 기간별 작업 처리량 조회#50
hyoseong-Choi merged 6 commits intoCLAP-68from
CLAP-92

Conversation

@hyoseong-Choi
Copy link
Collaborator

@hyoseong-Choi hyoseong-Choi commented Jan 21, 2025

📄 요약(Summary)

기간별 작업 처리량 조회 API 구현

✍🏼 상세(More)

PR Desciption

변경 사항 설명

  • StatisticsFindController에 사용될 PeriodTaskProcessUsecase와 Service 구현
  • ElasticTaskAdapter에 기간별 작업 처리량 조회 쿼리 및 직렬화 구현

Requirements for Reviewer

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요

PR Log

PR 작업하면서 고민했던 내용, 해결한 내용, 고민 중인 내용 등

새롭게 배운 것

고민 중인 사항

첨부 자료

✅ 체크리스트(Checklist)

  • PR 양식에 맞게 작성했습니다
  • 모든 테스트가 통과했습니다
  • 프로그램이 정상적으로 작동합니다
  • 적절한 PR 라벨을 설정했습니다
  • 불필요한 코드를 제거했습니다

🚪 이슈 번호(Issue numbers)

Closes #46

@hyoseong-Choi hyoseong-Choi self-assigned this Jan 21, 2025
@hyoseong-Choi hyoseong-Choi added ✨ feature 구현·개선 사항에 관련된 내용입니다 HIGH 우선순위 상 and removed HIGH 우선순위 상 labels Jan 21, 2025
Comment on lines 33 to 39
this.taskCode = taskEntity.getTaskCode();
this.mainCategory = taskEntity.getCategory().getMainCategory().getName();
this.subCategory = taskEntity.getCategory().getName();
this.status = taskEntity.getStatus().getName();
this.status = taskEntity.getStatus().getStatusName().name().toLowerCase();
this.processor = taskEntity.getProcessor().getNickname();
this.createdAt = taskEntity.getCreatedAt().toLocalDate();
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

현재 status 엔티티는 삭제되었고 taskEntity.getTaskStatus() 를 통해 상태를 가져올 수 있을 것 같습니다.
develop 브랜치 rebase 해주신 후 수정 부탁드리겠습니다~

Comment on lines +26 to +29
@GetMapping("/task/statistics/task-processed-by-period")
public Map<String, Long> aggregatePeriodTaskProcess(@RequestParam String period) {
return periodTaskProcessUsecase.periodTaskProcessAggregate(period);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

응답시 따로 상태코드는 안보내는 것으로 보이는데 Http 상태 코드가 리턴되어야 하지 않을까 싶습네요.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

응답시 따로 상태코드는 안보내는 것으로 보이는데 Http 상태 코드가 리턴되어야 하지 않을까 싶습네요.

저희 공통 응답 양식 클래스 올라오면 한번에 바꾸려고 했는데 혹시 그거 사용 안하기로 했었나요?

Copy link
Collaborator

Choose a reason for hiding this comment

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

네넵 성공의 경우에는 http 상태코드와 응답결과만 보내주면 될 것 같습니다.

{
   "결과":"result"
}

오류처리에 대한 부분만 처리하기로 했습니다.

hyoseong-Choi and others added 3 commits January 22, 2025 00:29
CLAP-95 2차 카테고리별 작업 요청량 조회 API 조회
CLAP-94 1차 카테고리별 작업 요청량 조회
@hyoseong-Choi hyoseong-Choi merged commit df80537 into CLAP-68 Jan 22, 2025
@hyoseong-Choi hyoseong-Choi deleted the CLAP-92 branch January 22, 2025 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ feature 구현·개선 사항에 관련된 내용입니다

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants