-
Notifications
You must be signed in to change notification settings - Fork 52
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 ability to granualarly filter events #364
Conversation
…ties.java Co-authored-by: Sarah Witt <[email protected]>
…lConfiguration.java Co-authored-by: Sarah Witt <[email protected]>
…lConfigurationTest.java Co-authored-by: Sarah Witt <[email protected]>
…lConfiguration.java Co-authored-by: Sarah Witt <[email protected]>
…e string rather than event
… for env variable conflicts
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! I just left a few minor suggestions.
docker-compose.yaml | ||
/.vscode/ |
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.
Is there any specific reason to explicitly ignore these two files?
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.
the testing documentation recommends creating a docker-compose.yaml
file so excluding it from git will prevent unintentional commits with this file, and vscode is a common editor and is ignored in other projects
src/main/java/org/datadog/jenkins/plugins/datadog/DatadogUtilities.java
Outdated
Show resolved
Hide resolved
src/main/java/org/datadog/jenkins/plugins/datadog/listeners/DatadogComputerListener.java
Outdated
Show resolved
Hide resolved
src/main/resources/org/datadog/jenkins/plugins/datadog/DatadogGlobalConfiguration/config.jelly
Outdated
Show resolved
Hide resolved
Looks good overall! |
src/main/java/org/datadog/jenkins/plugins/datadog/events/ComputerOfflineEventImpl.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Brett Blue <[email protected]>
…g-plugin into sarah/add-event-filters
src/main/java/org/datadog/jenkins/plugins/datadog/DatadogUtilities.java
Outdated
Show resolved
Hide resolved
@NouemanKHAL Good point, we thought about this but then decided it was better to be able to check the event name before creating the event. What do you think of creating static variable for event name in the classes and that way we can still have the property tied to the class but not need to create an instance first? Also while investigating this I found a bug with the shouldSendEvent logic so I fixed that! |
…GlobalConfiguration/config.jelly Co-authored-by: NouemanKHAL <[email protected]>
@sarah-witt Great! And yes making it |
What does this PR do?
continuing #353 to support filtering events by event name in addition to filtering by category
Description of the Change
Alternate Designs
Possible Drawbacks
Verification Process
Additional Notes
Release Notes
Review checklist (to be filled by reviewers)
changelog/
label attached. If applicable it should have thebackward-incompatible
label attached.do-not-merge/
label attached.kind/
andseverity/
labels attached at least.