Skip to content
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

[BE-100] 칸반보드 응답 INVISIBLE 타입 카드 포함 #268

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

rlajm1203
Copy link
Collaborator

개요

close #267

작업사항

  • 칸반보드 페이지에서 board들을 조회하는 API 응답에 INVISIBLE 타입의 카드가 포함되도록 수정합니다.

변경로직

boards = boards.stream()
                .filter(
                        board ->{
                            if(board.getCardType().equals(CardType.INVISIBLE)) {
                                return true;
                            }
                            return year == null || Optional.ofNullable(board.getCardId())
                                    .map(answerIdByCardIdMap::get)
                                    .map(yearByAnswerIdMap::get)
                                    .map(y -> y.equals(year))
                                    .orElse(false);
                        })
                .toList();

reference

@rlajm1203 rlajm1203 added the refactor♻️ This will not be worked on label Sep 19, 2024
@rlajm1203 rlajm1203 self-assigned this Sep 19, 2024
@rlajm1203 rlajm1203 merged commit 5913fca into develop Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor♻️ This will not be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant