Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Choose columns" in Event Trigger Not working properly #8024

Open
ash0080 opened this issue Jan 13, 2022 · 0 comments
Open

"Choose columns" in Event Trigger Not working properly #8024

ash0080 opened this issue Jan 13, 2022 · 0 comments
Labels
a/eventing/data-triggers k/bug Something isn't working

Comments

@ash0080
Copy link

ash0080 commented Jan 13, 2022

Update

Manually specify the request body {{$body}} works
This should be a console's bug, not backend

update update
Still not right, although the change can send, but send all columns, although in the console preview of the request body is correct, but the send is not
But the trigger is valid, the unselected column will not trigger the event

Version Information

V 2.1.1

Reproduction

add a event trigger-> Trigger Operations -> select some columns ->save
then trigger a event -> maybe ok / maybe not

{
    "payload": {
        "event": {
            "session_variables": {
                "x-hasura-role": "admin"
            },
            "op": "UPDATE",
            "data": {
                "old": {
                    "bio": "test1",
                    "email": null,
                    "disabled": false,
                    "last_seen": null,
                    "locale": "zh-cn",
                    "updated_at": "2022-01-13T18:00:44.450413+00:00",
                    "created_at": "2022-01-10T16:04:46.826666+00:00",
                    "id": "a3320eb8-e65e-438b-a566-5fc302d7fbc7",
                    "avatar_url": "",
                    "nickname": ""
                },
                "new": {
                    "bio": "test2",
                    "email": null,
                    "disabled": false,
                    "last_seen": null,
                    "locale": "zh-cn",
                    "updated_at": "2022-01-13T18:01:20.611094+00:00",
                    "created_at": "2022-01-10T16:04:46.826666+00:00",
                    "id": "a3320eb8-e65e-438b-a566-5fc302d7fbc7",
                    "avatar_url": "",
                    "nickname": ""
                }
            },
            "trace_context": {
                "trace_id": "699531fe5a20c70d",
                "span_id": "b99e10c77efe57e8"
            }
        },
        "created_at": "2022-01-13T18:01:20.611094Z",
        "id": "451d9a0b-1247-4a18-acbb-80852529cd1c",
        "delivery_info": {
            "max_retries": 0,
            "current_retry": 0
        },
        "trigger": {
            "name": "async_user_profile"
        },
        "table": {
            "schema": "auth",
            "name": "user"
        }
    },
    "headers": [
        {
            "value": "application/json",
            "name": "Content-Type"
        },
        {
            "value": "hasura-graphql-engine/v2.1.1",
            "name": "User-Agent"
        }
    ],
    "version": "2"
}

change selection -> save again
then trigger a event -> the event body is gone

{
    "payload": {
        "table": {
            "schema": "auth",
            "name": "user"
        }
    },
    "headers": [
        {
            "value": "application/json",
            "name": "Content-Type"
        },
        {
            "value": "hasura-graphql-engine/v2.1.1",
            "name": "User-Agent"
        }
    ],
    "version": "2"
}
@ash0080 ash0080 added the k/bug Something isn't working label Jan 13, 2022
@ash0080 ash0080 changed the title Choose columns seems not "Choose columns" in Event Trigger Not working properly Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a/eventing/data-triggers k/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants