-
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
[Synthetics] Delete monitor API via id param !! #190210
Conversation
/ci |
A documentation preview will be available soon. Request a new doc build by commenting
If your PR continues to fail for an unknown reason, the doc build pipeline may be broken. Elastic employees can check the pipeline status here. |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
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.
Could you please add a single api integration test for single deletion?
@@ -200,7 +200,7 @@ export function useMonitorListColumns({ | |||
}, | |||
{ | |||
'data-test-subj': 'syntheticsMonitorCopyAction', | |||
isPrimary: true, | |||
isPrimary: 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.
What is this?
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.
it's about showing what is shown on management list action, delete action wasn't shown on hover !!
This make Clone action shown on click and delete on hover.
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
|
||
const result: Array<{ id: string; deleted: boolean; error?: string }> = []; | ||
const idsToDelete = [...(ids ?? []), ...(queryId ? [queryId] : [])]; |
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.
I don't love this. This combines the request param and the body ids. I think we should return a 400 if they provide both. I wouldn't think that would be intended.
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.
done !!
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.
LGTM
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]
History
To update your PR or re-run it, just comment with: |
Summary
Allow deletion of monitor via id param !!
User can now delete monitor via passing id as url param
DELETE <kibana host>:<port>/api/synthetics/monitors/<config_id>
Previous bulk delete via list of ids via API body still works as well !!
Docs are updated !!