-
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] Isolate Add/Edit API routes HTTP interface from SavedObject type #162519
Merged
shahzad31
merged 12 commits into
elastic:main
from
awahab07:153495-Add-Edit-API-Isolate-Client-Interface-and-SO-attributes
Jul 31, 2023
Merged
[Synthetics] Isolate Add/Edit API routes HTTP interface from SavedObject type #162519
shahzad31
merged 12 commits into
elastic:main
from
awahab07:153495-Add-Edit-API-Isolate-Client-Interface-and-SO-attributes
Jul 31, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
awahab07
added
Team:Uptime - DEPRECATED
Synthetics & RUM sub-team of Application Observability
release_note:skip
Skip the PR/issue when compiling release notes
v8.10.0
labels
Jul 25, 2023
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
awahab07
force-pushed
the
153495-Add-Edit-API-Isolate-Client-Interface-and-SO-attributes
branch
from
July 26, 2023 11:00
aca67da
to
d4104a5
Compare
…monitor_edit API routes.
awahab07
force-pushed
the
153495-Add-Edit-API-Isolate-Client-Interface-and-SO-attributes
branch
from
July 26, 2023 22:21
9e08a39
to
31b0c0e
Compare
Pinging @elastic/uptime (Team:uptime) |
…-and-SO-attributes
…-and-SO-attributes
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
shahzad31
approved these changes
Jul 31, 2023
ThomThomson
pushed a commit
to ThomThomson/kibana
that referenced
this pull request
Aug 1, 2023
…ect type (elastic#162519) Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Shahzad <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
backport:skip
This commit does not require backporting
release_note:skip
Skip the PR/issue when compiling release notes
Team:Uptime - DEPRECATED
Synthetics & RUM sub-team of Application Observability
v8.10.0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #153495
Summary
For monitor crud Add and Edit routes, the PR refactors the API response to isolate the returned data type from SavedObject interface and returns a monitor object instead. The notion of accessing monitor fields via
attributes
is eliminated from the frontend code and there's no reference toSavedObject
anymore under synthetics/public directory.Testing
Monitor Add/Edit server routes previously were responding the success payload in the form
will now response with the following payload format
so code paths which might have been relying on the outer
id
(which they shouldn't regardless and should only rely onmonitor[ConfigKey.MONITOR_QUERY_ID]
andmonitor[ConfigKey.CONFIG_ID]
) in the old format including monitor add/update/push, alerts enable/disable, monitor enable/disable, run once and UI routes e.g. monitor details, test run details and step details etc should be smoke tested while also keeping an eye on runtime bugs in kibana and browser console.