Skip to content

Commit

Permalink
OCPBUGS-45847: Prune unused code
Browse files Browse the repository at this point in the history
removed references to files that are exposed by a static plugin but is not used by it, and remove files entirely if not referenced elsewhere
  • Loading branch information
logonoff committed Jan 16, 2025
1 parent 19f17c9 commit c509284
Show file tree
Hide file tree
Showing 15 changed files with 3 additions and 517 deletions.
1 change: 0 additions & 1 deletion frontend/packages/console-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
"CSRStatus": "src/components/nodes/status/CSRStatus.tsx",
"nodeActions": "src/components/nodes/menu-actions.tsx",
"oauthConfigDetailsPage": "src/components/oauth-config/OAuthConfigDetailsPage.tsx",
"multiNetworkFlag": "src/components/network-policies/multi-network-policy/multiNetworkFlag.ts",
"consolePluginDescriptionDetail": "src/components/console-operator/ConsolePluginDescriptionDetail.tsx",
"consolePluginVersionDetail": "src/components/console-operator/ConsolePluginVersionDetail.tsx",
"consolePluginStatusDetail": "src/components/console-operator/ConsolePluginStatusDetail.tsx",
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion frontend/packages/console-telemetry-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"description": "An OpenShift Console plugin for capturing events in segment.",
"exposedModules": {
"telemetryDebugListener": "src/listeners/debug.ts",
"telemetryUsageListener": "src/listeners/usage.ts",
"telemetrySegmentListener": "src/listeners/segment.ts",
"detectTelemetry": "src/flags/detect-telemetry.ts",
"telemetryConfiguration": "src/components/TelemetryConfiguration.tsx",
Expand Down
49 changes: 0 additions & 49 deletions frontend/packages/console-telemetry-plugin/src/listeners/usage.ts

This file was deleted.

31 changes: 0 additions & 31 deletions frontend/packages/dev-console/console-extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,37 +126,6 @@
]
}
},
/*
{
"type": "console.cluster-configuration/item",
"properties": {
"id": "dev-console.CatalogCategoriesConfiguration",
"groupId": "developer",
"label": "%devconsole~Developer Catalog Types%",
"description": "%devconsole~Categories which are shown in the developer catalog.%",
"field": {
"type": "custom",
"component": { "$codeRef": "CatalogCategoriesConfiguration.default" }
},
"readAccessReview": [
{
"group": "operator.openshift.io/v1",
"resource": "consoles",
"verb": "get",
"name": "cluster"
}
],
"writeAccessReview": [
{
"group": "operator.openshift.io/v1",
"resource": "consoles",
"verb": "patch",
"name": "cluster"
}
]
}
},
*/
{
"type": "console.cluster-configuration/item",
"properties": {
Expand Down
4 changes: 1 addition & 3 deletions frontend/packages/dev-console/locales/en/devconsole.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,9 @@
"Shipwright Build": "Shipwright Build",
"Shipwright Builds": "Shipwright Builds",
"Select a Project to view the list of builds<1></1>.": "Select a Project to view the list of builds<1></1>.",
"Developer catalog": "Developer catalog",
"Enabled categories": "Enabled categories",
"Disabled categories": "Disabled categories",
"Add shared applications, services, event sources, or source-to-image builders to your Project from the developer catalog. Cluster administrators can customize the content made available in the catalog.": "Add shared applications, services, event sources, or source-to-image builders to your Project from the developer catalog. Cluster administrators can customize the content made available in the catalog.",
"Select a Project to view the developer catalog<1></1>.": "Select a Project to view the developer catalog<1></1>.",
"Developer catalog": "Developer catalog",
"Another option to customize and standardize your development process. As an admin, you can disable the complete Developer Catalog, or individual sub-catalogs (available as Types in the Developer Catalog). Also here the \"Search\" and \"Topology\" will still show such resources.": "Another option to customize and standardize your development process. As an admin, you can disable the complete Developer Catalog, or individual sub-catalogs (available as Types in the Developer Catalog). Also here the \"Search\" and \"Topology\" will still show such resources.",
"Enabled types": "Enabled types",
"Disabled types": "Disabled types",
Expand Down
1 change: 0 additions & 1 deletion frontend/packages/dev-console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"BuildsTabListPage": "src/components/builds/BuildsTabListPage.tsx",
"BuildConfigFormPage": "src/components/buildconfig/BuildConfigFormPage.tsx",
"icons": "src/utils/icons.tsx",
"CatalogCategoriesConfiguration": "src/components/catalog/CatalogCategoriesConfiguration.tsx",
"CatalogTypesConfiguration": "src/components/catalog/CatalogTypesConfiguration.tsx",
"PinnedResourcesConfiguration": "src/components/catalog/PinnedResourcesConfiguration.tsx",
"CatalogPage": "src/components/catalog/CatalogPage.tsx",
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion frontend/packages/helm-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"HelmInstallUpgradePage": "src/components/forms/install-upgrade/HelmInstallUpgradePage.tsx",
"HelmReleaseRollbackPage": "src/components/forms/rollback/HelmReleaseRollbackPage.tsx",
"HelmReleaseDetailsPage": "src/components/details-page/HelmReleaseDetailsPage.tsx",
"HelmReleaseListPage": "src/components/list-page/HelmReleaseListPage.tsx",
"HelmChartRepositoryForm": "src/components/forms/HelmChartRepository/CreateHelmChartRepositoryPage.tsx",
"ProjectHelmChartRepositoryListPage": "src/components/list-page/ProjectHelmChartRepositoryListPage.tsx",
"HelmChartRepositoryListPage": "src/components/list-page/HelmChartRepositoryListPage.tsx",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
"unique-names-generator": "4.3.1"
},
"consolePlugin": {
"entry": "src/plugin.ts",
"exposedModules": {
"yamlTemplates": "src/models/templates.ts"
}
"entry": "src/plugin.ts"
}
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -425,9 +425,5 @@
"Pending": "Pending",
"OK": "OK",
"Failed": "Failed",
"This operator includes a console plugin which provides a custom interface that can be included in the console. The console plugin will prompt for the console to be refreshed once it has been enabled. Make sure you trust this console plugin before enabling.": "This operator includes a console plugin which provides a custom interface that can be included in the console. The console plugin will prompt for the console to be refreshed once it has been enabled. Make sure you trust this console plugin before enabling.",
"Hide operator description": "Hide operator description",
"Show operator description": "Show operator description",
"Operator description": "Operator description",
"This resource is provided by {{operatorName}}, a Kubernetes Operator enabled by the Operator Lifecycle Manager.": "This resource is provided by {{operatorName}}, a Kubernetes Operator enabled by the Operator Lifecycle Manager."
"This operator includes a console plugin which provides a custom interface that can be included in the console. The console plugin will prompt for the console to be refreshed once it has been enabled. Make sure you trust this console plugin before enabling.": "This operator includes a console plugin which provides a custom interface that can be included in the console. The console plugin will prompt for the console to be refreshed once it has been enabled. Make sure you trust this console plugin before enabling."
}
1 change: 0 additions & 1 deletion frontend/packages/operator-lifecycle-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"consolePlugin": {
"entry": "src/plugin.tsx",
"exposedModules": {
"useClusterServiceVersions": "src/utils/useClusterServiceVersions.tsx",
"operatorLinkTabSection": "src/components/topology/operator-link-tab-section.tsx",
"topologySidebarResourceLink": "src/components/topology/sidebar/resource-link.tsx",
"topologySidebarDetailsSections": "src/components/topology/sidebar/details-sections.tsx",
Expand Down
Loading

0 comments on commit c509284

Please sign in to comment.