Skip to content

OnUpsertSearchAttributes and OnUpsertMemo unclear about mocking ability #1033

Open
@cretz

Description

@cretz

Expected Behavior

OnUpsertSearchAttributes and OnUpsertMemo are just called when their methods are called. They were not developed to return values or return errors unlike many of our other mocks. We need to either:

  • Properly document that these are essentially "event listeners" and they cannot affect behavior.
  • Have these calls actually mock
    • Probably a bad idea, backwards incompat to have it override the default behavior of adding to the attr maps
    • But we could at least call this first and let the mocker return an error that is returned then to the workflow

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions