Skip to content

ROX-33768: Add no-non-deprecated-reselect lint rule with ignores#19581

Merged
pedrottimark merged 1 commit intomasterfrom
ROX-33768-pluginLimited-no-non-deprecated-reselect
Mar 26, 2026
Merged

ROX-33768: Add no-non-deprecated-reselect lint rule with ignores#19581
pedrottimark merged 1 commit intomasterfrom
ROX-33768-pluginLimited-no-non-deprecated-reselect

Conversation

@pedrottimark
Copy link
Copy Markdown
Contributor

@pedrottimark pedrottimark commented Mar 24, 2026

Description

Objective

When we delete deprecated container folders, we intend to delete obsolete dependencies.

Problem

If non-deprecated files still depend on the dependencies (pardon pun) any additional unplanned technical investment might block deletion, because the effort will compete with other unplanned tasks.

Analysis

Find in Files

  • connect( has 15 results in 14 files.
    Although we keep 'react-redux' dependency, replace this obsolete pattern.
  • from 'reselect' has 15 results in 15 files.

Solution

Use typescript-eslint playground to understand import { … } from 'reselect'; statement.

https://typescript-eslint.io/play/#ts=5.9.3&showAST=es&fileType=.tsx

Adapt from no-non-deprecated-PropTypes added in #19548

  1. Edit pluginLimited.js file.

    • Add no-non-deprecated-connect lint rule.
    • Add no-non-deprecated-reselect lint rule.
  2. Edit eslint.config.js file.

    • Add configuration object with ignores array and comments.

User-facing documentation

  • CHANGELOG.md update is not needed
  • documentation PR is not needed

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added lint rules
  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

  1. npm run tsc in ui/apps/platform folder.

  2. npm run lint:fast-dev in ui/apps/platform folder.

    With configuration object but without ignores property see expected errors.

@pedrottimark pedrottimark requested a review from a team as a code owner March 24, 2026 20:23
@rhacs-bot
Copy link
Copy Markdown
Contributor

Images are ready for the commit at d7bc382.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.11.x-433-gd7bc3829d2.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.25%. Comparing base (245cdc5) to head (d7bc382).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #19581   +/-   ##
=======================================
  Coverage   49.25%   49.25%           
=======================================
  Files        2735     2735           
  Lines      206138   206138           
=======================================
+ Hits       101538   101542    +4     
+ Misses      97052    97048    -4     
  Partials     7548     7548           
Flag Coverage Δ
go-unit-tests 49.25% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Mar 25, 2026

@pedrottimark: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/ocp-4-20-nongroovy-e2e-tests d7bc382 link false /test ocp-4-20-nongroovy-e2e-tests
ci/prow/ocp-4-21-ui-e2e-tests d7bc382 link false /test ocp-4-21-ui-e2e-tests

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@pedrottimark pedrottimark merged commit 2cad81c into master Mar 26, 2026
89 of 90 checks passed
@pedrottimark pedrottimark deleted the ROX-33768-pluginLimited-no-non-deprecated-reselect branch March 26, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants