refactor: rename Search module to SearchProviders#18
Conversation
- Renamed module directory and all project files - Updated all namespaces from MeAjudaAi.Modules.Search to MeAjudaAi.Modules.SearchProviders - Renamed DbContext and related classes - Updated documentation (search.md -> search_providers.md) - Updated solution file references Total files affected: ~35 Build status: SUCCESS (0 errors, 0 warnings)
|
Warning Rate limit exceeded@frigini has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 6 minutes and 28 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (15)
WalkthroughA comprehensive module refactoring renames the Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
- Updated using statement in Program.cs - Updated ProjectReference in .csproj file
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
docs/modules/search_providers.md (1)
21-25: Align documented paths and schema with the actual codeA few inconsistencies between docs and implementation should be corrected:
- Folder paths still reference
src/Modules/Search/andsrc\Modules\Search\...(structure section anddotnet test/dotnet efcommands), but the module has been renamed toSearchProviders.- The migrations section claims the module uses schema
SearchProviders(lines 98–99, 116), whereasSearchProvidersDbContextsetsHasDefaultSchema("search")and SQL samples usesearch.searchable_providers(lines 338–342 and repository queries).Recommend updating the paths to
src/Modules/SearchProviders/...and documenting the actual schema name (search) to avoid confusion when running commands or debugging DB objects.Also applies to: 36-40, 74-75, 98-99, 108-113, 116-120, 338-342, 405-413
🧹 Nitpick comments (10)
src/Modules/SearchProviders/API/Extensions.cs (1)
10-36: Consider updating method names and comments for consistency.While the namespace changes are correct, the method name
AddSearchModuleand related comments still reference "Search" without "Providers". For full consistency with the module rename:
- Consider renaming
AddSearchModule→AddSearchProvidersModule- Update XML comments to reference "SearchProviders" module
- Similarly,
AddSearchApplicationandAddSearchInfrastructure(called on lines 28, 31) could be renamedNote: If these method names are intentionally kept as "Search" for API stability or brevity, this is acceptable but creates a naming mismatch with the namespace.
src/Modules/SearchProviders/Application/ModuleApi/SearchModuleApi.cs (2)
31-67: Optional: Update log messages and comments for consistency.Multiple log messages and comments still reference "Search module" without "Providers" (lines 35, 49, 53, 59, 64). While not functionally critical, updating these would improve consistency with the module rename.
14-26: UpdateModuleMetadata.Namefrom "Search" to "SearchProviders" for consistency with the module directory structure.The metadata name "Search" inconsistently differs from the established pattern where all other modules have their metadata name match their directory name (Users, Providers, Documents, Catalogs, Location). While the current inconsistency does not cause functional issues—module discovery uses reflection on the
[ModuleApi]attribute rather than name-based lookup—updating this maintains architectural consistency and clarity in diagnostics/logging output. UpdateModuleMetadata.Nameto"SearchProviders"and the XML comment referencing "Search" module.src/Modules/SearchProviders/Tests/Unit/Application/Queries/SearchProvidersQueryTests.cs (1)
1-12: Namespace migration completed, but test trait needs update.The using directive and namespace have been correctly updated to
SearchProviders. However, line 10 still has[Trait("Module", "Search")]which should be"SearchProviders"for consistency with the module rename and proper test categorization.Apply this diff to update the test trait:
[Trait("Category", "Unit")] -[Trait("Module", "Search")] +[Trait("Module", "SearchProviders")] [Trait("Component", "Query")]src/Modules/SearchProviders/Tests/Unit/Application/Handlers/SearchProvidersQueryHandlerTests.cs (1)
1-22: Namespace migration completed, but test trait needs update.The using directives and namespace have been correctly updated to
SearchProviders. However, line 20 still has[Trait("Module", "Search")]which should be"SearchProviders"for consistency with the module rename and proper test categorization.Apply this diff to update the test trait:
[Trait("Category", "Unit")] -[Trait("Module", "Search")] +[Trait("Module", "SearchProviders")] [Trait("Component", "QueryHandler")]src/Modules/SearchProviders/Tests/Unit/Domain/Entities/SearchableProviderTests.cs (1)
1-14: Namespace migration completed, but test trait needs update.The using directives and namespace have been correctly updated to
SearchProviders. However, line 12 still has[Trait("Module", "Search")]which should be"SearchProviders"for consistency with the module rename and proper test categorization.Apply this diff to update the test trait:
[Trait("Category", "Unit")] -[Trait("Module", "Search")] +[Trait("Module", "SearchProviders")] [Trait("Component", "Domain")]src/Modules/SearchProviders/Tests/Unit/Application/Validators/SearchProvidersQueryValidatorTests.cs (1)
2-6: Validator tests correctly retargeted to SearchProvidersUsings and namespace now reference the
SearchProvidersApplication/Domain types, and the tests continue to exercise the same behavior.If you want trait-based filtering to mirror the new module name, you might later rename
[Trait("Module", "Search")]to"SearchProviders", but it’s not required for this refactor.src/Modules/SearchProviders/Tests/Integration/SearchableProviderRepositoryIntegrationTests.cs (1)
2-4: Repository integration tests now target SearchProviders stackThe tests correctly inherit from
SearchProvidersIntegrationTestBase, useSearchProvidersDbContext, and depend onMeAjudaAi.Modules.SearchProviders.*enums and repository interfaces, so they remain valid against the renamed module.Similar to the unit tests, consider whether
[Trait("Module", "Search")]should be updated to"SearchProviders"for consistency in test categorization, but it’s optional for this rename-only PR.Also applies to: 8-9, 16-17, 24-25
src/Modules/SearchProviders/Infrastructure/Persistence/Migrations/SearchDbContextModelSnapshot.cs (1)
1-31: Model snapshot wired toSearchProvidersDbContextand SearchProviders entityThe snapshot now imports
SearchProvidersinfrastructure, lives in theSearchProviders.Infrastructure.Persistence.Migrationsnamespace, targetsSearchProvidersDbContext, and mapsMeAjudaAi.Modules.SearchProviders.Domain.Entities.SearchableProvider; mapping details are unchanged. Consider renaming the partial class toSearchProvidersDbContextModelSnapshotat some point for naming consistency, though this is purely cosmetic.src/Modules/SearchProviders/Infrastructure/Persistence/SearchProvidersDbContextFactory.cs (1)
5-5: RenameSearchDbContextFactoryfor clarityThe factory correctly creates
SearchProvidersDbContextand implementsIDesignTimeDbContextFactory<SearchProvidersDbContext>, but the class is still namedSearchDbContextFactory. For consistency and discoverability (especially with EF tooling and IDE navigation), consider renaming the class (and file) toSearchProvidersDbContextFactory.Also applies to: 8-13, 31-32
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (42)
MeAjudaAi.sln(2 hunks)docs/README.md(1 hunks)docs/modules/search_providers.md(9 hunks)src/Modules/SearchProviders/API/Endpoints/SearchProvidersEndpoint.cs(2 hunks)src/Modules/SearchProviders/API/Extensions.cs(1 hunks)src/Modules/SearchProviders/API/MeAjudaAi.Modules.SearchProviders.API.csproj(2 hunks)src/Modules/SearchProviders/Application/DTOs/LocationDto.cs(1 hunks)src/Modules/SearchProviders/Application/DTOs/PagedSearchResultDto.cs(1 hunks)src/Modules/SearchProviders/Application/DTOs/SearchableProviderDto.cs(1 hunks)src/Modules/SearchProviders/Application/Extensions.cs(1 hunks)src/Modules/SearchProviders/Application/Handlers/SearchProvidersQueryHandler.cs(1 hunks)src/Modules/SearchProviders/Application/MeAjudaAi.Modules.SearchProviders.Application.csproj(1 hunks)src/Modules/SearchProviders/Application/ModuleApi/SearchModuleApi.cs(2 hunks)src/Modules/SearchProviders/Application/Queries/SearchProvidersQuery.cs(1 hunks)src/Modules/SearchProviders/Application/Validators/SearchProvidersQueryValidator.cs(1 hunks)src/Modules/SearchProviders/Domain/Entities/SearchableProvider.cs(1 hunks)src/Modules/SearchProviders/Domain/Enums/ESubscriptionTier.cs(1 hunks)src/Modules/SearchProviders/Domain/Events/SearchableProviderIndexedDomainEvent.cs(1 hunks)src/Modules/SearchProviders/Domain/Events/SearchableProviderRemovedDomainEvent.cs(1 hunks)src/Modules/SearchProviders/Domain/Events/SearchableProviderUpdatedDomainEvent.cs(1 hunks)src/Modules/SearchProviders/Domain/MeAjudaAi.Modules.SearchProviders.Domain.csproj(1 hunks)src/Modules/SearchProviders/Domain/Models/SearchResult.cs(1 hunks)src/Modules/SearchProviders/Domain/Properties/AssemblyInfo.cs(1 hunks)src/Modules/SearchProviders/Domain/Repositories/ISearchableProviderRepository.cs(1 hunks)src/Modules/SearchProviders/Domain/ValueObjects/SearchableProviderId.cs(1 hunks)src/Modules/SearchProviders/Infrastructure/Extensions.cs(2 hunks)src/Modules/SearchProviders/Infrastructure/MeAjudaAi.Modules.SearchProviders.Infrastructure.csproj(2 hunks)src/Modules/SearchProviders/Infrastructure/Persistence/Configurations/SearchableProviderConfiguration.cs(1 hunks)src/Modules/SearchProviders/Infrastructure/Persistence/DTOs/ProviderSearchResultDto.cs(1 hunks)src/Modules/SearchProviders/Infrastructure/Persistence/Migrations/20251114205434_InitialCreate.Designer.cs(3 hunks)src/Modules/SearchProviders/Infrastructure/Persistence/Migrations/20251114205434_InitialCreate.cs(1 hunks)src/Modules/SearchProviders/Infrastructure/Persistence/Migrations/SearchDbContextModelSnapshot.cs(3 hunks)src/Modules/SearchProviders/Infrastructure/Persistence/Repositories/SearchableProviderRepository.cs(2 hunks)src/Modules/SearchProviders/Infrastructure/Persistence/SearchProvidersDbContext.cs(1 hunks)src/Modules/SearchProviders/Infrastructure/Persistence/SearchProvidersDbContextFactory.cs(2 hunks)src/Modules/SearchProviders/Tests/Integration/SearchProvidersIntegrationTestBase.cs(6 hunks)src/Modules/SearchProviders/Tests/Integration/SearchableProviderRepositoryIntegrationTests.cs(1 hunks)src/Modules/SearchProviders/Tests/MeAjudaAi.Modules.SearchProviders.Tests.csproj(1 hunks)src/Modules/SearchProviders/Tests/Unit/Application/Handlers/SearchProvidersQueryHandlerTests.cs(1 hunks)src/Modules/SearchProviders/Tests/Unit/Application/Queries/SearchProvidersQueryTests.cs(1 hunks)src/Modules/SearchProviders/Tests/Unit/Application/Validators/SearchProvidersQueryValidatorTests.cs(1 hunks)src/Modules/SearchProviders/Tests/Unit/Domain/Entities/SearchableProviderTests.cs(1 hunks)
🧰 Additional context used
🧬 Code graph analysis (12)
src/Modules/SearchProviders/Application/Handlers/SearchProvidersQueryHandler.cs (2)
src/Modules/SearchProviders/Application/Extensions.cs (1)
Extensions(16-34)src/Modules/SearchProviders/Infrastructure/Extensions.cs (1)
Extensions(14-61)
src/Modules/SearchProviders/API/Extensions.cs (2)
src/Modules/SearchProviders/Application/Extensions.cs (1)
Extensions(16-34)src/Modules/SearchProviders/Infrastructure/Extensions.cs (1)
Extensions(14-61)
src/Modules/SearchProviders/Infrastructure/Persistence/Repositories/SearchableProviderRepository.cs (2)
src/Modules/SearchProviders/Infrastructure/Persistence/SearchProvidersDbContext.cs (3)
SearchProvidersDbContext(15-74)SearchProvidersDbContext(20-22)SearchProvidersDbContext(25-28)src/Modules/SearchProviders/Infrastructure/Persistence/SearchProvidersDbContextFactory.cs (1)
SearchProvidersDbContext(12-32)
src/Modules/SearchProviders/Application/Extensions.cs (2)
src/Modules/SearchProviders/Application/ModuleApi/SearchModuleApi.cs (1)
ModuleApi(17-152)src/Modules/SearchProviders/Infrastructure/Extensions.cs (1)
Extensions(14-61)
src/Modules/SearchProviders/Infrastructure/Persistence/SearchProvidersDbContext.cs (1)
src/Modules/SearchProviders/Infrastructure/Persistence/SearchProvidersDbContextFactory.cs (1)
SearchProvidersDbContext(12-32)
src/Modules/SearchProviders/Infrastructure/Persistence/Migrations/20251114205434_InitialCreate.Designer.cs (2)
src/Modules/SearchProviders/Infrastructure/Persistence/Migrations/SearchDbContextModelSnapshot.cs (1)
DbContext(14-126)src/Modules/SearchProviders/Infrastructure/Persistence/SearchProvidersDbContext.cs (3)
SearchProvidersDbContext(15-74)SearchProvidersDbContext(20-22)SearchProvidersDbContext(25-28)
src/Modules/SearchProviders/Infrastructure/Persistence/Migrations/SearchDbContextModelSnapshot.cs (3)
src/Modules/SearchProviders/Infrastructure/Persistence/Migrations/20251114205434_InitialCreate.Designer.cs (1)
DbContext(15-129)src/Modules/SearchProviders/Infrastructure/Persistence/SearchProvidersDbContext.cs (3)
SearchProvidersDbContext(15-74)SearchProvidersDbContext(20-22)SearchProvidersDbContext(25-28)src/Modules/SearchProviders/Infrastructure/Persistence/SearchProvidersDbContextFactory.cs (1)
SearchProvidersDbContext(12-32)
src/Modules/SearchProviders/Infrastructure/Extensions.cs (3)
src/Modules/SearchProviders/Application/Extensions.cs (1)
Extensions(16-34)src/Modules/SearchProviders/Infrastructure/Persistence/SearchProvidersDbContext.cs (3)
SearchProvidersDbContext(15-74)SearchProvidersDbContext(20-22)SearchProvidersDbContext(25-28)src/Modules/SearchProviders/Infrastructure/Persistence/SearchProvidersDbContextFactory.cs (1)
SearchProvidersDbContext(12-32)
src/Modules/SearchProviders/Tests/Integration/SearchableProviderRepositoryIntegrationTests.cs (2)
src/Modules/SearchProviders/Tests/Integration/SearchProvidersIntegrationTestBase.cs (2)
SearchProvidersIntegrationTestBase(19-271)SearchProvidersIntegrationTestBase(25-28)src/Modules/SearchProviders/Infrastructure/Persistence/SearchProvidersDbContext.cs (3)
SearchProvidersDbContext(15-74)SearchProvidersDbContext(20-22)SearchProvidersDbContext(25-28)
src/Modules/SearchProviders/Tests/Unit/Application/Handlers/SearchProvidersQueryHandlerTests.cs (1)
src/Modules/SearchProviders/Application/Extensions.cs (1)
Extensions(16-34)
src/Modules/SearchProviders/Infrastructure/Persistence/SearchProvidersDbContextFactory.cs (1)
src/Modules/SearchProviders/Infrastructure/Persistence/SearchProvidersDbContext.cs (3)
SearchProvidersDbContext(15-74)SearchProvidersDbContext(20-22)SearchProvidersDbContext(25-28)
src/Modules/SearchProviders/Tests/Integration/SearchProvidersIntegrationTestBase.cs (4)
src/Modules/SearchProviders/Infrastructure/Extensions.cs (1)
Extensions(14-61)src/Modules/SearchProviders/Infrastructure/Persistence/SearchProvidersDbContext.cs (3)
SearchProvidersDbContext(15-74)SearchProvidersDbContext(20-22)SearchProvidersDbContext(25-28)src/Modules/SearchProviders/Infrastructure/Persistence/SearchProvidersDbContextFactory.cs (1)
SearchProvidersDbContext(12-32)src/Modules/SearchProviders/Infrastructure/Persistence/Repositories/SearchableProviderRepository.cs (1)
SearchableProviderRepository(49-258)
🪛 LanguageTool
docs/modules/search_providers.md
[style] ~354-~354: Para conferir mais clareza ao seu texto, prefira mover o advérbio.
Context: ...rchProvidersProvidersProvidersProviders atualmente opera de forma independente sem sincronização au...
(COLOCAÇÃO_ADVÉRBIO)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: Code Quality Checks
- GitHub Check: Security Scan
🔇 Additional comments (35)
src/Modules/SearchProviders/Domain/Events/SearchableProviderRemovedDomainEvent.cs (1)
3-3: LGTM! Clean namespace refactoring.The namespace update from
MeAjudaAi.Modules.Search.Domain.EventstoMeAjudaAi.Modules.SearchProviders.Domain.Eventsis correct and aligns with the module rename objective. The successful build confirms all references to this event have been updated consistently across the codebase.src/Modules/SearchProviders/Domain/Events/SearchableProviderIndexedDomainEvent.cs (1)
3-3: LGTM! Namespace updated correctly.The namespace change from
MeAjudaAi.Modules.Search.Domain.EventstoMeAjudaAi.Modules.SearchProviders.Domain.Eventsaligns with the module refactoring objectives and matches the file's directory structure.src/Modules/SearchProviders/Domain/Events/SearchableProviderUpdatedDomainEvent.cs (1)
3-3: LGTM! Namespace updated correctly.The namespace change from
MeAjudaAi.Modules.Search.Domain.EventstoMeAjudaAi.Modules.SearchProviders.Domain.Eventsis consistent with the PR objectives and aligns with the file path structure. The successful build confirms all references were updated across the codebase.docs/README.md (1)
59-59: LGTM! Documentation correctly updated.The module reference has been properly updated to reflect the new
SearchProvidersname, and the link points to the correct documentation file.src/Modules/SearchProviders/Domain/ValueObjects/SearchableProviderId.cs (1)
4-4: LGTM! Clean namespace update.The namespace has been correctly updated to reflect the module rename with no functional changes.
src/Modules/SearchProviders/Domain/MeAjudaAi.Modules.SearchProviders.Domain.csproj (1)
5-5: LGTM! RootNamespace correctly updated.The project's RootNamespace property properly reflects the new module naming convention.
src/Modules/SearchProviders/Application/DTOs/LocationDto.cs (1)
3-3: LGTM! Namespace correctly updated.The DTO namespace has been properly updated to match the module rename.
src/Modules/SearchProviders/Infrastructure/Persistence/DTOs/ProviderSearchResultDto.cs (1)
1-1: LGTM! Infrastructure namespace correctly updated.The infrastructure persistence DTO namespace has been properly updated.
MeAjudaAi.sln (2)
126-147: Verify solution folder naming consistency.The project names and paths have been correctly updated to
SearchProviders, but the solution folder at Line 126 is still named"Search". Should this be renamed to"SearchProviders"for consistency?-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Search", "Search", "{6FF68FBA-C4AF-48EC-AFE2-E320F2195C79}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SearchProviders", "SearchProviders", "{6FF68FBA-C4AF-48EC-AFE2-E320F2195C79}"
130-146: LGTM! Project references correctly updated.All five projects (API, Application, Domain, Infrastructure, Tests) have been properly renamed with correct paths and preserved GUIDs.
src/Modules/SearchProviders/Domain/Models/SearchResult.cs (1)
1-3: LGTM! Using directives and namespace correctly updated.Both the using directive and namespace declaration have been properly updated to reflect the module rename.
src/Modules/SearchProviders/Domain/Repositories/ISearchableProviderRepository.cs (1)
1-7: LGTM! Repository namespace and dependencies correctly updated.All using directives and the namespace declaration have been systematically updated to reference the new
SearchProvidersmodule namespace.src/Modules/SearchProviders/API/Extensions.cs (1)
1-8: LGTM! Namespace migration completed correctly.The using directives and namespace declaration have been properly updated from
MeAjudaAi.Modules.SearchtoMeAjudaAi.Modules.SearchProviders.src/Modules/SearchProviders/API/MeAjudaAi.Modules.SearchProviders.API.csproj (1)
1-21: LGTM! Project references updated correctly.The
RootNamespaceandProjectReferencepaths have been properly updated to reflect the newSearchProvidersmodule structure.src/Modules/SearchProviders/Application/ModuleApi/SearchModuleApi.cs (1)
1-12: LGTM! Namespace migration completed correctly.The using directives and namespace declaration have been properly updated to the
SearchProvidersmodule structure.src/Modules/SearchProviders/Application/Validators/SearchProvidersQueryValidator.cs (1)
1-42: LGTM! Namespace migration completed correctly.The using directive and namespace declaration have been properly updated to reference the
SearchProvidersmodule. The validator logic remains unchanged as expected for this refactoring.src/Modules/SearchProviders/Infrastructure/Persistence/Configurations/SearchableProviderConfiguration.cs (1)
1-118: LGTM! Namespace migration completed correctly.All using directives and the namespace declaration have been properly updated to reference the
SearchProvidersmodule structure. The EF Core entity configuration logic remains unchanged as expected for this refactoring.src/Modules/SearchProviders/Domain/Enums/ESubscriptionTier.cs (1)
1-27: Namespace rename aligns enum with new module
ESubscriptionTieris now underMeAjudaAi.Modules.SearchProviders.Domain.Enumswith no behavioral changes. This keeps consumers intact while matching the new module name.src/Modules/SearchProviders/Tests/MeAjudaAi.Modules.SearchProviders.Tests.csproj (1)
39-44: Test project references now point to SearchProviders projectsThe four
<ProjectReference>entries correctly target the newMeAjudaAi.Modules.SearchProviders.*projects, keeping the test project aligned with the renamed module.src/Modules/SearchProviders/Infrastructure/MeAjudaAi.Modules.SearchProviders.Infrastructure.csproj (1)
5-5: Infrastructure project metadata updated to SearchProviders
RootNamespaceand the Domain/Application<ProjectReference>entries now match theSearchProvidersnaming and layout; this is consistent with the rest of the refactor.Also applies to: 21-22
src/Modules/SearchProviders/Infrastructure/Extensions.cs (1)
1-3: Infrastructure DI now correctly targets SearchProvidersDbContext and repositoryThe namespace/usings and
AddDbContext<SearchProvidersDbContext>/ISearchableProviderRepositoryregistrations are all aligned with the newSearchProvidersmodule. The connection-string resolution and Npgsql configuration remain unchanged.Also applies to: 9-10, 35-58
src/Modules/SearchProviders/Application/DTOs/PagedSearchResultDto.cs (1)
1-43: Paged search result DTO moved under SearchProviders namespace
PagedSearchResultDto<T>keeps the same structure and behavior, now exposed fromMeAjudaAi.Modules.SearchProviders.Application.DTOs, which matches the rest of the Application layer rename.src/Modules/SearchProviders/Application/Handlers/SearchProvidersQueryHandler.cs (1)
1-5: Search query handler correctly rehomed to SearchProviders.ApplicationImports and namespace now point to the
SearchProvidersDTOs, query, repository, and value objects; the handler behavior and contract remain the same.Also applies to: 11-95
src/Modules/SearchProviders/Application/DTOs/SearchableProviderDto.cs (1)
1-3: Namespace and enum import aligned with SearchProviders refactorThe using and namespace now correctly target
MeAjudaAi.Modules.SearchProviders.*, keepingSearchableProviderDtoconsistent with the module rename and existingESubscriptionTierusage.src/Modules/SearchProviders/Domain/Entities/SearchableProvider.cs (1)
1-7: Domain usings/namespace updated consistently forSearchableProviderEnum and value-object imports, plus the namespace, are now under
MeAjudaAi.Modules.SearchProviders.*; the aggregate’s API and invariants remain unchanged.src/Modules/SearchProviders/Domain/Properties/AssemblyInfo.cs (1)
5-8:InternalsVisibleTotargets now match SearchProviders assembliesThe infrastructure and test assemblies referenced in
InternalsVisibleTohave been updated toMeAjudaAi.Modules.SearchProviders.Infrastructureand.Tests, matching the new module naming.src/Modules/SearchProviders/Infrastructure/Persistence/Migrations/20251114205434_InitialCreate.cs (1)
7-7: Migration namespace moved underSearchProviders.Infrastructure.Persistence.MigrationsThe
InitialCreatemigration is now in the SearchProviders infrastructure namespace; the migration operations themselves are untouched, so the database schema remains identical.src/Modules/SearchProviders/Application/MeAjudaAi.Modules.SearchProviders.Application.csproj (1)
5-11: Root namespace and Domain reference updated to SearchProvidersThe application project now uses
MeAjudaAi.Modules.SearchProviders.Applicationas root namespace and references the renamed Domain project; this matches the new module name and structure.src/Modules/SearchProviders/Application/Queries/SearchProvidersQuery.cs (1)
2-9: Query now references SearchProviders DTOs/enums and namespaceThe query imports and namespace have been switched to
MeAjudaAi.Modules.SearchProviders.*, keepingSearchProvidersQueryaligned with the renamed DTOs andESubscriptionTierwhile leaving its behaviour intact.src/Modules/SearchProviders/Infrastructure/Persistence/Migrations/20251114205434_InitialCreate.Designer.cs (1)
1-4: Designer migration updated forSearchProvidersDbContextand entity namespaceThe auto-generated designer now references
SearchProvidersDbContextand theSearchProvidersdomainSearchableProviderentity under the correct infrastructure namespace, keeping it consistent with the runtime migration and model snapshot.Also applies to: 13-16, 31-31
src/Modules/SearchProviders/Application/Extensions.cs (1)
2-4: Namespace and DI wiring consistent with SearchProviders renameThe updated usings and namespace correctly point to
MeAjudaAi.Modules.SearchProviders.*, andAddSearchApplicationstill wiresSearchProvidersQueryandSearchModuleApias expected. No issues from the rename here.Also applies to: 11-11
src/Modules/SearchProviders/Infrastructure/Persistence/Repositories/SearchableProviderRepository.cs (1)
1-7: Repository now correctly targetsSearchProvidersDbContextand new domain namespacesThe constructor and usings have been updated to
SearchProvidersDbContextandMeAjudaAi.Modules.SearchProviders.Domain.*, staying consistent with the DbContext rename while preserving the existingsearch.searchable_providersschema. The hybrid EF/Dapper design remains intact.Also applies to: 12-13, 49-51
src/Modules/SearchProviders/API/Endpoints/SearchProvidersEndpoint.cs (1)
1-3: Endpoint rename is consistent while keeping the public route stableThe endpoint now lives under
MeAjudaAi.Modules.SearchProviders.API.Endpointsand uses theSearchProvidersapplication/domain namespaces, while still exposing/api/v1/search/providers. This keeps external contracts stable with only internal namespace changes.Also applies to: 13-13
src/Modules/SearchProviders/Infrastructure/Persistence/SearchProvidersDbContext.cs (1)
2-4: DbContext type/namespace update looks correct and consistent
SearchProvidersDbContextis correctly renamed with matching generic options in both constructors and the namespace updated to...SearchProviders.Infrastructure.Persistence. KeepingHasDefaultSchema("search")aligns with the existing database objects and repository SQL.Also applies to: 9-10, 15-26
src/Modules/SearchProviders/Tests/Integration/SearchProvidersIntegrationTestBase.cs (1)
2-6: Integration test base correctly migrated toSearchProviderstypes and DbContextThe integration base now uses
SearchProvidersDbContext, theSearchProvidersdomain entities/enums, and registersISearchableProviderRepositoryfrom the new infrastructure namespace. Raw SQL still targets thesearchschema, which matches the DbContext configuration. The migration looks consistent and should keep tests behaving as before.Also applies to: 13-26, 58-60, 86-88, 100-101, 206-207, 217-218
Documentation fixes: Fix mangled identifiers in search_providers.md, update all references to SearchableProvider and SearchableProviderRepository API consistency: Rename methods to AddSearchProvidersModule, UseSearchProvidersModule, AddSearchProvidersApplication, AddSearchProvidersInfrastructure Module metadata: Update ModuleMetadata.Name from Search to SearchProviders, update all log messages Test traits: Update Module trait from Search to SearchProviders in all tests Infrastructure: Rename SearchDbContextFactory to SearchProvidersDbContextFactory, rename model snapshot class Build verified successfully
Total files affected: ~35
Build status: SUCCESS (0 errors, 0 warnings)
Summary by CodeRabbit