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

[DEV-8] Apply Conventions #245

Merged
merged 5 commits into from
Mar 19, 2024
Merged

Conversation

5uhwann
Copy link
Member

@5uhwann 5uhwann commented Mar 15, 2024

Issue

Close #244

✅ 작업 내용

  • 코드 컨벤션 적용
    • 메서드 네이밍 수정
    • request/response dto 수정

🤔 고민 했던 부분

  • CalculateGraduationUseCase의 Response는 이후 api를 쪼갤 가능성이 높기 때문에 현재로선 수정하지 않았습니다!

🔊 도움이 필요한 부분!!

@5uhwann 5uhwann added ♻️ refactor 기본의 로직 변경 없이 코드 개선 D-2 labels Mar 15, 2024
@5uhwann 5uhwann self-assigned this Mar 15, 2024
Copy link

Apply Conventions

Copy link

codecov bot commented Mar 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.22%. Comparing base (bf6e179) to head (ee80c8e).

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##             develop     #245      +/-   ##
=============================================
- Coverage      85.00%   84.22%   -0.78%     
+ Complexity       499      479      -20     
=============================================
  Files            141      133       -8     
  Lines           1960     1883      -77     
  Branches          64       64              
=============================================
- Hits            1666     1586      -80     
  Misses           261      261              
- Partials          33       36       +3     
Files Coverage Δ
...jigraduatebe/auth/api/signin/SignInController.java 50.00% <100.00%> (ø)
...ebe/auth/api/signin/dto/request/SignInRequest.java 100.00% <ø> (ø)
...ngjigraduatebe/auth/api/token/TokenController.java 100.00% <100.00%> (ø)
...atebe/auth/api/token/dto/request/TokenRequest.java 100.00% <ø> (ø)
...auth/application/service/signin/SignInService.java 100.00% <100.00%> (ø)
...e/auth/application/service/token/TokenService.java 100.00% <100.00%> (ø)
...raduatebe/lecture/api/SearchLectureController.java 100.00% <100.00%> (ø)
...ecture/api/dto/response/SearchLectureResponse.java 100.00% <100.00%> (ø)
...cture/application/service/FindLecturesService.java 100.00% <100.00%> (ø)
...ture/application/service/SearchLectureService.java 100.00% <100.00%> (ø)
... and 28 more

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bf6e179...ee80c8e. Read the comment docs.

@github-actions github-actions bot added D-1 and removed D-2 labels Mar 16, 2024
Copy link
Member

@Hoya324 Hoya324 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다..! 훨씬 가독성 좋아진거 같아요!

@@ -17,8 +16,8 @@ public class TokenService implements TokenUseCase {

private final FindRefreshTokenPort findRefreshTokenPort;
@Override
public AccessTokenResponse createNewToken(TokenCommand tokenCommand) {
Copy link
Member

Choose a reason for hiding this comment

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

[comment]

생성하는거면 command도 맞는거 같은데 따로 뺀 이유가 있을까요??

Copy link
Member Author

Choose a reason for hiding this comment

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

지난번 정의한 컨벤션에 따르면 request dto의 경우 필드 개수가 3개까지는 dto 사용이 아닌 각각 파라미터로 넘기기로 했습니다!

Copy link
Member

Choose a reason for hiding this comment

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

확인했습니다!

@@ -14,9 +14,15 @@
@UseCase
@Transactional(readOnly = true)
@RequiredArgsConstructor
public class FindLecturesByLectureCodeService implements FindLecturesByLectureCodeUseCase {
// FindLecturesByLectureCodeService와 통합하는게 나아보임
Copy link
Member

Choose a reason for hiding this comment

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

[comment]

좋습니당

@github-actions github-actions bot added D-0 and removed D-1 labels Mar 17, 2024
Copy link

sonarcloud bot commented Mar 18, 2024

@5uhwann 5uhwann merged commit 4d92c2c into develop Mar 19, 2024
5 checks passed
@5uhwann 5uhwann deleted the refactor/DEV-8-apply_conventions branch March 19, 2024 04:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
D-0 ♻️ refactor 기본의 로직 변경 없이 코드 개선 size/XXL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DEV-8]코드 컨벤션 적용
2 participants