Skip to content

Conversation

@efd6
Copy link
Contributor

@efd6 efd6 commented Sep 18, 2025

Proposed commit message

o365: fix handling of error conditions when requesting work continuation

CEL type(o.f) == T does not work the same way as painless o.f instanceof T
if f is not in o. It is necessary to check for existence first.

In this case, this can be done either by directly checking for the existence
of events in state, or because of an invariant in the program, by the absence
of error in state. The latter is chosen for clarity and to ensure that the
invariant is kept.

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.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Screenshots

@efd6 efd6 self-assigned this Sep 18, 2025
@efd6 efd6 added Integration:o365 Microsoft Office 365 bugfix Pull request that fixes a bug issue Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations] labels Sep 18, 2025
CEL type(o.f) == T does not work the same way as painless o.f instanceof T
if f is not in o. It is necessary to check for existence first.

In this case, this can be done either by directly checking for the existence
of events in state, or because of an invariant in the program, by the absence
of error in state. The latter is chosen for clarity and to ensure that the
invariant is kept.
@elastic-vault-github-plugin-prod

🚀 Benchmarks report

To see the full report comment with /test benchmark fullreport

@elasticmachine
Copy link

💚 Build Succeeded

cc @efd6

@elastic-sonarqube
Copy link

@efd6 efd6 marked this pull request as ready for review September 18, 2025 04:22
@efd6 efd6 requested a review from a team as a code owner September 18, 2025 04:22
@elasticmachine
Copy link

Pinging @elastic/security-service-integrations (Team:Security-Service Integrations)

Copy link
Contributor

@ShourieG ShourieG left a comment

Choose a reason for hiding this comment

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

LGTM

@efd6 efd6 merged commit 8301cba into elastic:main Sep 18, 2025
9 checks passed
@elastic-vault-github-plugin-prod

Package o365 - 2.29.1 containing this change is available at https://epr.elastic.co/package/o365/2.29.1/

tehbooom pushed a commit to tehbooom/integrations that referenced this pull request Nov 19, 2025
…ion (elastic#15380)

CEL type(o.f) == T does not work the same way as painless o.f instanceof T
if f is not in o. It is necessary to check for existence first.

In this case, this can be done either by directly checking for the existence
of events in state, or because of an invariant in the program, by the absence
of error in state. The latter is chosen for clarity and to ensure that the
invariant is kept.
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:o365 Microsoft Office 365 Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants