Skip to content

Mutations via Event Handler #63

@Hye-Dev

Description

@Hye-Dev

Whenever an event occurs, it sends metadata about the resources that it is impacting.

This can be used to perform a mutate on the relevant resources, allowing for updating data live in the UI straight from the event handler.

For example, when an instance is "started", the event handler sends:

{
    "type": "operation",
    "timestamp": "2025-12-03T06:42:17.610927514Z",
    "metadata": {
        "id": "076982c9-ea66-47e8-907c-8d7237962743",
        "class": "task",
        "description": "Starting instance",
        "created_at": "2025-12-03T06:42:17.426854152Z",
        "updated_at": "2025-12-03T06:42:17.426854152Z",
        "status": "Success",
        "status_code": 200,
        "resources": {
            "instances": [
                "/1.0/instances/complete-wahoo"
            ]
        },
        "metadata": null,
        "may_cancel": false,
        "err": "",
        "location": "none"
    },
    "location": "none",
    "project": "default"
}

The resources tells us exactly what to perform a mutate on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    In Progress

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions