Skip to content

Filer DRS document record update — publish to drs update topic #34401

Closed

Description

@mruff-aeq

From bcgov/lear#4618 review: filer calls update_document_records after the filing transaction commits — sync PATCH through the API, failure only logged, no retry. Same weakness as namex consume and business profile update_entity.

Two options raised in the review thread:

  • A: publish message to a DRS queue and process there (like publish_drs_create_message, new topic e.g. doc-api-app-update-record)
  • B: make post-transaction actions retryable sub-tasks of business-filer

Option A - Selected Option

Verify which path, define what work is needed, then implement. Changes may span legal-api and queue services.

Activity

  1. added
    Entities Team
    on Jul 28, 2026
  2. changed the title [-]Move filer DRS document record update to pub/sub[/-] [+]Filer DRS document record update — no retry after transaction, decide fix[/+] on Jul 28, 2026
  3. mruff-aeq commented on Jul 28, 2026

    @mruff-aeq
    CollaboratorAuthor

    Early notes: filer worker is pub/sub push — nack replays the whole committed filing, so B needs persisted sub-task state and idempotent re-entry across all post-commit actions. A is smaller but publish_drs_create_message is not copy-paste (hardcodes documentClass CORP, per-filing not per-document, no filing date in payload) and needs a payload contract + consumer on the DRS side.

  4. kialj876 commented on Jul 28, 2026

    @kialj876
    Collaborator

    Dougs comment:
    'I will set up a new topic named doc-api-app-update-record. The filer can then switch to publishing on this topic in a separate. PR'

    I think that simplifies our side we just need to coordinate with him on what payload is expected for that topic

  5. meawong commented on Jul 28, 2026

    @meawong
    Collaborator
  6. changed the title [-]Filer DRS document record update — no retry after transaction, decide fix[/-] [+]Filer DRS document record update — publish to drs update topic[/+] on Jul 29, 2026
  7. self-assigned this
    on Jul 31, 2026
  8. self-assigned this
    on Aug 11, 2026
  9. gunanagar commented on Aug 12, 2026

    @gunanagar
    Collaborator

    Tested both DRS UI and Business dashboard. Looks good

    Screenshot 2026-08-12 at 12.26.55 PM.png

    Screenshot 2026-08-12 at 12.26.49 PM.png

    Screenshot 2026-08-12 at 12.22.26 PM.png

    Screenshot 2026-08-12 at 12.22.19 PM.png

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

Metadata

Metadata

Labels

Entities Team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions