Skip to content

feat(persistence-mongodb): complete the drop-in replacement — add MongoWorkItemNoteStore, MongoIssueLinkStore, MongoRoutingCursorStore #253

@mdproctor

Description

@mdproctor

Problem

The persistence-mongodb/ module description says "drop-in replacement for the default JPA stores" but only implements WorkItemStore and AuditEntryStore. The remaining three SPIs fall back to JPA:

  • WorkItemNoteStore — no Mongo impl
  • IssueLinkStore (via casehub-work-issue-tracker) — no Mongo impl
  • RoutingCursorStore — no Mongo impl

A consumer that adds persistence-mongodb/ to avoid PostgreSQL still needs a datasource for these three stores, defeating the "no datasource config change" claim.

Scope

Add:

  • MongoWorkItemNoteStore @Alternative @Priority(1)
  • MongoIssueLinkStore @Alternative @Priority(1)
  • MongoRoutingCursorStore @Alternative @Priority(1)

Follow the same Document+Store pattern as MongoWorkItemStore.

Found during

Design review for #191 (persistence-memory module extraction). Flagged as out-of-scope gap.

Refs #92

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions