-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[eem] add option to delete indices when deleting definition #188116
Conversation
Pinging @elastic/obs-knowledge-team (Team:obs-knowledge) |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
@@ -25,7 +24,7 @@ export function checkEntityDiscoveryEnabledRoute<T extends RequestHandlerContext | |||
server, | |||
logger, | |||
}: SetupRouteOptions<T>) { | |||
router.get<unknown, unknown, ManagedEntityEnabledResponse>( |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
validate: { | ||
query: schema.object({ | ||
deleteData: schema.maybe(schema.boolean({ defaultValue: false })), | ||
}), | ||
}, |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, logged #188171
query: schema.object({ | ||
deleteData: schema.maybe(schema.boolean({ defaultValue: false })), | ||
}), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zod-ify please
💚 Build Succeeded
Metrics [docs]
History
cc @klacabane |
Add option to delete indices when deleting definition