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

[eem] add option to delete indices when deleting definition #188116

Merged

Conversation

klacabane
Copy link
Contributor

Add option to delete indices when deleting definition

@klacabane klacabane added release_note:skip Skip the PR/issue when compiling release notes Team:obs-knowledge Observability Experience Knowledge team Feature:EEM Elastic Entity Model labels Jul 11, 2024
@klacabane klacabane self-assigned this Jul 11, 2024
@klacabane klacabane requested a review from a team as a code owner July 11, 2024 14:58
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-knowledge-team (Team:obs-knowledge)

@botelastic botelastic bot added the ci:project-deploy-observability Create an Observability project label Jul 11, 2024
@obltmachine
Copy link

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@klacabane klacabane marked this pull request as draft July 11, 2024 15:02
@@ -25,7 +24,7 @@ export function checkEntityDiscoveryEnabledRoute<T extends RequestHandlerContext
server,
logger,
}: SetupRouteOptions<T>) {
router.get<unknown, unknown, ManagedEntityEnabledResponse>(
Copy link
Contributor Author

@klacabane klacabane Jul 11, 2024

Choose a reason for hiding this comment

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

wrongly assumed this parameter to be the response type instead of the body type

@klacabane klacabane marked this pull request as ready for review July 11, 2024 15:37
Copy link
Contributor

@miltonhultgren miltonhultgren left a comment

Choose a reason for hiding this comment

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

🚀

Comment on lines +29 to +33
validate: {
query: schema.object({
deleteData: schema.maybe(schema.boolean({ defaultValue: false })),
}),
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we convert this to zod instead? Since that's what we're using for the other endpoints

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, logged #188171

Comment on lines +29 to +31
query: schema.object({
deleteData: schema.maybe(schema.boolean({ defaultValue: false })),
}),
Copy link
Contributor

Choose a reason for hiding this comment

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

zod-ify please

@elasticmachine
Copy link
Contributor

elasticmachine commented Jul 12, 2024

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

cc @klacabane

@klacabane klacabane merged commit c861f63 into elastic:main Jul 12, 2024
22 checks passed
@kibanamachine kibanamachine added v8.16.0 backport:skip This commit does not require backporting labels Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting ci:project-deploy-observability Create an Observability project Feature:EEM Elastic Entity Model release_note:skip Skip the PR/issue when compiling release notes Team:obs-knowledge Observability Experience Knowledge team v8.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants