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

전체 키워드 조회 시 학습 진도를 포함한다 #1510

Merged
merged 6 commits into from
Sep 11, 2023

Conversation

nuyh99
Copy link
Contributor

@nuyh99 nuyh99 commented Aug 17, 2023

#️⃣연관된 이슈

📝작업 내용

  • RoadmapService의 전체 키워드 조회 시 현재 로그인 유저의 진도율을 표시한다

💬리뷰 요구사항(선택)

  • 기존의 KeywordController, KeywordService는 어드민에서 쓰는 것 같은데 얘네는 반영하지 않았습니다.
  • RoadmapController와 RoadmapService만 진행했습니다.

@nuyh99 nuyh99 added BE 로드맵 로드맵 스쿼드 관련 이슈 labels Aug 17, 2023
@nuyh99 nuyh99 added this to the 2023 레벨3 milestone Aug 17, 2023
@nuyh99 nuyh99 self-assigned this Aug 17, 2023
Copy link
Contributor

@java-saeng java-saeng left a comment

Choose a reason for hiding this comment

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

후.. 도메인이 복잡하니 코드도 복잡해질 수 밖에 없는 것 같네요
그래도 이해하기 쉬웠습니다

고생하셨습니다

Copy link
Contributor

@BGuga BGuga left a comment

Choose a reason for hiding this comment

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

간단한 코멘트 남겼습니다!

Quiz quiz = new Quiz(1L, keyword, "자바 언어의 특징은?");
Member member = new Member(11L, "username", "nickname", Role.CREW, 101L, "https://");
EssayAnswer essayAnswer = new EssayAnswer(quiz, "객체 지향 언어", member);
final EssayAnswer essayAnswer = createEssayAnswer(createQuizWithPK(1L));
Copy link
Contributor

Choose a reason for hiding this comment

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

팀 프로젝트에서는 Fixture 를 만드는 Class 를 분리했었는데 이 방법을 도입하기엔 너무 많은 강을 건너온 것 같네요... 연어는 도메인 객체 생성 중복 로직을 보통 어떻게 처리하시나요??

@Query("SELECT e FROM EssayAnswer e " +
"LEFT JOIN FETCH e.quiz q " +
"WHERE e.member.id = :memberId")
Set<EssayAnswer> findAllByMemberId(@Param("memberId") Long memberId);
Copy link
Contributor

Choose a reason for hiding this comment

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

@param 을 쓰지 않아도 변수명을 기반으로 :memberId 를 추론해주는 것으로 아닌데 명시적으로 표기하는 것을 선호하시나요??

Copy link
Contributor Author

Choose a reason for hiding this comment

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

컴파일러에게 -parameters 옵션을 전달해주어야 내부적으로 바인딩을 합니다.
그래서 저는 컴파일 옵션의 컨디션과 상관 없이 동작하는 것을 선호합니다!

@nuyh99 nuyh99 force-pushed the feat/1473-keyword-with-progress branch from a685867 to 1fdf9df Compare September 11, 2023 06:15
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

97.5% 97.5% Coverage
0.0% 0.0% Duplication

warning The version of Java (11.0.20) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

Copy link
Contributor

@amaran-th amaran-th left a comment

Choose a reason for hiding this comment

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

수고하셨습니다~!

@nuyh99 nuyh99 merged commit 680f4e1 into roadmap-develop Sep 11, 2023
@nuyh99 nuyh99 deleted the feat/1473-keyword-with-progress branch September 11, 2023 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BE 로드맵 로드맵 스쿼드 관련 이슈
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants