-
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] Format locations for public API's #195295
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
⏳ Build in-progress, with failuresFailed CI Steps
Test Failures
HistoryTo update your PR or re-run it, just comment with: |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
History
|
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
Tested locally and everything seems fine.
...bility_solution/synthetics/server/routes/monitor_cruds/formatters/saved_object_to_monitor.ts
Show resolved
Hide resolved
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
Starting backport for target branches: 8.x |
## Summary Fixes elastic#194901 !! Format locations for public API's !! Public API has been refactored to return list of location ids just like they are provided in request !! (cherry picked from commit d21495b)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…195460) # Backport This will backport the following commits from `main` to `8.x`: - [[Synthetics] Format locations for public API's (#195295)](#195295) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Shahzad","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-08T15:52:33Z","message":"[Synthetics] Format locations for public API's (#195295)\n\n## Summary\r\n\r\nFixes #194901 !!\r\n\r\nFormat locations for public API's !!\r\n\r\nPublic API has been refactored to return list of location ids just like\r\nthey are provided in request !!","sha":"d21495bbce07ed39fdcf077c9170d012adab74a4","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-management"],"title":"[Synthetics] Format locations for public API's","number":195295,"url":"https://github.com/elastic/kibana/pull/195295","mergeCommit":{"message":"[Synthetics] Format locations for public API's (#195295)\n\n## Summary\r\n\r\nFixes #194901 !!\r\n\r\nFormat locations for public API's !!\r\n\r\nPublic API has been refactored to return list of location ids just like\r\nthey are provided in request !!","sha":"d21495bbce07ed39fdcf077c9170d012adab74a4"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195295","number":195295,"mergeCommit":{"message":"[Synthetics] Format locations for public API's (#195295)\n\n## Summary\r\n\r\nFixes #194901 !!\r\n\r\nFormat locations for public API's !!\r\n\r\nPublic API has been refactored to return list of location ids just like\r\nthey are provided in request !!","sha":"d21495bbce07ed39fdcf077c9170d012adab74a4"}}]}] BACKPORT--> Co-authored-by: Shahzad <[email protected]>
Folks, this is a breaking change in the API response that we're not even including in the 8.16 release notes. It's not clear why the breaking change is even required, as opposed to just adding a new field into the existing model with the location key. It's a pretty frustrating experience for internal clients, let alone customers consuming the API. We should at least call this out in the release notes. |
This reverts commit d21495b.
…" (elastic#198511) Fixes elastic#198518 This reverts commit d21495b and ## Testing Create few HTTP, ICMP, TCP and Browser monitors via API in 8.15 and in this PR Compared JSOn diffs to make sure responses are same (cherry picked from commit 184d9a0)
…" (elastic#198511) Fixes elastic#198518 This reverts commit d21495b and ## Testing Create few HTTP, ICMP, TCP and Browser monitors via API in 8.15 and in this PR Compared JSOn diffs to make sure responses are same (cherry picked from commit 184d9a0)
…5295)" (#198511) (#198596) # Backport This will backport the following commits from `main` to `8.x`: - [Revert "[Synthetics] Revert 8.15 public API responses (#195295)" (#198511)](#198511) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Shahzad","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-31T18:07:06Z","message":"Revert \"[Synthetics] Revert 8.15 public API responses (#195295)\" (#198511)\n\nFixes https://github.com/elastic/kibana/issues/198518\r\nThis reverts commit d21495b and \r\n\r\n\r\n## Testing\r\n\r\nCreate few HTTP, ICMP, TCP and Browser monitors via API in 8.15 and in\r\nthis PR\r\n\r\nCompared JSOn diffs to make sure responses are same","sha":"184d9a04486d2afdcbc428308a121cb377abda17","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","ci:project-deploy-observability","Team:obs-ux-management","v8.16.0","backport:version","v8.17.0"],"title":"Revert \"[Synthetics] Revert 8.15 public API responses (#195295)\"","number":198511,"url":"https://github.com/elastic/kibana/pull/198511","mergeCommit":{"message":"Revert \"[Synthetics] Revert 8.15 public API responses (#195295)\" (#198511)\n\nFixes https://github.com/elastic/kibana/issues/198518\r\nThis reverts commit d21495b and \r\n\r\n\r\n## Testing\r\n\r\nCreate few HTTP, ICMP, TCP and Browser monitors via API in 8.15 and in\r\nthis PR\r\n\r\nCompared JSOn diffs to make sure responses are same","sha":"184d9a04486d2afdcbc428308a121cb377abda17"}},"sourceBranch":"main","suggestedTargetBranches":["8.16","8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/198511","number":198511,"mergeCommit":{"message":"Revert \"[Synthetics] Revert 8.15 public API responses (#195295)\" (#198511)\n\nFixes https://github.com/elastic/kibana/issues/198518\r\nThis reverts commit d21495b and \r\n\r\n\r\n## Testing\r\n\r\nCreate few HTTP, ICMP, TCP and Browser monitors via API in 8.15 and in\r\nthis PR\r\n\r\nCompared JSOn diffs to make sure responses are same","sha":"184d9a04486d2afdcbc428308a121cb377abda17"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Shahzad <[email protected]>
…95295)" (#198511) (#198595) # Backport This will backport the following commits from `main` to `8.16`: - [Revert "[Synthetics] Revert 8.15 public API responses (#195295)" (#198511)](#198511) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Shahzad","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-31T18:07:06Z","message":"Revert \"[Synthetics] Revert 8.15 public API responses (#195295)\" (#198511)\n\nFixes https://github.com/elastic/kibana/issues/198518\r\nThis reverts commit d21495b and \r\n\r\n\r\n## Testing\r\n\r\nCreate few HTTP, ICMP, TCP and Browser monitors via API in 8.15 and in\r\nthis PR\r\n\r\nCompared JSOn diffs to make sure responses are same","sha":"184d9a04486d2afdcbc428308a121cb377abda17","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","ci:project-deploy-observability","Team:obs-ux-management","v8.16.0","backport:version","v8.17.0"],"title":"Revert \"[Synthetics] Revert 8.15 public API responses (#195295)\"","number":198511,"url":"https://github.com/elastic/kibana/pull/198511","mergeCommit":{"message":"Revert \"[Synthetics] Revert 8.15 public API responses (#195295)\" (#198511)\n\nFixes https://github.com/elastic/kibana/issues/198518\r\nThis reverts commit d21495b and \r\n\r\n\r\n## Testing\r\n\r\nCreate few HTTP, ICMP, TCP and Browser monitors via API in 8.15 and in\r\nthis PR\r\n\r\nCompared JSOn diffs to make sure responses are same","sha":"184d9a04486d2afdcbc428308a121cb377abda17"}},"sourceBranch":"main","suggestedTargetBranches":["8.16","8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/198511","number":198511,"mergeCommit":{"message":"Revert \"[Synthetics] Revert 8.15 public API responses (#195295)\" (#198511)\n\nFixes https://github.com/elastic/kibana/issues/198518\r\nThis reverts commit d21495b and \r\n\r\n\r\n## Testing\r\n\r\nCreate few HTTP, ICMP, TCP and Browser monitors via API in 8.15 and in\r\nthis PR\r\n\r\nCompared JSOn diffs to make sure responses are same","sha":"184d9a04486d2afdcbc428308a121cb377abda17"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Shahzad <[email protected]>
…" (elastic#198511) Fixes elastic#198518 This reverts commit d21495b and ## Testing Create few HTTP, ICMP, TCP and Browser monitors via API in 8.15 and in this PR Compared JSOn diffs to make sure responses are same
Summary
Fixes #194901 !!
Format locations for public API's !!
Public API has been refactored to return list of location ids just like they are provided in request !!
Why we need this?
This is done to make sure, we have consistent input/output response for fields, to enable API usage via terraform.
Before
After
but now we only return the id as provided in the request.
"locations": ["us_east"]