-
Notifications
You must be signed in to change notification settings - Fork 990
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
Fixes #36104 - Distinguish host events #9780
Fixes #36104 - Distinguish host events #9780
Conversation
Issues: #36104 |
Added a second commit, which removes new |
I like this, it is nice and clean and seems to work well. However, shouldn't there be an event that would fire once uploaded facts get processed? |
@adamruzicka, that event can cause spammed I agree that with the last change here, users can no longer receive events if a host was updated by facts upload, but at the same time, if there will be a request, we could add either a custom Other than that, I'd personally prefer the initial fix (without second commit), but I can be missing something, so I'd like to see what direction here we would all like to take, @adamruzicka, @ares. |
I had something like that in my mind. Spamming events is definitely wrong, but not firing anything when facts get uploaded doesn't feel right either |
a2f77d8
to
edca111
Compare
@adamruzicka, I've added It seems we'd need to check how webhooks work for unmanaged and discovered hosts (are there any other?). |
edca111
to
fc4e2d3
Compare
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.
Works well, one inline comment
fc4e2d3
to
f421788
Compare
Thanks, @adamruzicka, updated. AFAIK it could throw |
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.
Looks good to me, let's get this in
Katello failures seem unrelated |
Yeap: Katello/katello#10701 [test katello] |
Could you please squash the commits before we merge? |
f421788
to
13698c3
Compare
Sure, done. |
Test failures are unrelated and are being resolved in another PR. Let's get this in |
Thank you @ofedoren ! |
Testable with
foreman_webhooks
. Adds new events to better distinguish between host events, whether it was triggered by user or via some automation.@adamruzicka, what do you think? This is the simplest solution I could find and it seems to solve the issue...