Skip to content

[9.1] [Synthetics] Perform clean up delete in batches (#245775)#248465

Merged
shahzad31 merged 3 commits intoelastic:9.1from
shahzad31:backport/9.1/pr-245775
Jan 12, 2026
Merged

[9.1] [Synthetics] Perform clean up delete in batches (#245775)#248465
shahzad31 merged 3 commits intoelastic:9.1from
shahzad31:backport/9.1/pr-245775

Conversation

@shahzad31
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.1:

Questions ?

Please refer to the Backport tool documentation

## Summary

Refactor code to Perform clean up delete in batches, unit tests have
been added for the changes.

Instead of calling on all found package policies to delete, do a for
loop in batches
```
 await fleet.packagePolicyService.delete(soClient, esClient, batch, {
      force: true,
      spaceIds: ['*'],
    });
```

(cherry picked from commit 287b929)
@shahzad31 shahzad31 added the backport This PR is a backport of another PR label Jan 9, 2026
@shahzad31 shahzad31 enabled auto-merge (squash) January 9, 2026 14:40
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

@github-actions github-actions bot added the author:actionable-obs PRs authored by the actionable obs team label Jan 9, 2026
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

Failed CI Steps

Metrics [docs]

‼️ ERROR: no builds found for mergeBase sha [c444c5c]

History

@shahzad31 shahzad31 merged commit 87d07ea into elastic:9.1 Jan 12, 2026
13 checks passed
@shahzad31 shahzad31 deleted the backport/9.1/pr-245775 branch January 12, 2026 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author:actionable-obs PRs authored by the actionable obs team backport This PR is a backport of another PR Team:obs-ux-management

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants