-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
fix no-restricted-imports
#195456
fix no-restricted-imports
#195456
Conversation
@elasticmachine merge upstream |
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.
Integration Assistant plugin 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.
Defend Workflows code changes LGTM 🚀 Thanks!
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.
Security Data Analytics
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.
thank you! 🙇
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.
Entity Analytics changes LGTM
@elasticmachine merge upstream |
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. Thank you Anton!
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
|
Starting backport for target branches: 8.x |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
## Summary I noticed that our `no-restricted-imports` rules were not working on some parts of the codebase. Turns our the rule was overriden by mistake. This PR fixes the rules and places that were not following them: - lodash set for safety - react-use for a bit smaller bundles - router for context annoncement (`useExecutionContext`) and hopefully easier upgrade to newer version (cherry picked from commit 1055120) # Conflicts: # .github/CODEOWNERS
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
1 similar comment
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
# Backport This will backport the following commits from `main` to `8.x`: - [fix `no-restricted-imports` (#195456)](#195456) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Anton Dosov","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-15T11:55:53Z","message":"fix `no-restricted-imports` (#195456)\n\n## Summary\r\n\r\nI noticed that our `no-restricted-imports` rules were not working on\r\nsome parts of the codebase. Turns our the rule was overriden by mistake.\r\nThis PR fixes the rules and places that were not following them:\r\n\r\n- lodash set for safety\r\n- react-use for a bit smaller bundles\r\n- router for context annoncement (`useExecutionContext`) and hopefully\r\neasier upgrade to newer version","sha":"1055120d0f4640af67881b4909d4881681d9575d","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-management"],"number":195456,"url":"https://github.com/elastic/kibana/pull/195456","mergeCommit":{"message":"fix `no-restricted-imports` (#195456)\n\n## Summary\r\n\r\nI noticed that our `no-restricted-imports` rules were not working on\r\nsome parts of the codebase. Turns our the rule was overriden by mistake.\r\nThis PR fixes the rules and places that were not following them:\r\n\r\n- lodash set for safety\r\n- react-use for a bit smaller bundles\r\n- router for context annoncement (`useExecutionContext`) and hopefully\r\neasier upgrade to newer version","sha":"1055120d0f4640af67881b4909d4881681d9575d"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195456","number":195456,"mergeCommit":{"message":"fix `no-restricted-imports` (#195456)\n\n## Summary\r\n\r\nI noticed that our `no-restricted-imports` rules were not working on\r\nsome parts of the codebase. Turns our the rule was overriden by mistake.\r\nThis PR fixes the rules and places that were not following them:\r\n\r\n- lodash set for safety\r\n- react-use for a bit smaller bundles\r\n- router for context annoncement (`useExecutionContext`) and hopefully\r\neasier upgrade to newer version","sha":"1055120d0f4640af67881b4909d4881681d9575d"}}]}] BACKPORT--> --------- Co-authored-by: Elastic Machine <[email protected]>
Summary
I noticed that our
no-restricted-imports
rules were not working on some parts of the codebase. Turns our the rule was overriden by mistake. This PR fixes the rules and places that were not following them:useExecutionContext
) and hopefully easier upgrade to newer versioncc @elastic/kibana-operations