Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Warn about duplicated events received from GitHub via Admin Monitor #388
Warn about duplicated events received from GitHub via Admin Monitor #388
Changes from 3 commits
fc6e29c
a8bcb47
3d9c96b
0a3820c
c8f5a01
978b8b6
bfd9df8
e77068d
188be21
89ef2bd
e3d9f80
a5dd3bf
b5ab212
57f050f
c0fe850
aa61458
f311a6b
3e75413
e8fbb20
39350c7
5577148
8473753
e46168d
626e368
c65fc31
8334bda
82c5ab6
50108ef
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 39 in src/main/java/org/jenkinsci/plugins/github/admin/GitHubDuplicateEventsMonitor.java
Not covered lines
Check warning on line 131 in src/main/java/org/jenkinsci/plugins/github/webhook/subscriber/DuplicateEventsSubscriber.java
Not covered lines
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.
Does the test not work the same if you just delete all of this? Why do you need to remove other subscribers in this context?
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.
As I am sending the
push
type events, it will also get delivered DefaultPushGHEventSubscriber to thepush
event,In there an NPE is occurring due to it trying to process the event. (I have tried to fix the payload for the key shown in the log
repository
, but then it errors in other place)log
Although I could use an event type which no other existing subscriber is subscribing to, that would work.
But then what if somebody adds a subscriber to the event which I chose, so thought to remove the other subscribers..
like, changing
to
works without mock
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.
Currently I added a comment to note about this reasoning.