CONSOLE-5021: Enable consistent-type-imports#16031
CONSOLE-5021: Enable consistent-type-imports#16031openshift-merge-bot[bot] merged 4 commits intoopenshift:mainfrom
Conversation
|
@logonoff: This pull request references CONSOLE-5021 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
/label px-approved |
|
@logonoff: This pull request references CONSOLE-5021 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
📝 WalkthroughWalkthroughThis pull request systematically converts value imports to type-only imports across the console-app and console-dynamic-plugin-sdk packages. The refactor replaces regular 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
frontend/packages/console-dynamic-plugin-sdk/src/schema/console-extensions.ts (1)
128-129: DeduplicateCreateResourcein theSupportedExtensionunion.
CreateResourceappears twice; remove one to avoid confusion and keep the union tidy.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@frontend/packages/console-dynamic-plugin-sdk/src/schema/console-extensions.ts` around lines 128 - 129, The SupportedExtension union in console-extensions.ts contains a duplicated member "CreateResource"; remove the extra "CreateResource" entry from the SupportedExtension union declaration so each extension type appears only once (locate the SupportedExtension type/union and delete the duplicate CreateResource token).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In
`@frontend/packages/console-app/src/components/admission-webhook-warnings/AdmissionWebhookWarningNotifications.tsx`:
- Line 3: The import shadows the global Map causing a lint error; change the
import to alias Immutable's Map (e.g., import type { Map as ImmutableMap } from
'immutable') and update all uses of Map in AdmissionWebhookWarningNotifications
(and any exported types in this file) to ImmutableMap so the global Map is not
shadowed and intent is explicit.
---
Nitpick comments:
In
`@frontend/packages/console-dynamic-plugin-sdk/src/schema/console-extensions.ts`:
- Around line 128-129: The SupportedExtension union in console-extensions.ts
contains a duplicated member "CreateResource"; remove the extra "CreateResource"
entry from the SupportedExtension union declaration so each extension type
appears only once (locate the SupportedExtension type/union and delete the
duplicate CreateResource token).
...nsole-app/src/components/admission-webhook-warnings/AdmissionWebhookWarningNotifications.tsx
Outdated
Show resolved
Hide resolved
|
changes are import-only, and don't affect API /label plugin-api-approved acknowledge-critical-fixes-only |
|
/lgtm |
|
rebase |
|
@logonoff: This PR has been marked as verified by DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
0284cde to
158c638
Compare
|
i missed two files running /verified by CI |
|
@logonoff: This PR has been marked as verified by DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
Left out monaco imports because use we the `monaco` type itself as well
158c638 to
1e6b633
Compare
|
rebase |
|
@logonoff: This PR has been marked as verified by DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: logonoff, vojtechszocs The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Overriding due to infra issues |
|
@jhadvig: Overrode contexts on behalf of jhadvig: ci/prow/e2e-gcp-console DetailsIn response to this:
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. |
|
@logonoff: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. |
…ports CONSOLE-5021: Enable consistent-type-imports
This PR enables
@typescript-eslint/consistent-type-imports, then appliesyarn lint --fixin a separate commit. No other changesSummary by CodeRabbit
Release Notes