Skip to content

align V1ReferralsResource with cached resource pattern#1077

Merged
PabloDinella merged 2 commits intomainfrom
referrals-page-refactoring
Apr 24, 2026
Merged

align V1ReferralsResource with cached resource pattern#1077
PabloDinella merged 2 commits intomainfrom
referrals-page-refactoring

Conversation

@PabloDinella
Copy link
Copy Markdown
Collaborator

@PabloDinella PabloDinella commented Apr 24, 2026

  • refactor V1ReferralsResource to follow the same tenant-scoped model/caching approach used by other resources
  • consolidate V1 referral contracts/events/model/resource code into the standard resource layout
  • move command application logic into V1ReferralModel and keep V1Referral as a read model/contract
  • reduce repeated full event-log scans on read paths (GetReferralAsync / ListReferralsAsync)
  • preserve append-only command execution and deterministic replay using persisted event audit data
  • extract V1 referral notes into a standalone V1ReferralNotes resource, matching the family notes pattern
  • update DI and records wiring for the V1Referrals and V1ReferralNotes resources

@PabloDinella PabloDinella changed the title Add V1ReferralModel and refactor V1ReferralsResource to utilize it for command execution align V1ReferralsResource with cached resource pattern Apr 24, 2026
@PabloDinella PabloDinella marked this pull request as draft April 24, 2026 15:41
@PabloDinella PabloDinella marked this pull request as ready for review April 24, 2026 19:22
@PabloDinella PabloDinella merged commit fffbf8f into main Apr 24, 2026
1 check passed
@PabloDinella PabloDinella deleted the referrals-page-refactoring branch April 24, 2026 19:23
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.

1 participant