Skip to content

[Improvement] - Add seller.created eventย #651

@Guilherme-B

Description

@Guilherme-B

Summary
Introduce events directly tied to the Seller module - not the Requests module only - to for example, make a new seller.created event that is emitted immediately after a seller is successfully created in the createSellerWorkflow.

Problem Solved
Currently, the requests.seller.accepted event is triggered when a seller request is approved. However, this event fires before the actual seller entity is created in the database (it triggers the workflow that creates the seller). This sequence makes it impossible to perform downstream actions that require the seller entity to exist (e.g., assigning specific attributes, syncing with external systems that need the seller ID, or creating related resources) within consumers of requests.seller.accepted without adding a hacky solution.

Solution
Added a potential solution PR 626.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions