-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
add action-style templating of webhook URL for event trigger and remote schemas #2483
Comments
TBD:
Do we allow
|
I would very much appreciate this feature! Currently I'm adding a new env variable for every single event. |
+1 This would be an excellent addition for those heavily leaning on events and solve some of the whole metadata swaps people have been talking about to get around env var problems with migrations |
Alternative: The payload includes if (payload.trigger.name === "user_added") {
// ...
} else if (payload.trigger.name === "user_removed") {
// ...
} else {
throw Error("unexpected event");
} |
I would expect the webhook url to behave like the action's http handler. eg: |
Yes, making it consistent is definitely something that should be done. The Changing title to reflect this feature |
@tirumaraiselvan is your last comments saying that this already exists for the When I tested it on v1.2.2 it didn't seem to work for events. |
@amille14 This is not available now. Its a planned feature. |
similar issue: #5090 |
@gunar That's a great workaround! Should be easy to migrate after this feature's available |
Hello @rikinsk , Amazing method for DX. Please update ASAP. Thanks. |
Would love to have this feature!! Using remote schemas and events extensively. |
What's the status on this issue? I see the pull request but I am unable to use handlebars to set the URLs still |
@smblee I think this feature release in the next version. |
Is this feature released yet? |
@tirumaraiselvan I'm unable to use this even though you supposedly released it in v1.3.3 -- am I missing something? |
@adventurini @tirumaraiselvan It's working for me on 1.3.3 |
Thanks for including this in 1.3.3 @tirumaraiselvan I think that both Hasura UI and Docs should be updated to reflect this change. Here is how you use it @adventurini @picosam |
Ohhhh so we should use URL. Sorry, I kept using environment variables! |
Yes, I was doing the same thing @picosam. Also, docs should be updated for the current language of:
The project root directory is confusing. It should state the hasura generated root directory -- I also understand that many people will understand the difference and what the docs meant, but it is still not clear. |
Hey folks, is there an example of the
|
So far, when creating an event trigger and select a webhook url, we have the option to use environment variables but we cannot use string templates yet. Add support to be able to use string templates.
The text was updated successfully, but these errors were encountered: