Skip to content

AB#34140 - Scoped primary address exclusivity by address type - #2867

Draft
hasanpour wants to merge 2 commits into
devfrom
feature/AB#34140-Portal-have-more-than-one-primary-address
Draft

AB#34140 - Scoped primary address exclusivity by address type#2867
hasanpour wants to merge 2 commits into
devfrom
feature/AB#34140-Portal-have-more-than-one-primary-address

Conversation

@hasanpour

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Scopes primary-address exclusivity by address type and centralizes enforcement in the domain layer.

Changes:

  • Adds shared address-type mapping and primary-flag helpers.
  • Introduces a domain service for demotion and re-election.
  • Updates portal handlers, profile inference, and tests.

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
AddressTypeMapperTests.cs Tests portal address-type mapping.
AddressSetPrimaryHandlerTests.cs Tests type-scoped primary selection.
AddressEditHandlerTests.cs Tests primary handling during edits.
AddressDeleteHandlerTests.cs Tests primary re-election after deletion.
AddressCreateHandlerTests.cs Tests scoped demotion during creation.
AddressInfoDataProviderTests.cs Tests per-type primary inference.
IApplicantAddressManager.cs Defines primary-address operations.
ApplicantAddressManager.cs Implements demotion and election logic.
ApplicantAddress.cs Adds primary-flag helpers.
AddressTypeMapper.cs Centralizes portal type translation.
AddressSetPrimaryHandler.cs Delegates scoped demotion.
AddressEditHandler.cs Handles type changes and primary reassignment.
AddressDeleteHandler.cs Re-elects a primary after deletion.
AddressCreateHandler.cs Applies scoped demotion before creation.
AddressInfoDataProvider.cs Infers primaries by address type.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

Copy link
Copy Markdown

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 1023
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 1023
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants