-
Notifications
You must be signed in to change notification settings - Fork 24
Include function message trigger for NATS event #255
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
Include function message trigger for NATS event #255
Conversation
LGTM! Thanks a lot for the contribution! There are some formatting errors can you run I think we should also add SQS triggers afterward, but we can do it on our side. Happy to do a release for this. |
Hi there! Sorry for the late reply. I didn't see the message. I've run Prettier, so it should be all set! Thank you for picking this up! |
|
@cyclimse The pipeline is failing due to |
Arf, I'm really sorry. We don't have a lot of bandwidth, and have been sitting on it. We've been mostly waiting for someone from the team to test it manually. I'm "doctor" this week so I can take a look. |
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.
Sorry for the delay.
LGTM! I tested it and it worked great.
I've left some small comments but they're mostly kludges. I'm just waiting for the go ahead from the team to merge it.
Thanks a lot for the contribution.
@@ -17,6 +17,13 @@ functions: | |||
input: | |||
key: value | |||
key2: value2 | |||
- nats: | |||
name: my-nats-event |
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.
nit: I think it's possible to include this directly in the top-level message, since all triggers can be given a name:
events:
- name: my-nats-event
nats:
scw_nats_config:
...
However, it's okay like this, the API doesn't define a clear standard for what's a trigger and I don't reckon it's a big deal.
@@ -1,6 +1,6 @@ | |||
# Events |
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.
praise: thanks for updating the docs, really appreciated 🙏
@@ -0,0 +1,8370 @@ | |||
lockfileVersion: "9.0" |
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.
nit: haha I use pnpm
as well, but in this case it's better to avoid comitting the lock IMO, since this codebase is supposed to be used with npm
Summary
What's changed?
Included the possibility to configure NATS triggers.
Why do we need this?
#254
How have you tested it?
Creating and deleting a nats trigger.
Checklist
Details