hasura / hasura/graphql-engine
"Choose columns" in Event Trigger Not working properly
- Dominant language
- TypeScript
- Stars
- 32.1k
- Forks
- 3k
- PR merge metrics
- PR metrics pending
Description
### 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"
}
```
Contributor guide
Assessment
This issue has not been assessed yet.