Skip to content

Conversation

@magicxor
Copy link
Owner

Renames repository listing methods by removing the redundant
"PaginatedAsync" suffix, resulting in cleaner and more
consistent naming across the application.

Renames repository listing methods by removing the redundant
"PaginatedAsync" suffix, resulting in cleaner and more
consistent naming across the application.
Copilot AI review requested due to automatic review settings November 30, 2025 22:46
@magicxor magicxor self-assigned this Nov 30, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR simplifies repository method naming by removing the redundant "PaginatedAsync" suffix from method names, resulting in cleaner and more consistent naming. The refactoring affects repository interfaces and implementations, along with comprehensive test reorganization.

  • Renamed repository methods: ListThreadPreviewsPaginatedAsyncListThreadPreviewsAsync, SearchPostsPaginatedAsyncSearchPostsAsync, ListPostsPaginatedAsyncListPostsAsync, and ListBansPaginatedAsyncListBansAsync
  • Reorganized integration tests into more focused test classes with better structure
  • Enhanced test data builder with new helper methods

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
Hikkaba.Infrastructure.Repositories/Contracts/IThreadRepository.cs Renamed ListThreadPreviewsPaginatedAsync to ListThreadPreviewsAsync in interface
Hikkaba.Infrastructure.Repositories/Contracts/IPostRepository.cs Renamed SearchPostsPaginatedAsync to SearchPostsAsync and ListPostsPaginatedAsync to ListPostsAsync in interface
Hikkaba.Infrastructure.Repositories/Contracts/IBanRepository.cs Renamed ListBansPaginatedAsync to ListBansAsync in interface
Hikkaba.Infrastructure.Repositories/Implementations/ThreadRepository.cs Updated method implementation and logic to support IncludeDeleted filter option
Hikkaba.Infrastructure.Repositories/Implementations/PostRepository.cs Updated method implementations to match new naming
Hikkaba.Infrastructure.Repositories/Implementations/BanRepository.cs Updated method implementation to match new naming
Hikkaba.Application/Implementations/ThreadService.cs Updated repository method calls, but service interface method name not updated
Hikkaba.Application/Implementations/PostService.cs Updated repository method calls, but service interface method names not updated
Hikkaba.Application/Implementations/BanService.cs Updated repository method call, but service interface method name not updated
Hikkaba.Tests.Integration/Tests/Repositories/ThreadRepositoryTests.cs Removed old test file
Hikkaba.Tests.Integration/Tests/Repositories/Thread/ListThreadPreviewsTests.cs Added new comprehensive test file with 28 focused test scenarios
Hikkaba.Tests.Integration/Tests/Repositories/Post/SearchPostsTests.cs Reorganized test file with namespace and class name changes
Hikkaba.Tests.Integration/Tests/Repositories/Ban/ListBansTests.cs Reorganized test file with namespace and class name changes
Hikkaba.Tests.Integration/Builders/ThreadTestDataBuilder.cs Enhanced with WithThreadAndOp, improved WithCategory parameters, and fixed UpdateThreadLastBumpAt to respect bump limits

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@magicxor magicxor requested a review from Copilot November 30, 2025 23:16
@magicxor magicxor merged commit ca5baf4 into master Nov 30, 2025
8 checks passed
@magicxor magicxor deleted the feature/improve-tests branch November 30, 2025 23:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 23 out of 23 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@magicxor magicxor added the tests label Dec 3, 2025
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.

2 participants