Refactor: 요청글 기본 상태 변경 #174
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.




close #173
☑️ 완료 태스크
status파라미터@NotBlank제약 삭제status값이 null이라면, 모든 상태의 요청글을 가져오도록 변경status필드도 추가로 전달🔎 PR 내용
원래 PR 리뷰 요청글은
open혹은closed상태로 나뉘어서전체 목록 조회 시 상태 파라미터 값을 전달하도록 되어있었는데,
@Yeonseo-Jo 연서랑 의논하면서 이와 관련한 변경 사항이 나왔습니다.
open과closed를 모두 보여주는 게 있으면 좋겠다.PR 리뷰 요청탭에서는 모두 섞은 걸 보여주자.1️⃣
status값 null일 경우, 모든 상태 가져오기기존에 요청글 목록 조회 시, 쿼리 파라미터로 status값을
open이나closed둘 중 하나 넘겨주는 형식이었는데,파라미터에
status값이 존재하지 않으면open+closed를 모두 보여주도록 변경했습니다.3가지 경우 스크린샷은 하단에 배치해놨습니다.
2️⃣ 모든 상태값을 받았을 때, 상태 구별이 가능하도록
status추가 전달기존엔 특정
status를 조회 API 호출 시에 쿼리 파라미터로 넘겨주었기에 따로 반환할 필요가 없었으나,모든 상태의 요청글을 조회할 시 각 요청글의 상태를 구별할 수 있도록 추가로 반환하도록 했습니다.
변경 사항은
PR 리뷰 요청글 전체 조회와내 리뷰 요청글 전체 조회에 모두 반영됩니다.📷 스크린샷
1️⃣ 상태값에 아무 필터링 없을 때
2️⃣ OPEN 상태 요청글 전체 조회
3️⃣ CLOSED 상태 요청글 전체 조회