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] issue47: 태그 목록 검색 및 조회 #57

Merged
merged 4 commits into from
Jul 14, 2022

Conversation

verus-j
Copy link
Collaborator

@verus-j verus-j commented Jul 13, 2022

요약

태그 목록을 조회하고 검색한다.

세부사항

  • 태그 조회 시 tagname이 없거나 공백인 경우 전체 조회
  • tagname을 포함하는 스터디 목록을 조회
  • 태그 검색시 대소문자 구분 없이 태그 검색 결과를 반환

close #47

@verus-j verus-j requested review from sc0116 and jaejae-yoo July 13, 2022 07:17
@verus-j verus-j added 🚀 feature New feature or request 🖥 backend New backend feature labels Jul 13, 2022
@verus-j verus-j closed this Jul 13, 2022
@verus-j verus-j reopened this Jul 13, 2022
Copy link
Collaborator

@jaejae-yoo jaejae-yoo left a comment

Choose a reason for hiding this comment

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

짱짱 👍🪐

  • 짱구, 린론-

.collect(Collectors.toList());
return new TagsResponse(tagsResponse);
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

EOF! 😱

.then().log().all()
.statusCode(HttpStatus.OK.value())
.body("tags", hasSize(5))
.body("tags.id", not(empty()))
Copy link
Collaborator

Choose a reason for hiding this comment

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

해당 내용으로 반영한 거 좋네요 ~ 👍

@BeforeEach
void setUp() {
tagRepository = Mockito.mock(TagRepository.class);
when(tagRepository.findAllByNameContainingIgnoreCase("")).thenReturn(List.of(
Copy link
Collaborator

Choose a reason for hiding this comment

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

한 줄에 점 하나로 하면 보기 편할 것 같아요!

@tco0427 tco0427 merged commit 6d576df into woowacourse-teams:develop Jul 14, 2022
@verus-j verus-j deleted the feat/47-get-tags branch July 14, 2022 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🖥 backend New backend feature 🚀 feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants