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

[ResponseOps] Bring back EuiThemeProvider to fix o11y and stack monitoring rules in stack management #188724

Merged
merged 7 commits into from
Jul 23, 2024

Conversation

maryam-saeidi
Copy link
Member

@maryam-saeidi maryam-saeidi commented Jul 19, 2024

Related to #186969 and elastic/response-ops-team#218

Summary

This PR brings back EuiThemeProvider to fix o11y and stack monitoring rules in stack management.

To check/do

  • Add an APM test that fails without this fix
  • Check if this solves the related SDH for CPU Usage
    • Yes, it will solve that issue (comment)
  • Smoke test ALL rule types in stack management
    • Can we load the rule form?
    • Can we adjust all the input fields without error?
    • Does it work both with and without data in the preview chart?

@obltmachine
Copy link

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@@ -321,6 +371,19 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
await discardNewRuleCreation();
});

// Related issue that this test is trying to prevent:
// https://github.com/elastic/kibana/issues/186969
it('should successfully show the APM error count rule flyout', async () => {
Copy link
Member Author

Choose a reason for hiding this comment

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

Before the above fix, this test would fail:

Error UI
image image

@maryam-saeidi maryam-saeidi marked this pull request as ready for review July 19, 2024 15:07
@maryam-saeidi maryam-saeidi requested review from a team as code owners July 19, 2024 15:07
@botelastic botelastic bot added ci:project-deploy-observability Create an Observability project Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team labels Jul 19, 2024
@elasticmachine
Copy link
Contributor

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

@kibana-ci
Copy link
Collaborator

kibana-ci commented Jul 22, 2024

💚 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
apm 3.5MB 3.5MB +872.0B
triggersActionsUi 1.7MB 1.7MB +130.0B
total +1002.0B

History

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

cc @maryam-saeidi

@@ -14,10 +14,11 @@ interface Props {
value: React.ReactNode;
children?: React.ReactNode;
color?: ExpressionColor;
dataTestSubj?: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if it would be better to name it data-test-subj instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

I used dataTestSubj since this is our component not Eui, but I can change it if that's preferred. I also saw dataTestSubj used in other places in APM plugin such as this.

Copy link
Member Author

Choose a reason for hiding this comment

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

Does it mean when I want to access this prop, I should do something like:

const { title, value, children, color, 'data-test-subj': dataTestSubj } = props;

or

data-test-subj={props['data-test-subj']}

The current implementation seems simpler, IMO.

Copy link
Contributor

Choose a reason for hiding this comment

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

IMO this attribute should preferably be all in either kebab-case or cameCase, but both conventions are used all over Kibana. My comment was a nit though. Anything you decide will be fine with me.

@maryam-saeidi
Copy link
Member Author

maryam-saeidi commented Jul 22, 2024

@cnasikas I checked all the observability rules in stack management, and they seemed fine (In case of an issue, we still have the option of creating them via observability.)

Regarding stack management rules, most of them had the same issue, and this fix will solve the problem.

Would you mind checking the rest of the rules to make sure they work with this fix?

image

@cnasikas
Copy link
Member

Thanks @maryam-saeidi! Yes, we will test the rest of them to be 100% sure that the fix works and does not break the rest of the rules.

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#6603

[✅] x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/config.ts: 100/100 tests passed.
[✅] x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/shared/config.ts: 100/100 tests passed.

see run history

@cnasikas cnasikas changed the title Bring back EuiThemeProvider to fix o11y and stack monitoring rules in stack management [ResponseOps] Bring back EuiThemeProvider to fix o11y and stack monitoring rules in stack management Jul 23, 2024
@cnasikas cnasikas added the Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) label Jul 23, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

Copy link
Member

@cnasikas cnasikas left a comment

Choose a reason for hiding this comment

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

I tested all rule types and for each rule type, I interacted with all inputs, charts, and KQL bars. It is working as expected. LGTM!

@maryam-saeidi maryam-saeidi merged commit ed32c98 into elastic:main Jul 23, 2024
31 checks passed
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 23, 2024
…oring rules in stack management (elastic#188724)

Related to elastic#186969 and
elastic/response-ops-team#218

## Summary

This PR brings back EuiThemeProvider to fix o11y and stack monitoring
rules in stack management.

## To check/do

- [x] Add an APM test that fails without this fix
- [x] Check if this solves the related SDH for [CPU
Usage](elastic/sdh-kibana#4829)
- Yes, it will solve that issue
([comment](elastic/sdh-kibana#4829 (comment)))
- [x] Smoke test **ALL** rule types in stack management
    - Can we load the rule form?
    - Can we adjust all the input fields without error?
    - Does it work both with and without data in the preview chart?

(cherry picked from commit ed32c98)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 23, 2024
…oring rules in stack management (elastic#188724)

Related to elastic#186969 and
elastic/response-ops-team#218

## Summary

This PR brings back EuiThemeProvider to fix o11y and stack monitoring
rules in stack management.

## To check/do

- [x] Add an APM test that fails without this fix
- [x] Check if this solves the related SDH for [CPU
Usage](elastic/sdh-kibana#4829)
- Yes, it will solve that issue
([comment](elastic/sdh-kibana#4829 (comment)))
- [x] Smoke test **ALL** rule types in stack management
    - Can we load the rule form?
    - Can we adjust all the input fields without error?
    - Does it work both with and without data in the preview chart?

(cherry picked from commit ed32c98)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.14
8.15

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

Questions ?

Please refer to the Backport tool documentation

@maryam-saeidi maryam-saeidi deleted the fix-o11y-rules-in-stack branch July 23, 2024 09:19
kibanamachine added a commit that referenced this pull request Jul 23, 2024
…k monitoring rules in stack management (#188724) (#188905)

# Backport

This will backport the following commits from `main` to `8.15`:
- [[ResponseOps] Bring back EuiThemeProvider to fix o11y and stack
monitoring rules in stack management
(#188724)](#188724)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Maryam
Saeidi","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-07-23T08:42:42Z","message":"[ResponseOps]
Bring back EuiThemeProvider to fix o11y and stack monitoring rules in
stack management (#188724)\n\nRelated to
#186969
and\r\nelastic/response-ops-team#218\r\n\r\n## Summary\r\n\r\nThis PR
brings back EuiThemeProvider to fix o11y and stack monitoring\r\nrules
in stack management.\r\n\r\n## To check/do\r\n\r\n- [x] Add an APM test
that fails without this fix\r\n- [x] Check if this solves the related
SDH for
[CPU\r\nUsage](https://github.com/elastic/sdh-kibana/issues/4829)\r\n-
Yes, it will solve that
issue\r\n([comment](https://github.com/elastic/sdh-kibana/issues/4829#issuecomment-2242509680))\r\n-
[x] Smoke test **ALL** rule types in stack management\r\n - Can we load
the rule form?\r\n - Can we adjust all the input fields without
error?\r\n - Does it work both with and without data in the preview
chart?","sha":"ed32c980722efa113e70f0f409ee95e36a9f7a15","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:ResponseOps","ci:project-deploy-observability","Team:obs-ux-infra_services","apm:review","v8.15.0","v8.16.0","v8.14.4"],"title":"[ResponseOps]
Bring back EuiThemeProvider to fix o11y and stack monitoring rules in
stack
management","number":188724,"url":"https://github.com/elastic/kibana/pull/188724","mergeCommit":{"message":"[ResponseOps]
Bring back EuiThemeProvider to fix o11y and stack monitoring rules in
stack management (#188724)\n\nRelated to
#186969
and\r\nelastic/response-ops-team#218\r\n\r\n## Summary\r\n\r\nThis PR
brings back EuiThemeProvider to fix o11y and stack monitoring\r\nrules
in stack management.\r\n\r\n## To check/do\r\n\r\n- [x] Add an APM test
that fails without this fix\r\n- [x] Check if this solves the related
SDH for
[CPU\r\nUsage](https://github.com/elastic/sdh-kibana/issues/4829)\r\n-
Yes, it will solve that
issue\r\n([comment](https://github.com/elastic/sdh-kibana/issues/4829#issuecomment-2242509680))\r\n-
[x] Smoke test **ALL** rule types in stack management\r\n - Can we load
the rule form?\r\n - Can we adjust all the input fields without
error?\r\n - Does it work both with and without data in the preview
chart?","sha":"ed32c980722efa113e70f0f409ee95e36a9f7a15"}},"sourceBranch":"main","suggestedTargetBranches":["8.15","8.14"],"targetPullRequestStates":[{"branch":"8.15","label":"v8.15.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/188724","number":188724,"mergeCommit":{"message":"[ResponseOps]
Bring back EuiThemeProvider to fix o11y and stack monitoring rules in
stack management (#188724)\n\nRelated to
#186969
and\r\nelastic/response-ops-team#218\r\n\r\n## Summary\r\n\r\nThis PR
brings back EuiThemeProvider to fix o11y and stack monitoring\r\nrules
in stack management.\r\n\r\n## To check/do\r\n\r\n- [x] Add an APM test
that fails without this fix\r\n- [x] Check if this solves the related
SDH for
[CPU\r\nUsage](https://github.com/elastic/sdh-kibana/issues/4829)\r\n-
Yes, it will solve that
issue\r\n([comment](https://github.com/elastic/sdh-kibana/issues/4829#issuecomment-2242509680))\r\n-
[x] Smoke test **ALL** rule types in stack management\r\n - Can we load
the rule form?\r\n - Can we adjust all the input fields without
error?\r\n - Does it work both with and without data in the preview
chart?","sha":"ed32c980722efa113e70f0f409ee95e36a9f7a15"}},{"branch":"8.14","label":"v8.14.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Maryam Saeidi <[email protected]>
kibanamachine added a commit that referenced this pull request Jul 23, 2024
…k monitoring rules in stack management (#188724) (#188904)

# Backport

This will backport the following commits from `main` to `8.14`:
- [[ResponseOps] Bring back EuiThemeProvider to fix o11y and stack
monitoring rules in stack management
(#188724)](#188724)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Maryam
Saeidi","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-07-23T08:42:42Z","message":"[ResponseOps]
Bring back EuiThemeProvider to fix o11y and stack monitoring rules in
stack management (#188724)\n\nRelated to
#186969
and\r\nelastic/response-ops-team#218\r\n\r\n## Summary\r\n\r\nThis PR
brings back EuiThemeProvider to fix o11y and stack monitoring\r\nrules
in stack management.\r\n\r\n## To check/do\r\n\r\n- [x] Add an APM test
that fails without this fix\r\n- [x] Check if this solves the related
SDH for
[CPU\r\nUsage](https://github.com/elastic/sdh-kibana/issues/4829)\r\n-
Yes, it will solve that
issue\r\n([comment](https://github.com/elastic/sdh-kibana/issues/4829#issuecomment-2242509680))\r\n-
[x] Smoke test **ALL** rule types in stack management\r\n - Can we load
the rule form?\r\n - Can we adjust all the input fields without
error?\r\n - Does it work both with and without data in the preview
chart?","sha":"ed32c980722efa113e70f0f409ee95e36a9f7a15","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:ResponseOps","ci:project-deploy-observability","Team:obs-ux-infra_services","apm:review","v8.15.0","v8.16.0","v8.14.4"],"title":"[ResponseOps]
Bring back EuiThemeProvider to fix o11y and stack monitoring rules in
stack
management","number":188724,"url":"https://github.com/elastic/kibana/pull/188724","mergeCommit":{"message":"[ResponseOps]
Bring back EuiThemeProvider to fix o11y and stack monitoring rules in
stack management (#188724)\n\nRelated to
#186969
and\r\nelastic/response-ops-team#218\r\n\r\n## Summary\r\n\r\nThis PR
brings back EuiThemeProvider to fix o11y and stack monitoring\r\nrules
in stack management.\r\n\r\n## To check/do\r\n\r\n- [x] Add an APM test
that fails without this fix\r\n- [x] Check if this solves the related
SDH for
[CPU\r\nUsage](https://github.com/elastic/sdh-kibana/issues/4829)\r\n-
Yes, it will solve that
issue\r\n([comment](https://github.com/elastic/sdh-kibana/issues/4829#issuecomment-2242509680))\r\n-
[x] Smoke test **ALL** rule types in stack management\r\n - Can we load
the rule form?\r\n - Can we adjust all the input fields without
error?\r\n - Does it work both with and without data in the preview
chart?","sha":"ed32c980722efa113e70f0f409ee95e36a9f7a15"}},"sourceBranch":"main","suggestedTargetBranches":["8.15","8.14"],"targetPullRequestStates":[{"branch":"8.15","label":"v8.15.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/188724","number":188724,"mergeCommit":{"message":"[ResponseOps]
Bring back EuiThemeProvider to fix o11y and stack monitoring rules in
stack management (#188724)\n\nRelated to
#186969
and\r\nelastic/response-ops-team#218\r\n\r\n## Summary\r\n\r\nThis PR
brings back EuiThemeProvider to fix o11y and stack monitoring\r\nrules
in stack management.\r\n\r\n## To check/do\r\n\r\n- [x] Add an APM test
that fails without this fix\r\n- [x] Check if this solves the related
SDH for
[CPU\r\nUsage](https://github.com/elastic/sdh-kibana/issues/4829)\r\n-
Yes, it will solve that
issue\r\n([comment](https://github.com/elastic/sdh-kibana/issues/4829#issuecomment-2242509680))\r\n-
[x] Smoke test **ALL** rule types in stack management\r\n - Can we load
the rule form?\r\n - Can we adjust all the input fields without
error?\r\n - Does it work both with and without data in the preview
chart?","sha":"ed32c980722efa113e70f0f409ee95e36a9f7a15"}},{"branch":"8.14","label":"v8.14.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Maryam Saeidi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apm:review ci:project-deploy-observability Create an Observability project release_note:fix Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v8.14.4 v8.15.0 v8.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants