elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.64k stars 8.23k forks source link

[synthetics API] inconsistencies between location create / get / update #194901

Open biscout42 opened 1 month ago

biscout42 commented 1 month ago

Similar to https://github.com/elastic/kibana/issues/189906

Kibana version: 8.15.1

Elasticsearch version: 8.15.1

Server OS version: Elastic cloud deployment

Browser version: N/A

Browser OS version: N/A

Describe the bug: Synthetics Monitor API requires locations to be keys from SyntheticsLocationsType)](https://github.com/elastic/synthetics/blob/main/src/locations/public-locations.ts#L28-L37), but returns mapped values.

Here is one example:

Part of the request

  "locations": ["us_east"]

Part of the response

 "locations": [
  {
   "id": "us-east4-a",
   "label": "North America - US East",
   "geo": {
    "lat": 36.57198,
    "lon": -78.77061
   },
   "isServiceManaged": true
  }
 ],

Missing original locations value us_east in the GET/POST response doesn't allow to implement import functionality in https://github.com/elastic/terraform-provider-elasticstack

elasticmachine commented 1 month ago

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

shahzad31 commented 1 week ago

reopening, since it has been reverted