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

[ML] Removing global ml exhaustive-deps rule #139907

Conversation

jgowdyelastic
Copy link
Member

@jgowdyelastic jgowdyelastic commented Sep 1, 2022

Removes the global eslint exhaustive-deps rule suppression and adds inline comments to suppress every violation.
This will stop any future code from breaking this rule by accident.

We can then divide the work between us to remove these comments and fix the dependencies.

It's worth noting that I purposely didn't auto fix these rule breakages as previous attempts at doing that caused a lot of problems. Mainly due to incorrect hook usage.
We could auto fix them in a more focused approach, perhaps a page at a time, to ensure no functional problems.

Fixes #49565

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Unknown metric groups

ESLint disabled line counts

id before after diff
ml 103 575 +472

Total ESLint disabled count

id before after diff
ml 106 578 +472

History

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

@jgowdyelastic jgowdyelastic self-assigned this Sep 5, 2022
@jgowdyelastic jgowdyelastic added non-issue Indicates to automation that a pull request should not appear in the release notes :ml release_note:skip Skip the PR/issue when compiling release notes labels Sep 5, 2022
@jgowdyelastic jgowdyelastic marked this pull request as ready for review September 5, 2022 13:39
@jgowdyelastic jgowdyelastic requested a review from a team as a code owner September 5, 2022 13:39
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@darnautov darnautov left a comment

Choose a reason for hiding this comment

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

LGTM, makes sense to enable this rule and address existing issues with some additional test coverage

@jgowdyelastic jgowdyelastic merged commit 76fcb3f into elastic:main Sep 6, 2022
@jgowdyelastic jgowdyelastic deleted the removing-global-ml-exhaustive-deps-rule branch September 6, 2022 08:41
@kibanamachine kibanamachine added v8.5.0 backport:skip This commit does not require backporting labels Sep 6, 2022
Mpdreamz pushed a commit to Mpdreamz/kibana that referenced this pull request Sep 6, 2022
* [ML] Removing global ml exhaustive-deps rule

* changes after main merge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting :ml non-issue Indicates to automation that a pull request should not appear in the release notes release_note:skip Skip the PR/issue when compiling release notes v8.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ML] Remove temporary x-pack/legacy/plugins/ml eslint overrides
6 participants