Skip to content

AB#31104: Add RelatedEntitySubType to Contacts Table#1961

Merged
JamesPasta merged 5 commits intodevfrom
feature/AB#31104-Add-Contacts-Table
Feb 3, 2026
Merged

AB#31104: Add RelatedEntitySubType to Contacts Table#1961
JamesPasta merged 5 commits intodevfrom
feature/AB#31104-Add-Contacts-Table

Conversation

@aurelio-aot
Copy link
Contributor

No description provided.

@github-actions
Copy link

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

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

📄 HTML Reports

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

1 similar comment
@github-actions
Copy link

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

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

📄 HTML Reports

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

@AndreGAot AndreGAot marked this pull request as draft January 30, 2026 17:27
@github-actions
Copy link

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

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

📄 HTML Reports

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

@AndreGAot AndreGAot requested a review from Copilot January 30, 2026 18:23
@AndreGAot AndreGAot marked this pull request as ready for review January 30, 2026 18:30
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 introduces a contact relationship refactor by moving “contact-to-related-entity” fields off the Contacts table into a new ContactLinks table, along with associated EF Core model/migration updates and minor test cleanup.

Changes:

  • Adds a new ContactLink domain entity and maps it via GrantTenantDbContext (new ContactLinks table + indexes).
  • Adds EF Core tenant migrations/snapshot updates for the new table and removal of relationship columns from Contacts.
  • Updates contact type tests to remove LINQ usage; adds new repository interfaces for contacts.

Reviewed changes

Copilot reviewed 10 out of 12 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
applications/Unity.GrantManager/test/Unity.GrantManager.Domain.Tests/Contacts/ContactTypeHelperTests.cs Replaces LINQ FirstOrDefault with List.Find and removes System.Linq using.
applications/Unity.GrantManager/src/Unity.GrantManager.EntityFrameworkCore/Migrations/TenantMigrations/GrantTenantDbContextModelSnapshot.cs Updates the EF model snapshot to reflect the new ContactLinks entity/table and removed Contacts columns.
applications/Unity.GrantManager/src/Unity.GrantManager.EntityFrameworkCore/Migrations/TenantMigrations/20260130175303_UpdateContacts.cs Drops relationship columns from Contacts and creates the new ContactLinks table + indexes.
applications/Unity.GrantManager/src/Unity.GrantManager.EntityFrameworkCore/Migrations/TenantMigrations/20260129171207_Add_RelatedEntitySubType_Column.cs Adds RelatedEntitySubType to Contacts (but later removed by UpdateContacts).
applications/Unity.GrantManager/src/Unity.GrantManager.EntityFrameworkCore/Migrations/TenantMigrations/20260129171207_Add_RelatedEntitySubType_Column.Designer.cs EF migration designer snapshot for adding RelatedEntitySubType.
applications/Unity.GrantManager/src/Unity.GrantManager.EntityFrameworkCore/EntityFrameworkCore/GrantTenantDbContext.cs Adds DbSet<ContactLink> and configures EF model mapping/indexes for ContactLinks.
applications/Unity.GrantManager/src/Unity.GrantManager.Domain/Contacts/IContactRepository.cs Adds a new contact repository interface.
applications/Unity.GrantManager/src/Unity.GrantManager.Domain/Contacts/IContactLinkRepository.cs Adds a new contact-link repository interface.
applications/Unity.GrantManager/src/Unity.GrantManager.Domain/Contacts/ContactLink.cs Introduces the ContactLink aggregate/entity.
applications/Unity.GrantManager/src/Unity.GrantManager.Domain/Contacts/Contact.cs Removes relationship fields from Contact.
applications/Unity.GrantManager/src/Unity.GrantManager.DbMigrator/Unity.GrantManager.DbMigrator.csproj Adds a UserSecretsId to the migrator project.

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

…rameworkCore/Migrations/TenantMigrations/20260130175303_UpdateContacts.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

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

📄 HTML Reports

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

@github-actions
Copy link

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

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

📄 HTML Reports

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

@JamesPasta JamesPasta merged commit f6bc955 into dev Feb 3, 2026
22 checks passed
@JamesPasta JamesPasta deleted the feature/AB#31104-Add-Contacts-Table branch February 3, 2026 19:42
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.

4 participants