-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/module integration #30
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
60de2bd
refactor: apply code review nitpick improvements
516a2a0
fix: remove ConfigurableTestAuthenticationHandler race condition
0e48824
docs: remove obsolete documentation files
e50f728
feat: add IDocumentsModuleApi for cross-module communication
e046895
wip: add comprehensive IBGE API stubs to WireMock + refactor IbgeApiI…
efdd1ef
feat: add IServiceCatalogsModuleApi for cross-module service validation
6302d16
fix: refactor IbgeApiIntegrationTests to use WireMock + fix stubs
916e4dd
test: remove Skip from 2 ServiceCatalogs integration tests after AUTH…
4940bc2
fix: enable IBGE fail-open with fallback to simple validation
97dc7ac
feat(providers): integrate IDocumentsModuleApi in provider activation
62e46fa
feat(providers): prepare ISearchModuleApi integration for provider in…
a6ad166
feat(search): implement IndexProviderAsync and RemoveProviderAsync in…
c63ad65
test: remove duplicate GeographicRestrictionFeatureFlagTests
65897e9
docs: update Sprint 1 progress and skipped tests analysis
8ca60ea
docs: comprehensive Module APIs documentation in architecture.md
234a20f
docs: Sprint 1 final summary and completion report
b77eb08
feat(providers): implement full provider data sync for search indexing
2cf5816
feat(providers): add ProviderServices many-to-many table
b355776
test(providers): add comprehensive unit tests for ProviderServices
bff2381
refactor: rename infrastructure/database/modules folders and update S…
3d8b469
fix: make SearchProviders schema migration conditional for TestContai…
4aa726a
fix: corrigir schema hardcoded 'search' para 'search_providers' em qu…
938c55d
fix: atualizar schema 'search' para 'search_providers' em SearchProvi…
b317f38
feat: implement cross-module event handlers and fix SearchProviders s…
ca4b2f9
test: skip CreateAndUpdateUser_ShouldMaintainConsistency in CI/CD
17b6e55
refactor: code review fixes - remove duplicates, fix schemas, regener…
5dad19a
chore: final code review fixes - documentation, security, domain events
ac601cb
fix: correct schema naming to meajudaai_* pattern across all modules
b98c132
refactor: code quality improvements from review feedback
59e6265
refactor: minor code quality improvements
025aee0
test: improve test quality with explicit assertions and Theory pattern
ee4d1b2
refactor: use IReadOnlyList in ModuleServiceValidationResultDto
3d7b31b
fix: resolve race condition in ConfigurableTestAuthenticationHandler
78e47cb
fix: consolidate schema naming to meajudaai_* convention across all m…
dfa7f10
perf: reduce WireMock timeout simulation from 30s to 5s
5221f44
refactor: implement code review feedback - Result Match pattern, repo…
51f7e0d
refactor: rename Mock* to LocalDevelopment* services and move to dedi…
512cd66
fix: allowUnauthenticated should return anonymous principal, not admin
780cae9
fix: address CodeRabbit review feedback
9bfff7c
refactor: implement CodeRabbit Round 2 feedback - null guards, XML do…
0be5389
refactor: apply minor CodeRabbit polish - constants and comments
c69c404
feat: implement remaining CodeRabbit suggestions - UUID v7, migration…
93592d7
refactor: implement CodeRabbit final round - schema standardization, …
e0b4db3
refactor: complete CodeRabbit final polish - ProductVersion stable, h…
63a4a2d
fix: resolve E2E test failures - authentication and category deactiva…
274b378
refactor: apply CodeRabbit feedback - schema naming, async cleanup, t…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
refactor: implement CodeRabbit final round - schema standardization, …
…XML docs, code cleanup
Schema Standardization:
- Fix Providers module schema: 'providers' → 'meajudaai_providers' in test configuration
- Fix Users module schema: 'users' → 'meajudaai_users' in DbContext and migrations
- Regenerate Users migrations with correct schema (removed 8 old migrations, created single InitialCreate)
- Align all modules to meajudaai_{module_name} naming convention
XML Documentation:
- Add comprehensive XML docs to TestContainerTestBase helper methods (PostJsonAsync, PutJsonAsync, ReadJsonAsync, URI overloads)
- Add XML docs to Users.Infrastructure.Extensions.AddInfrastructure method
- Add XML docs to ConfigurableTestAuthenticationHandler.SchemeName constant
- Enhance ClearConfiguration docs to emphasize cleanup hook usage
Code Quality:
- Remove unreachable code in TestContainerTestBase exception handling
- Fix WireMock timeout comment accuracy (5s is within 30s timeout, not exceeding)
- Improve Portuguese grammar in technical_debt.md (add comma before 'incluindo')
- Use Portuguese term 'Desempenho' instead of 'Performance' for consistency
All tests passing:
- 1/1 ProviderRepositoryIntegrationTests
- 8/8 PermissionAuthorizationE2ETests- Loading branch information
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...250923190430_SyncCurrentModel.Designer.cs → .../20251127125806_InitialCreate.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
96 changes: 96 additions & 0 deletions
96
src/Modules/Users/Infrastructure/Migrations/20251127125806_InitialCreate.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,96 @@ | ||
| using System; | ||
| using Microsoft.EntityFrameworkCore.Migrations; | ||
|
|
||
| #nullable disable | ||
|
|
||
| namespace MeAjudaAi.Modules.Users.Infrastructure.Migrations | ||
| { | ||
| /// <inheritdoc /> | ||
| public partial class InitialCreate : Migration | ||
| { | ||
| /// <inheritdoc /> | ||
| protected override void Up(MigrationBuilder migrationBuilder) | ||
| { | ||
| migrationBuilder.EnsureSchema( | ||
| name: "meajudaai_users"); | ||
|
|
||
| migrationBuilder.CreateTable( | ||
| name: "users", | ||
| schema: "meajudaai_users", | ||
| columns: table => new | ||
| { | ||
| id = table.Column<Guid>(type: "uuid", nullable: false), | ||
| username = table.Column<string>(type: "character varying(30)", maxLength: 30, nullable: false), | ||
| email = table.Column<string>(type: "character varying(254)", maxLength: 254, nullable: false), | ||
| first_name = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: false), | ||
| last_name = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: false), | ||
| keycloak_id = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: false), | ||
| is_deleted = table.Column<bool>(type: "boolean", nullable: false, defaultValue: false), | ||
| deleted_at = table.Column<DateTime>(type: "timestamp with time zone", nullable: true), | ||
| last_username_change_at = table.Column<DateTime>(type: "timestamp with time zone", nullable: true), | ||
| created_at = table.Column<DateTime>(type: "timestamp with time zone", nullable: false), | ||
| updated_at = table.Column<DateTime>(type: "timestamp with time zone", nullable: true) | ||
| }, | ||
| constraints: table => | ||
| { | ||
| table.PrimaryKey("PK_users", x => x.id); | ||
| }); | ||
|
|
||
| migrationBuilder.CreateIndex( | ||
| name: "ix_users_created_at", | ||
| schema: "meajudaai_users", | ||
| table: "users", | ||
| column: "created_at"); | ||
|
|
||
| migrationBuilder.CreateIndex( | ||
| name: "ix_users_deleted_created", | ||
| schema: "meajudaai_users", | ||
| table: "users", | ||
| columns: new[] { "is_deleted", "created_at" }, | ||
| filter: "is_deleted = false"); | ||
|
|
||
| migrationBuilder.CreateIndex( | ||
| name: "ix_users_deleted_email", | ||
| schema: "meajudaai_users", | ||
| table: "users", | ||
| columns: new[] { "is_deleted", "email" }, | ||
| filter: "is_deleted = false"); | ||
|
|
||
| migrationBuilder.CreateIndex( | ||
| name: "ix_users_deleted_username", | ||
| schema: "meajudaai_users", | ||
| table: "users", | ||
| columns: new[] { "is_deleted", "username" }, | ||
| filter: "is_deleted = false"); | ||
|
|
||
| migrationBuilder.CreateIndex( | ||
| name: "ix_users_email", | ||
| schema: "meajudaai_users", | ||
| table: "users", | ||
| column: "email", | ||
| unique: true); | ||
|
|
||
| migrationBuilder.CreateIndex( | ||
| name: "ix_users_keycloak_id", | ||
| schema: "meajudaai_users", | ||
| table: "users", | ||
| column: "keycloak_id", | ||
| unique: true); | ||
|
|
||
| migrationBuilder.CreateIndex( | ||
| name: "ix_users_username", | ||
| schema: "meajudaai_users", | ||
| table: "users", | ||
| column: "username", | ||
| unique: true); | ||
| } | ||
|
|
||
| /// <inheritdoc /> | ||
| protected override void Down(MigrationBuilder migrationBuilder) | ||
| { | ||
| migrationBuilder.DropTable( | ||
| name: "users", | ||
| schema: "meajudaai_users"); | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 0 additions & 89 deletions
89
...ules/Users/Infrastructure/Persistence/Migrations/20250914145433_InitialCreate.Designer.cs
This file was deleted.
Oops, something went wrong.
68 changes: 0 additions & 68 deletions
68
src/Modules/Users/Infrastructure/Persistence/Migrations/20250914145433_InitialCreate.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.