-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.../input/entityanalytics/provider/okta: Publish events progressively (…
…#42567) Instead of waiting for a full sync (which may take hours) to finish before publishing anything, we now publish data as it is received, so that users have immediate feedback. Incremental updates are also published more frequently: page by page instead of at the end of the pagination sequence. For the full sync, the previous behavior of adding everything to the store and publishing it at the end would theoretically de-duplicate repeated items. However, within a pagination sequence we use opaque cursors from the API that should avoid overlap between pages. Whether an item modified after an earlier page in a sequence can appear again in a later page of the same sequence depends on the API's implementation. Incremental updates begin with a previously seen timestamp value, so there is overlap between updates there, but that is unaffected by this change. For the full sync, markers for the start and end were only published if data is retrieved, but now the markers are published regardless of how much data is received. Some extra checks of configuration are done to decide whether to fetch and publish items of a given type (user or device). --------- Co-authored-by: Dan Kortschak <dan.kortschak@elastic.co>
- Loading branch information
1 parent
2b8d554
commit 0e76511
Showing
3 changed files
with
78 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters