Skip to content
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

Merged

Conversation

justinkambic
Copy link
Contributor

@justinkambic justinkambic commented Feb 28, 2023

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 and hideEnabled from the test run details component, thus fixing the issue.

After

image

Before

image

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.

Untitled

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:

Risk Probability Severity Mitigation/Notes
Multiple Spaces—unexpected behavior in non-default Kibana Space. Low High Integration tests will verify that all features are still supported in non-default Kibana Space and when user switches between spaces.
Multiple nodes—Elasticsearch polling might have race conditions when multiple Kibana nodes are polling for the same tasks. High Low Tasks are idempotent, so executing them multiple times will not result in logical error, but will degrade performance. To test for this case we add plenty of unit tests around this logic and document manual testing procedure.
Code should gracefully handle cases when feature X or plugin Y are disabled. Medium High Unit tests will verify that any feature flag or plugin combination still results in our service operational.
See more potential risk examples

For maintainers

@justinkambic justinkambic added bug Fixes for quality problems that affect the customer experience Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability release_note:skip Skip the PR/issue when compiling release notes v8.7.0 labels Feb 28, 2023
@justinkambic justinkambic self-assigned this Feb 28, 2023
@justinkambic justinkambic marked this pull request as ready for review February 28, 2023 17:25
@justinkambic justinkambic requested a review from a team as a code owner February 28, 2023 17:25
Copy link
Contributor

@shahzad31 shahzad31 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM !!

@shahzad31 shahzad31 enabled auto-merge (squash) March 1, 2023 13:30
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
synthetics 1.4MB 1.4MB +149.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
securitySolution 428 430 +2

Total ESLint disabled count

id before after diff
securitySolution 506 508 +2

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @justinkambic

@shahzad31 shahzad31 merged commit f23346e into elastic:main Mar 1, 2023
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 1, 2023
…` for test run details (elastic#152373)

Co-authored-by: Shahzad <[email protected]>
(cherry picked from commit f23346e)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.7

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

@justinkambic justinkambic deleted the 145384/shared-component-hide-controls branch March 1, 2023 14:52
kibanamachine added a commit that referenced this pull request Mar 1, 2023
…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]>
bmorelli25 pushed a commit to bmorelli25/kibana that referenced this pull request Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v8.7.0 v8.8.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Synthetics] Border within border on Monitor Detail Flyout
4 participants