-
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
Enable "Event Generating Elements Should Be Instrumented" ESLint rule for more O11y Apps #165647
Enable "Event Generating Elements Should Be Instrumented" ESLint rule for more O11y Apps #165647
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
…int-rule-for-ai-assistant
Pinging @elastic/uptime (Team:uptime) |
Pinging @elastic/apm-ui (Team:APM) |
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.
APM changes and Oblt onboarding changes LGTM
81829f4
to
ca1f86e
Compare
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.
Profiling changes LGTM
…:CoenWarmer/kibana into feat/enable-eslint-rule-for-ai-assistant
💔 Build FailedFailed CI Steps
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
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.
Infra changes LGTM
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
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!
Summary
This enables the ESLint rule that requires event generating UI elements to have a
data-test-subj
for more Observability apps.Specifically:
observability_ai_assistant
observability_shared
observability_onboarding
profiling
In addition this also adds the
EuiButtonIcon
component as a component which needs adata-test-subj
.Effect
This PR will trigger the CI to create a commit that adds a
data-test-subj
value for these elements:to all plugins that the rule is active for, and don't have a value set yet.
Once the PR is merged, engineers working on all these plugins will see a warning in their IDE when no
data-test-subj
is set on any of the aforementioned elements. ESLint will also be able to 'fix' this by suggesting a value based on the plugin name, React component name, Eui element name and if present, the translated text content.Elements that already have a
data-test-subj
will not be touched, and engineers can always adjust the suggestion that the rule autogenerates (either in your IDE or by commiting changes afterwards).