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

[integrations][Confluence] - Fixed timestamp handling in httpjson cursor #7647

Merged
merged 3 commits into from
Sep 4, 2023

Conversation

ShourieG
Copy link
Contributor

@ShourieG ShourieG commented Sep 4, 2023

Type of change

  • Bug

What does this PR do?

The .first_event.CreationDate field was containing invalid unix epoch timestamp values due to the response value of CreationDate being interpreted as a float64. This caused successive pagination request failures. To address this, inserted a small clause to cast it to an int before storing it in the cursor.

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.

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

This is related to an SDH

Screenshots

@ShourieG ShourieG requested a review from a team as a code owner September 4, 2023 10:21
@elasticmachine
Copy link

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

@ShourieG ShourieG added the bugfix Pull request that fixes a bug issue label Sep 4, 2023
Copy link
Contributor

@kcreddy kcreddy left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏼
Did you validate it manually? If not, maybe we could add a system test.

@ShourieG
Copy link
Contributor Author

ShourieG commented Sep 4, 2023

LGTM 👍🏼 Did you validate it manually? If not, maybe we could add a system test.

@kcreddy tested it manually by simulating an exact server response. The sample response logs were provided by the client.

@elasticmachine
Copy link

elasticmachine commented Sep 4, 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-04T10:22:52.490+0000

  • Duration: 15 min 7 sec

Test stats 🧪

Test Results
Failed 0
Passed 11
Skipped 0
Total 11

🤖 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% (1/1) 💚
Files 100.0% (3/3) 💚 3.659
Classes 100.0% (3/3) 💚 3.659
Methods 100.0% (24/24) 💚 7.979
Lines 98.789% (408/413) 👍 6.734
Conditionals 100.0% (0/0) 💚

1 similar comment
@elasticmachine
Copy link

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (1/1) 💚
Files 100.0% (3/3) 💚 3.659
Classes 100.0% (3/3) 💚 3.659
Methods 100.0% (24/24) 💚 7.979
Lines 98.789% (408/413) 👍 6.734
Conditionals 100.0% (0/0) 💚

@ShourieG ShourieG merged commit fb02fd8 into elastic:main Sep 4, 2023
4 checks passed
@ShourieG ShourieG deleted the bugfix/confluence branch September 4, 2023 10:42
@elasticmachine
Copy link

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

gizas pushed a commit that referenced this pull request Sep 5, 2023
…sor (#7647)

* bugfix for confluence package timestamp handling

* updated changelog
@andrewkroh andrewkroh added the Integration:atlassian_confluence Atlassian Confluence label Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Pull request that fixes a bug issue Integration:atlassian_confluence Atlassian Confluence
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants