Skip to content

Commit

Permalink
Merge pull request #103 from DOEKYONG/dev-be/feature/#102
Browse files Browse the repository at this point in the history
[be]  마일스톤 null 처리 수정 , 이슈 목록조회 상태 디폴트 값 open 으로 지정
  • Loading branch information
DOEKYONG authored Aug 17, 2023
2 parents 1d6ffbb + f1b1e04 commit 4dbe4d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class IssueController {
private final IssueService issueService;

@GetMapping("/issues")
public ApiResponse<IssueFilteredResponseDto> getIssues(@RequestParam String status,
public ApiResponse<IssueFilteredResponseDto> getIssues(@RequestParam(defaultValue = "open") String status,
@RequestParam(required = false) List<Long> labels,
@RequestParam(required = false) Long milestone,
@RequestParam(required = false) Long writer,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ public IssueFilteredResponseDto findByFilter(IssueSearch issueSearch) {

@Transactional
public Long save(IssueWriteRequestDto request, Long id) {
milestoneService.isExistMilestone(request.getMilestoneId());
if (request.getMilestoneId() != null) {
milestoneService.isExistMilestone(request.getMilestoneId());
}
List<Long> labels = request.getLabels();
List<Long> assignees = request.getAssignees();
Issue issue = IssueWriteRequestDto.toEntity(request, id);
Expand Down

0 comments on commit 4dbe4d3

Please sign in to comment.