Skip to content

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

Merged
ShourieG merged 3 commits into
elastic:mainfrom
ShourieG:bugfix/confluence
Sep 4, 2023
Merged

[integrations][Confluence] - Fixed timestamp handling in httpjson cursor#7647
ShourieG merged 3 commits into
elastic:mainfrom
ShourieG:bugfix/confluence

Conversation

@ShourieG

@ShourieG ShourieG commented Sep 4, 2023

Copy link
Copy Markdown
Contributor

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
Copy Markdown

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

@kcreddy kcreddy 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.

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

@ShourieG

ShourieG commented Sep 4, 2023

Copy link
Copy Markdown
Contributor Author

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

elasticmachine commented Sep 4, 2023

Copy link
Copy Markdown

💚 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
Copy Markdown

🌐 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
Copy Markdown

🌐 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
@ShourieG
ShourieG deleted the bugfix/confluence branch September 4, 2023 10:42
@elasticmachine

Copy link
Copy Markdown

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

@andrewkroh andrewkroh added the Integration:atlassian_confluence Atlassian Confluence label Jul 22, 2024
orestisfl pushed a commit to orestisfl/integrations that referenced this pull request May 15, 2026
…sor (elastic#7647)

* bugfix for confluence package timestamp handling

* updated changelog
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

4 participants