Skip to content

NOJIRA-Remove-legacy-contact-interaction-code - #1138

Merged
pchero merged 2 commits into
mainfrom
NOJIRA-remove-legacy-contact-interaction-code
Jul 24, 2026
Merged

NOJIRA-Remove-legacy-contact-interaction-code#1138
pchero merged 2 commits into
mainfrom
NOJIRA-remove-legacy-contact-interaction-code

Conversation

@pchero

@pchero pchero commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Follow-up cleanup for PR #1137 (contact_interactions -> peer_events retirement, design doc bin-contact-manager/docs/plans/2026-07-25-contact-interaction-retire-to-peer-events-design.md). That PR cleaned the handler/RPC/subscription layers; this removes what design doc §2.4/§3.6 explicitly deferred to a follow-up -- the now-unreachable models/dbhandler layer and the underlying MySQL tables.

  • bin-contact-manager: delete models/interaction, models/resolution packages entirely
  • bin-contact-manager: delete pkg/dbhandler/interaction.go (Create/Get/List/ListByOwnershipPeriods/ListByIDs/ListUnresolved) and resolution.go (Create/CreateTx/Delete/ListByInteraction/ListByContact)
  • bin-contact-manager: delete pkg/dbhandler/address_ownership_read.go's OwnershipPeriodsListByContactID/MissingPeriodOwnedAddresses -- existed solely to support the old InteractionList's ownership-period matching; the write path (OwnershipPeriodsLockAndResolveTx, used by live Address CRUD) is untouched
  • bin-contact-manager: remove the 9 corresponding DBHandler interface methods, regenerate mocks
  • bin-contact-manager: rewrite pkg/casehandler/casenote_isolation_test.go for the post-PR-NOJIRA-Retire-contact-interactions-proxy-via-peer-events #1137 world -- InteractionList no longer queries any local table, so the isolation guarantee is now structural (CaseNoteCreate must never call any RequestHandler RPC, proven via gomock strict mode on a RequestHandler mock with zero EXPECT() calls configured)
  • bin-contact-manager: drop the SQLite contact_interactions/contact_resolutions test-fixture tables from scripts/database_scripts_test/contacts.sql
  • bin-dbscheme-manager: add migration d8b04ef3ddd0 dropping the contact_interactions/contact_resolutions MySQL tables in production. contact_address_ownership_periods is explicitly NOT touched -- still live, used by Address CRUD independent of Interaction

pchero added 2 commits July 25, 2026 07:23
Follow-up cleanup for PR #1137 (contact_interactions -> peer_events
retirement). The handler/RPC/subscription layers were already cleaned
up there; this removes what design doc §2.4/§3.6 explicitly deferred
to a follow-up: the now-unreachable models and dbhandler layer, plus
the underlying MySQL tables.

- bin-contact-manager: delete models/interaction, models/resolution
  packages entirely
- bin-contact-manager: delete pkg/dbhandler/interaction.go (Create/Get/
  List/ListByOwnershipPeriods/ListByIDs/ListUnresolved) and
  resolution.go (Create/CreateTx/Delete/ListByInteraction/ListByContact)
- bin-contact-manager: delete pkg/dbhandler/address_ownership_read.go's
  OwnershipPeriodsListByContactID/MissingPeriodOwnedAddresses -- these
  existed solely to support the old InteractionList's ownership-period
  matching (per their own doc comments); the write path
  (OwnershipPeriodsLockAndResolveTx, used by live Address CRUD) is
  untouched
- bin-contact-manager: remove the 9 corresponding DBHandler interface
  methods, regenerate mocks
- bin-contact-manager: rewrite pkg/casehandler/casenote_isolation_test.go
  for the post-PR-#1137 world -- InteractionList no longer queries any
  local table, so the isolation guarantee is now structural (CaseNoteCreate
  must never call any RequestHandler RPC, proven via gomock strict mode
  on a RequestHandler mock with zero EXPECT() calls configured)
- bin-contact-manager: drop the SQLite contact_interactions/
  contact_resolutions test-fixture tables from
  scripts/database_scripts_test/contacts.sql
- bin-dbscheme-manager: add migration d8b04ef3ddd0 dropping the
  contact_interactions/contact_resolutions MySQL tables in production.
  contact_address_ownership_periods is explicitly NOT touched -- it is
  still live, used by Address CRUD independent of Interaction
Round 2 PR review finding.

- bin-dbscheme-manager: contact_interactions/contact_resolutions rows
  removed from docs/schema-ownership.md, matching precedent set by PR
  #1089 (NOJIRA-remove-dead-legacy-contact-tables) for keeping this
  doc in sync with table drops
@pchero
pchero merged commit bb902fe into main Jul 24, 2026
3 of 4 checks passed
@pchero
pchero deleted the NOJIRA-remove-legacy-contact-interaction-code branch July 24, 2026 22:38
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