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

[Filebeat][httpjson] Adding possibility to use first_event in cursor context #23437

Merged
merged 6 commits into from
Jan 13, 2021

Conversation

P1llus
Copy link
Member

@P1llus P1llus commented Jan 12, 2021

What does this PR do?

This PR extends the context to also support first_event, similar to last_event and last_response, this is to be able to support API's that returns the newest event first instead of last.

Why is it important?

Multiple modules are blocked while missing this functionality.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Closes #23358

@elasticmachine
Copy link
Collaborator

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Jan 12, 2021
@P1llus
Copy link
Member Author

P1llus commented Jan 12, 2021

As discussed with @marc-gr , the new functionality still requires tests, as there is also no tests for last_event

@elasticmachine
Copy link
Collaborator

elasticmachine commented Jan 12, 2021

💚 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

Expand to view the summary

Build stats

  • Build Cause: Pull request #23437 updated

    • Start Time: 2021-01-13T13:59:06.979+0000
  • Duration: 47 min 31 sec

  • Commit: fcc22ed

Test stats 🧪

Test Results
Failed 0
Passed 5129
Skipped 574
Total 5703

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 5129
Skipped 574
Total 5703

@marc-gr marc-gr force-pushed the filebeat_httpjson_first_event branch from 2fd5cf1 to 111e550 Compare January 12, 2021 14:30
Copy link
Contributor

@adriansr adriansr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@marc-gr marc-gr merged commit d4e85e0 into elastic:master Jan 13, 2021
@marc-gr marc-gr added the needs_backport PR is waiting to be backported to other branches. label Jan 13, 2021
@marc-gr marc-gr added v7.12.0 and removed needs_backport PR is waiting to be backported to other branches. labels Jan 13, 2021
marc-gr pushed a commit to marc-gr/beats that referenced this pull request Jan 25, 2021
…context (elastic#23437)

* adding possibility to use first_event context in httpjson

* fixing typo

* Add transform context state test

* updating changelog

Co-authored-by: Marc Guasch <marc.guasch@elastic.co>
(cherry picked from commit d4e85e0)
marc-gr added a commit that referenced this pull request Jan 25, 2021
…context (#23437) (#23491)

* adding possibility to use first_event context in httpjson

* fixing typo

* Add transform context state test

* updating changelog

Co-authored-by: Marc Guasch <marc.guasch@elastic.co>
(cherry picked from commit d4e85e0)

Co-authored-by: Marius Iversen <marius.iversen@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding support for first_event and first_response cursors in httpjson v2
4 participants