-
Notifications
You must be signed in to change notification settings - Fork 441
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
zoom: clean-up #9077
zoom: clean-up #9077
Conversation
* remove redundant quotes * make long contains lists render with a reasonable width * use direct comparison when lists have only a single element * ensure that null-safe field access is uniformly applied * ensure that null-safe method calls are correctly applied
💚 Build Succeeded
cc @efd6 |
|
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
SonarQube is missing coverage. For example, with this diff --git a/packages/zoom/data_stream/webhook/elasticsearch/ingest_pipeline/chat_channel.yml b/packages/zoom/data_stream/webhook/elasticsearch/ingest_pipeline/chat_channel.yml
index 2e54d61c7..0f4cebd47 100644
--- a/packages/zoom/data_stream/webhook/elasticsearch/ingest_pipeline/chat_channel.yml
+++ b/packages/zoom/data_stream/webhook/elasticsearch/ingest_pipeline/chat_channel.yml
@@ -1,6 +1,8 @@
---
description: Pipeline for parsing Zoom chat_channel webhooks
processors:
+- fail:
+ message: sonarqube says we don't get here
- append:
field: event.type
value: user I see this
But according to the report, this is not possible; it claims zero coverage on that pipeline by inference. |
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.
Proposed commit message is good.
Everything in the diff is good.
SonarQube results don't look meaningful.
I looked into the coverage issue. First I repeated something like the "fail at the start of the pipeline" example above, but generating coverage reports locally with In this case I added: --- a/packages/zoom/data_stream/webhook/elasticsearch/ingest_pipeline/chat_channel.yml
+++ b/packages/zoom/data_stream/webhook/elasticsearch/ingest_pipeline/chat_channel.yml
@@ -1,6 +1,9 @@
---
description: Pipeline for parsing Zoom chat_channel webhooks
processors:
+- fail:
+ message: do we get here?
+ if: "false"
- append:
field: event.type
value: user With that in place I ran:
Then I changed the Here are the results side-by-side, and the relevant pipeline: When the condition on the Then I went through the The merge was okay, but for pipeline tests the coverage files showed only The CI job uses the
It produced the same results as CI: coverage was only registered for I filed the issue elastic/elastic-package#1666. |
Package zoom - 1.18.1 containing this change is available at https://epr.elastic.co/search?package=zoom |
Proposed commit message
Checklist
changelog.yml
file.Author's Checklist
How to test this PR locally
Related issues
null
handling inif
conditions and elsewhere #8646Screenshots