Skip to content

Add ability to granualarly filter events #364

Merged
sarah-witt merged 31 commits into
masterfrom
sarah/add-event-filters
Nov 8, 2023
Merged

Add ability to granualarly filter events #364
sarah-witt merged 31 commits into
masterfrom
sarah/add-event-filters

Conversation

@sarah-witt

Copy link
Copy Markdown
Collaborator

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)

  • Feature or bug fix MUST have appropriate tests (unit, integration, etc...)
  • PR title must be written as a CHANGELOG entry (see why)
  • Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
  • PR must have one changelog/ label attached. If applicable it should have the backward-incompatible label attached.
  • PR should not have do-not-merge/ label attached.
  • If Applicable, issue must have kind/ and severity/ labels attached at least.

dawitgirm and others added 21 commits June 28, 2023 14:55
@github-actions github-actions Bot added the documentation Documentation related changes label Sep 8, 2023
@sarah-witt
sarah-witt marked this pull request as ready for review September 8, 2023 14:16

@brett0000FF brett0000FF left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread .gitignore
Comment on lines +11 to +12
docker-compose.yaml
/.vscode/

Copy link
Copy Markdown
Collaborator

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?

Copy link
Copy Markdown
Collaborator Author

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

Comment thread src/main/java/org/datadog/jenkins/plugins/datadog/DatadogUtilities.java Outdated
@NouemanKHAL

Copy link
Copy Markdown
Collaborator

Looks good overall!
small nit: it would be good to have add a sort of eventName attribute to the classes in order to have something like DatadogUtilities.shouldSendEvent(this.eventName).

Comment thread src/main/java/org/datadog/jenkins/plugins/datadog/DatadogUtilities.java Outdated
@sarah-witt

sarah-witt commented Sep 8, 2023

Copy link
Copy Markdown
Collaborator Author

small nit: it would be good to have add a sort of eventName attribute to the classes in order to have something like DatadogUtilities.shouldSendEvent(this.eventName).

@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]>
@NouemanKHAL

Copy link
Copy Markdown
Collaborator

@sarah-witt Great! And yes making it static would be perfect 👌

@sarah-witt
sarah-witt merged commit 77642c6 into master Nov 8, 2023
@sarah-witt
sarah-witt deleted the sarah/add-event-filters branch November 8, 2023 15:07
@sarah-witt sarah-witt added the changelog/Added Added features results into a minor version bump label Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/Added Added features results into a minor version bump documentation Documentation related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants