Commit graph

3 commits

Author SHA1 Message Date
Shahzad
d25a2b442a
[Synthetics] Refactor bulk delete monitor and params routes !! (#195420)
## Summary

Refactor bulk delete monitor and params routes !! 

We need to remove usage for body from DELETE route.

### Params

Params can be bulk delete now with POST request to
`/params/_bulk_delete` endpoint

### Monitors
Monitors can be bulk delete now with POST request to
`/monitors/_bulk_delete` endpoint
2024-11-07 10:51:56 +01:00
Shahzad
0ff9a8a9d9
[Synthetics] Fixes partial updates for params and params viewing (#195866)
## Summary

Fixes https://github.com/elastic/kibana/issues/167781

In docs we says that only key/value pairs are required, but in actual
edit, that means rest of the data was being lost on edits

Allow partial updates to params edit API !!

This PR makes sure prev objects is fetched and merged with new data
hence allowing partial updates !!

We are also allowing the ability to view value of the secret once it's
saved via API !!

### Value is hidden
Param value will not be visible unless user is `super_user` or
`kibana_admin`, though user can assign new value.

---------

Co-authored-by: Justin Kambic <jk@elastic.co>
2024-10-25 17:06:52 +02:00
Shahzad
8bbb58f19a
[Synthetics] Global params Public APIs (#169669) 2023-10-27 16:16:40 +02:00