-
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] Hide location and enabled toggle on MonitorDetailsPanel
for test run details
#152373
[Synthetics] Hide location and enabled toggle on MonitorDetailsPanel
for test run details
#152373
Conversation
…abled for test run details.
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
Metrics [docs]Async chunks
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
…` for test run details (elastic#152373) Co-authored-by: Shahzad <[email protected]> (cherry picked from commit f23346e)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…sPanel` for test run details (#152373) (#152462) # Backport This will backport the following commits from `main` to `8.7`: - [[Synthetics] Hide location and enabled toggle on `MonitorDetailsPanel` for test run details (#152373)](#152373) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Justin Kambic","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-03-01T14:38:42Z","message":"[Synthetics] Hide location and enabled toggle on `MonitorDetailsPanel` for test run details (#152373)\n\nCo-authored-by: Shahzad <[email protected]>","sha":"f23346e4a61fcbce8d0678edb76a7d3055852dde","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","Team:uptime","release_note:skip","v8.7.0","v8.8.0"],"number":152373,"url":"https://github.com/elastic/kibana/pull/152373","mergeCommit":{"message":"[Synthetics] Hide location and enabled toggle on `MonitorDetailsPanel` for test run details (#152373)\n\nCo-authored-by: Shahzad <[email protected]>","sha":"f23346e4a61fcbce8d0678edb76a7d3055852dde"}},"sourceBranch":"main","suggestedTargetBranches":["8.7"],"targetPullRequestStates":[{"branch":"8.7","label":"v8.7.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/152373","number":152373,"mergeCommit":{"message":"[Synthetics] Hide location and enabled toggle on `MonitorDetailsPanel` for test run details (#152373)\n\nCo-authored-by: Shahzad <[email protected]>","sha":"f23346e4a61fcbce8d0678edb76a7d3055852dde"}}]}] BACKPORT--> Co-authored-by: Justin Kambic <[email protected]>
…` for test run details (elastic#152373) Co-authored-by: Shahzad <[email protected]>
Summary
Resolves #152383.
While doing Post-FF testing for #145384, I noticed that the enabled toggle and locations are displayed on the test run details page's details description list. We don't want this here as it doesn't make any sense.
Enabled toggle was already configurable. The main reason this is happening is because we've defined a wrapper component that cannot take the necessary props to control the underlying panel. I've extracted the props and provided a
Partial
interface to the wrapper so the calling code in parent components can easily control the panel itself.I've added a
hideLocations
prop that will prevent the locations from rendering as well.I've set
hideLocations
andhideEnabled
from the test run details component, thus fixing the issue.After
Before
Reviewing
Ensure that the enable toggle is hidden on the detail flyout, but exposed on the monitor detail page. Ensure location and enable toggle are not shown in test run details.
NOTE: this also fixes #152383. Ensure the border in the flyout is gone.
Checklist
Delete any items that are not applicable to this PR.
Risk Matrix
Delete this section if it is not applicable to this PR.
Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.
When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:
For maintainers