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

[Fleet] Fix reset one preconfiguration API #122963

Merged

Conversation

nchaulet
Copy link
Member

Summary

Follow up on #122467

When doing some test on the reset preconfiguration APIs I discovered that I miss a few things and the reset one preconfigured API was not working as expected (resetting all the preconfigured policies instead of one)

That PR address that and add missing tests that would have catch that.

@nchaulet nchaulet added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team auto-backport Deprecated - use backport:version if exact versions are needed v8.1.0 v7.17.0 labels Jan 13, 2022
@nchaulet nchaulet requested a review from kpollich January 13, 2022 16:28
@nchaulet nchaulet requested a review from a team as a code owner January 13, 2022 16:28
@nchaulet nchaulet self-assigned this Jan 13, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @nchaulet

@nchaulet nchaulet merged commit cfd7cc3 into elastic:main Jan 13, 2022
@nchaulet nchaulet deleted the fix-fleet-reset-one-preconfigured-api branch January 13, 2022 19:40
@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.0 Backport failed because of merge conflicts
7.17 Backport failed because of merge conflicts

How to fix

Re-run the backport manually:

node scripts/backport --pr 122963

Questions ?

Please refer to the Backport tool documentation

nchaulet added a commit to nchaulet/kibana that referenced this pull request Jan 13, 2022
(cherry picked from commit cfd7cc3)

# Conflicts:
#	x-pack/plugins/fleet/server/routes/preconfiguration/handler.ts
#	x-pack/plugins/fleet/server/routes/preconfiguration/index.ts
nchaulet added a commit to nchaulet/kibana that referenced this pull request Jan 13, 2022
(cherry picked from commit cfd7cc3)

# Conflicts:
#	x-pack/plugins/fleet/server/routes/preconfiguration/handler.ts
#	x-pack/plugins/fleet/server/routes/preconfiguration/index.ts
nchaulet added a commit that referenced this pull request Jan 13, 2022
* [Fleet] Fix reset one preconfiguration API (#122963)

(cherry picked from commit cfd7cc3)

# Conflicts:
#	x-pack/plugins/fleet/server/routes/preconfiguration/handler.ts
#	x-pack/plugins/fleet/server/routes/preconfiguration/index.ts

* fix linting
nchaulet added a commit that referenced this pull request Jan 13, 2022
* [Fleet] Fix reset one preconfiguration API (#122963)

(cherry picked from commit cfd7cc3)

# Conflicts:
#	x-pack/plugins/fleet/server/routes/preconfiguration/handler.ts
#	x-pack/plugins/fleet/server/routes/preconfiguration/index.ts

* fix linting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v7.17.0 v8.0.0 v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants