-
Notifications
You must be signed in to change notification settings - Fork 2.8k
trigger webhooks on column level changes instead of row (close #547, close #680) #550
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
Conversation
|
@karthikvt26 There are console changes required in the advanced settings of event triggers creation page. |
359490a to
1b65f54
Compare
|
Review app available at: https://hge-ci-pull-550.herokuapp.com |
|
|
|
Review app available at: https://hge-ci-pull-550.herokuapp.com |
|
Review app available at: https://hge-ci-pull-550.herokuapp.com |
|
Review app available at: https://hge-ci-pull-550.herokuapp.com |
|
@tirumaraiselvan What is the new API? |
|
Same as before with an optional {
"type": "create_event_trigger",
"args": {
"name": "testtriggerheaders",
"table": "users",
"update": {
"columns": ["username", "real_name"],
"payload": "*"
},
"insert": {
"columns": "*",
"payload": ["username"]
},
"delete": {
"columns": "*"
},
"webhook": "https://httpbin.org/post",
"headers":[
{
"name": "X-Hasura-From-Val",
"value": "myvalueNEW"
},
{
"name": "X-Hasura-From-Env",
"value_from_env": "EVENT_WEBHOOK_HEADER"
}
]
}
} |
…to column_updates # Conflicts: # server/src-lib/Hasura/RQL/DDL/Subscribe.hs
…ngine into column_updates
|
Review app available at: https://hge-ci-pull-550.herokuapp.com |
1 similar comment
|
Review app available at: https://hge-ci-pull-550.herokuapp.com |
28ad719 to
b3916a1
Compare
|
Review app available at: https://hge-ci-pull-550.herokuapp.com |
1 similar comment
|
Review app available at: https://hge-ci-pull-550.herokuapp.com |
|
Review app available at: https://hge-ci-pull-550.herokuapp.com |
|
Review app available at: https://hge-ci-pull-550.herokuapp.com |
|
Review app available at: https://hge-ci-pull-550.herokuapp.com |
|
Review app available at: https://hge-ci-pull-550.herokuapp.com |
|
Review app available at: https://hge-ci-pull-550.herokuapp.com |
|
Review app available at: https://hge-ci-pull-550.herokuapp.com |
| getColInfos cols allCols | ||
| fromMaybePayload :: Maybe SubscribeColumns -> SubscribeColumns | ||
| fromMaybePayload (Just sc) = sc | ||
| fromMaybePayload Nothing = SubCStar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use fromMaybe from Data.Maybe.
|
Review app available at: https://hge-ci-pull-550.herokuapp.com |
|
Review app available at: https://hge-ci-pull-550.herokuapp.com |
|
Review app https://hge-ci-pull-550.herokuapp.com is deleted |
V3_GIT_ORIGIN_REV_ID: cc078462ec7713139875b0991e86f670d81b7ae6
Description
We want to give users ability to listen on events only when certain columns change for a record. Currently, we send events when the record changes even if certain columns did not change.
What component does this PR affect?
Requires changes from other components? If yes, please mark the components:
Related Issue
#547
Solution and Design
Listen on specified columns but send entire record as payload.
Type
Checklist: