Skip to content

feat: implement GetUserByIdUseCase in Application layer / Application層のGetUserByIdUseCase実装#511

Merged
zigzagdev merged 6 commits into
feat/user_find_by_idfrom
feat/user_find_by_id-application_layer
Jun 30, 2026
Merged

feat: implement GetUserByIdUseCase in Application layer / Application層のGetUserByIdUseCase実装#511
zigzagdev merged 6 commits into
feat/user_find_by_idfrom
feat/user_find_by_id-application_layer

Conversation

@zigzagdev

@zigzagdev zigzagdev commented Jun 29, 2026

Copy link
Copy Markdown
Owner

Motivation / 目的

Implement the Application layer for the User findById API as part of #507.

#507 の一環として、ユーザー取得APIのApplication層を実装しました。

What I have done / 実施内容

  • GetUserByIdUseCase: call UserRepositroyInterface::findById() and return UserDto
    • Throw Exception with message 'User not found.' when the user does not exist

Test Results / テスト結果

  • test_handle_returns_user_dto_when_user_exists
  • test_handle_throws_exception_when_user_not_found

Closes #508

@codecov

codecov Bot commented Jun 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.78%. Comparing base (016762b) to head (ef5b062).

Additional details and impacted files

Impacted file tree graph

@@                    Coverage Diff                     @@
##             feat/user_find_by_id     #511      +/-   ##
==========================================================
+ Coverage                   58.57%   58.78%   +0.20%     
- Complexity                   1471     1478       +7     
==========================================================
  Files                         112      114       +2     
  Lines                        7467     7505      +38     
==========================================================
+ Hits                         4374     4412      +38     
  Misses                       3093     3093              
Files with missing lines Coverage Δ
...yUseCases/Tests/UseCase/GetUserByIdUseCaseTest.php 100.00% <100.00%> (ø)
.../QueryUseCases/UseCase/User/GetUserByIdUseCase.php 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@zigzagdev zigzagdev self-assigned this Jun 30, 2026

@zigzagdev zigzagdev left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

ok

@zigzagdev zigzagdev changed the title Feat/user find by id application layer feat: implement GetUserByIdUseCase in Application layer / Application層のGetUserByIdUseCase実装 Jun 30, 2026
@zigzagdev zigzagdev merged commit bc8de06 into feat/user_find_by_id Jun 30, 2026
27 checks passed
@zigzagdev zigzagdev deleted the feat/user_find_by_id-application_layer branch June 30, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant