Skip to content
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

[Cloudnative] Update null checks and if checks in the rename processor #7956

Merged
merged 6 commits into from
Sep 26, 2023

Conversation

ishleenk17
Copy link
Contributor

@ishleenk17 ishleenk17 commented Sep 25, 2023

  • Bug

What does this PR do?

This PR adds the if check for event.original and the ignore_missing check for the renaming of message to event.original
The packages where the changes are made are as below:

  • istio
  • nats
  • nginx_ingress_controller
  • stan

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.

Testing

After adding the check if event.original is null, it takes value of message as shown below:
Screenshot 2023-09-26 at 3 20 28 PM

If event.original is present. For testing it was set in the pipeline itself as below:
Screenshot 2023-09-26 at 3 20 39 PM

As a result the event.original has the original value and not the message value.
Screenshot 2023-09-26 at 3 19 48 PM

Related issues

@ishleenk17 ishleenk17 requested a review from a team September 25, 2023 08:44
@ishleenk17 ishleenk17 self-assigned this Sep 25, 2023
@ishleenk17 ishleenk17 changed the title Cloudnative event original [Cloudnative] Update null checks and if checks in the rename processor Sep 25, 2023
@elasticmachine
Copy link

elasticmachine commented Sep 25, 2023

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2023-09-25T11:39:30.158+0000

  • Duration: 31 min 6 sec

Test stats 🧪

Test Results
Failed 0
Passed 123
Skipped 2
Total 125

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@elasticmachine
Copy link

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (5/5) 💚
Files 100.0% (7/7) 💚
Classes 100.0% (7/7) 💚
Methods 95.192% (99/104) 👍 3.526
Lines 95.818% (1054/1100) 👎 -4.182
Conditionals 100.0% (0/0) 💚

@ishleenk17 ishleenk17 marked this pull request as ready for review September 25, 2023 09:22
@ishleenk17 ishleenk17 requested a review from a team as a code owner September 25, 2023 09:22
packages/istio/changelog.yml Outdated Show resolved Hide resolved
@gizas
Copy link
Contributor

gizas commented Sep 25, 2023

I would expect some test evidence like a grok test or sth that this change worked. Apart from that is ok.

@ishleenk17
Copy link
Contributor Author

I would expect some test evidence like a grok test or sth that this change worked. Apart from that is ok.

I have added the testing to the PR description.

@ishleenk17 ishleenk17 merged commit 69f733a into elastic:main Sep 26, 2023
4 checks passed
@elasticmachine
Copy link

Package istio - 0.4.2 containing this change is available at https://epr.elastic.co/search?package=istio

@elasticmachine
Copy link

Package nats - 1.3.2 containing this change is available at https://epr.elastic.co/search?package=nats

@elasticmachine
Copy link

Package nginx_ingress_controller - 1.7.3 containing this change is available at https://epr.elastic.co/search?package=nginx_ingress_controller

@elasticmachine
Copy link

Package stan - 1.3.2 containing this change is available at https://epr.elastic.co/search?package=stan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants