Skip to content

Conversation

@elibosley
Copy link
Member

@elibosley elibosley commented Dec 19, 2025

Reverts #1764

Summary by CodeRabbit

  • Feature Removal

    • Simplified Docker container management by removing advanced features including auto-start configuration, container statistics monitoring, and Tailscale integration.
    • Removed port conflict detection and template-based configuration scanning.
    • Eliminated warnings and alerts notifications feature.
  • UI Changes

    • Streamlined Docker interface with reduced component complexity.
    • Removed multiple Docker management modals and overlays.
  • Dependencies

    • Removed unused dependencies from project configurations.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 19, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

This pull request performs a comprehensive cleanup of the codebase by removing substantial portions of Docker-related functionality, complex organizer mutations, logging/stats/Tailscale integrations, notification deduplication logic, and numerous frontend components and composables. Changes span environment configurations, GraphQL schema, backend services, frontend components, and utility functions.

Changes

Cohort / File(s) Summary
Environment & Configuration
api/.env.development, api/.env.production, api/.env.staging, api/.eslintrc.ts, api/.gitignore, api/.prettierignore, web/.prettierignore
Removed environment variables (PATHS_DOCKER_TEMPLATES, ENABLE_NEXT_DOCKER_RELEASE), removed dist and dev directory ignore patterns, removed linting ignore rules.
Docker Backend Services (Removed)
api/src/unraid-api/graph/resolvers/docker/docker-autostart.service.*, docker-log.service.*, docker-network.service.*, docker-port.service.*, docker-stats.service.*, docker-tailscale.service.*, docker-template-icon.service.ts
Deleted seven service classes including autostart entry parsing, container logging, network caching, port conflict detection, container stats streaming, Tailscale status integration, and template icon retrieval. Removed corresponding test files.
Docker Organizer Service
api/src/unraid-api/graph/resolvers/docker/organizer/docker-organizer.service.ts
Removed complex mutations (moveItemsToPosition, renameFolderById, createFolderWithItems, updateViewPreferences); simplified to core folder creation and children management.
Docker GraphQL Mutations (Removed)
api/src/unraid-api/graph/resolvers/docker/docker.mutations.resolver.ts
Removed pause, unpause, removeContainer, updateAutostartConfiguration, updateContainer/s/All mutations; retained only start/stop.
Docker Core Services (Modified)
api/src/unraid-api/graph/resolvers/docker/docker.service.ts, docker-container.resolver.ts, docker-manifest.service.ts
Removed port conflict, log, and network query methods; simplified getNetworks, removed service dependencies (TemplateScannerService, TailscaleService, LogService); added self-contained Docker client management.
Docker Resolver & Module (Simplified)
api/src/unraid-api/graph/resolvers/docker/docker.resolver.ts, docker.module.ts
Removed container, portConflicts, logs fields and related queries; removed complex mutations and subscriptions; reduced module imports and providers.
Docker GraphQL Schema
api/generated-schema.graphql
Removed types: DockerPortConflict*, DockerContainerLogs, DockerContainerStats, TailscaleStatus, DockerAutostartEntryInput; simplified DockerContainer and Docker fields; updated organizer structure from flat entries to hierarchical root.
Organizer Core
api/src/unraid-api/organizer/organizer.ts, organizer.model.ts
Removed removeStaleRefsFromView, replaced enrichFlatEntries with resolveEntry; changed ResolvedOrganizerView from flatEntries/rootId to nested root structure.
Notification Service (Simplified)
api/src/unraid-api/graph/resolvers/notifications/notifications.service.ts, notifications.resolver.ts, notifications.model.ts
Removed notifyIfUnique, getWarningsAndAlerts, deduplication logic; removed warningsAndAlerts resolver field and subscription.
File Modifier & Docker Page Modification
api/src/unraid-api/unraid-file-modifier/file-modification.ts, docker-containers-page.modification.ts
Removed version check parameter from shouldApply; removed entire Docker Containers page modification.
Docker-related Utilities & Dependencies
api/src/common/compare-semver-version.*, get-unraid-version-sync.ts, api/src/core/utils/network.ts, utils/docker-client.ts
Removed semver comparison, Unraid version helpers, LAN IP resolution, and singleton Docker client factory.
Package Dependencies
api/package.json, web/package.json
Removed fast-xml-parser (api), @formkit/auto-animate and @tanstack/vue-table (web).
Web Components (Docker-related, Removed)
web/src/components/Docker/ (18+ files)
Deleted: BaseTreeTable, ContainerOverviewCard, ContainerSizesModal, DockerAutostartSettings, DockerConsoleViewer, DockerContainerManagement, DockerContainerOverview*, DockerContainersTable, DockerLogViewerModal, DockerNameCell, DockerOrphanedAlert, DockerPortConflictsAlert, DockerSidebarTree, DockerTailscaleIndicator, RemoveContainerModal, SingleDockerLogViewer, all Docker-related GraphQL query/mutation files.
Web Components (General, Removed)
web/src/components/Common/
Deleted: BaseTreeTable, ConfirmActionsModal, MoveToFolderModal, MultiValueCopyBadges, ResizableSlideover, TableColumnMenu.
Web Components (Logs & Notifications)
web/src/components/Logs/BaseLogViewer.vue, web/src/components/Notifications/CriticalNotifications.standalone.vue
Removed log viewer framework and critical notifications UI.
Web Components (New/Modified)
web/src/components/Docker/Console.vue, Logs.vue, Overview.vue, Preview.vue, Logs/SingleLogViewer.vue
Added minimal Console component; introduced simplified Logs component; updated Overview/Preview styling; refactored SingleLogViewer with inline scroll handling and highlighting.
Web Composables (Removed)
web/src/composables/ (11+ files)
Deleted: useColumnDragDrop, useContainerActions, useContextMenu, useDockerBulkActions, useDockerColumnVisibility, useDockerConsoleSessions, useDockerContainerStats, useDockerEditNavigation, useDockerLogSessions, useDockerRowActions, useDockerTableColumns.
Web GraphQL Definitions
web/src/composables/gql/gql.ts
Removed 50+ GraphQL operation overloads for Docker queries/mutations/subscriptions and notifications.
Web Mounting & Registry
web/src/components/Wrapper/mount-engine.ts, component-registry.ts, web/__test__/components/Wrapper/mount-engine.test.ts
Removed portal-based mounting, intra-page navigation scaffolding, decorateContainer flag; removed critical-notifications and docker-container-overview mappings from registry.
Component Declarations
web/components.d.ts
Removed 25+ global component declarations; added Console and Logs.
Build & Testing
api/scripts/build.ts, api/justfile, api/src/__test__/store/modules/paths.test.ts, api/src/unraid-api/graph/resolvers/docker/docker.service.integration.spec.ts, various .spec.ts files
Updated import path; removed watch recipe; removed docker-userprefs from test expectations; removed integration test suite; deleted comprehensive unit tests for Docker services.
Core Log & Misc
api/src/core/log.ts, catch-handlers.ts
Removed LOG_TRANSPORT mechanism and file path branching; made address required in DockerError; disabled console colorization.
Documentation
api/README.md, api/docs/developer/docker.md
Removed Developer Documentation section; deleted entire Docker architecture/design documentation.

Estimated code review effort

🎯 5 (Critical) | ⏱️ ~120 minutes

Areas requiring extra attention:

  • Backend service removal cascade: Verify that removal of DockerLogService, DockerNetworkService, DockerPortService, DockerStatsService, DockerTailscaleService, DockerTemplateScannerService, and DockerAutostartService does not break dependent queries, mutations, subscriptions, or internal service calls. Check for orphaned GraphQL resolver references.
  • GraphQL schema refactoring: The substantial changes to Docker schema (removal of types, fields, mutations) require validation that client-side queries/mutations in the codebase are aligned and that breaking API changes are intentional.
  • Organizer data model restructuring: The shift from flatEntries/rootId to a hierarchical root structure (ResolvedOrganizerEntry union) needs verification that resolution logic, storage, and serialization are consistent across backend and frontend.
  • Frontend component/composable deletion: Confirm that no remaining Vue components, pages, or router paths reference the 30+ deleted components and composables (BaseTreeTable, DockerContainersTable, useDockerTableColumns, useDockerLogSessions, etc.).
  • Environment variable and configuration cleanup: Ensure PATHS_DOCKER_TEMPLATES and ENABLE_NEXT_DOCKER_RELEASE removal does not break deployment pipelines or legacy code paths.
  • Test coverage loss: Review deleted test suites (docker-autostart.service.spec.ts, docker-network.service.spec.ts, docker-port.service.spec.ts, compare-semver-version.spec.ts, etc.) to understand if coverage is replaced or intentionally removed, and assess impact on regression detection.
  • File modifier and Unraid version comparison: Verify that removal of compareUnraidVersionSync and the Docker Containers page modification does not impact critical patch application workflows.
  • Mount engine and portal removal: Confirm that the removal of portal-based mounting, navigation hijacking, and scope orchestration does not break embedded component rendering or iframe-based features.

Possibly related PRs

Suggested reviewers

  • zackspear
  • mdatelle

🐰 A cleanup so grand, so sweeping and wide,
Removed all the clutter that Docker had tied,
Simpler resolvers, less tangled controls,
Now organizers dance toward cleaner goals!
Hop-hop, refactor—the code is more bright!

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch revert-1764-feat/docker-overview-table

📜 Recent review details

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d6055f1 and d589a8f.

⛔ Files ignored due to path filters (3)
  • api/src/__test__/store/modules/__snapshots__/paths.test.ts.snap is excluded by !**/*.snap
  • api/src/unraid-api/cli/generated/graphql.ts is excluded by !**/generated/**
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (152)
  • api/.env.development (0 hunks)
  • api/.env.production (0 hunks)
  • api/.env.staging (0 hunks)
  • api/.eslintrc.ts (1 hunks)
  • api/.gitignore (0 hunks)
  • api/.prettierignore (0 hunks)
  • api/README.md (0 hunks)
  • api/dev/configs/api.json (1 hunks)
  • api/docs/developer/docker.md (0 hunks)
  • api/generated-schema.graphql (2 hunks)
  • api/justfile (0 hunks)
  • api/package.json (0 hunks)
  • api/scripts/build.ts (1 hunks)
  • api/src/__test__/store/modules/paths.test.ts (0 hunks)
  • api/src/common/compare-semver-version.spec.ts (0 hunks)
  • api/src/common/compare-semver-version.ts (0 hunks)
  • api/src/common/get-unraid-version-sync.ts (0 hunks)
  • api/src/core/log.ts (2 hunks)
  • api/src/core/utils/misc/catch-handlers.ts (1 hunks)
  • api/src/core/utils/network.ts (0 hunks)
  • api/src/environment.ts (0 hunks)
  • api/src/store/modules/paths.ts (0 hunks)
  • api/src/unraid-api/app/__test__/app.module.integration.spec.ts (4 hunks)
  • api/src/unraid-api/auth/api-key.service.ts (0 hunks)
  • api/src/unraid-api/graph/resolvers/docker/container-status.job.ts (2 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker-autostart.service.spec.ts (0 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker-autostart.service.ts (0 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker-config.model.ts (0 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker-config.service.ts (0 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker-container.resolver.ts (1 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker-event.service.spec.ts (3 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker-event.service.ts (1 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker-log.service.spec.ts (0 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker-log.service.ts (0 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker-manifest.service.ts (1 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker-network.service.spec.ts (0 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker-network.service.ts (0 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker-port.service.spec.ts (0 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker-port.service.ts (0 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker-stats.service.ts (0 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker-tailscale.service.ts (0 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker-template-icon.service.ts (0 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker-template-scanner.model.ts (0 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker-template-scanner.service.spec.ts (0 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker-template-scanner.service.ts (0 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker.model.ts (1 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker.module.spec.ts (2 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker.module.ts (1 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker.mutations.resolver.spec.ts (0 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker.mutations.resolver.ts (1 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker.resolver.spec.ts (5 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker.resolver.ts (4 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker.service.integration.spec.ts (0 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker.service.spec.ts (4 hunks)
  • api/src/unraid-api/graph/resolvers/docker/docker.service.ts (5 hunks)
  • api/src/unraid-api/graph/resolvers/docker/organizer/docker-organizer.service.spec.ts (1 hunks)
  • api/src/unraid-api/graph/resolvers/docker/organizer/docker-organizer.service.ts (3 hunks)
  • api/src/unraid-api/graph/resolvers/docker/utils/docker-client.ts (0 hunks)
  • api/src/unraid-api/graph/resolvers/notifications/notifications.model.ts (0 hunks)
  • api/src/unraid-api/graph/resolvers/notifications/notifications.module.ts (0 hunks)
  • api/src/unraid-api/graph/resolvers/notifications/notifications.resolver.ts (0 hunks)
  • api/src/unraid-api/graph/resolvers/notifications/notifications.service.spec.ts (0 hunks)
  • api/src/unraid-api/graph/resolvers/notifications/notifications.service.ts (0 hunks)
  • api/src/unraid-api/graph/resolvers/resolvers.module.ts (2 hunks)
  • api/src/unraid-api/graph/resolvers/vms/vms.service.spec.ts (0 hunks)
  • api/src/unraid-api/organizer/organizer.model.ts (1 hunks)
  • api/src/unraid-api/organizer/organizer.resolution.test.ts (9 hunks)
  • api/src/unraid-api/organizer/organizer.test.ts (1 hunks)
  • api/src/unraid-api/organizer/organizer.ts (2 hunks)
  • api/src/unraid-api/unraid-file-modifier/file-modification.ts (2 hunks)
  • api/src/unraid-api/unraid-file-modifier/modifications/docker-containers-page.modification.ts (0 hunks)
  • api/src/unraid-api/unraid-file-modifier/unraid-file-modifier.service.ts (0 hunks)
  • packages/unraid-shared/src/pubsub/graphql.pubsub.ts (0 hunks)
  • web/.prettierignore (0 hunks)
  • web/__test__/components/Wrapper/mount-engine.test.ts (1 hunks)
  • web/components.d.ts (2 hunks)
  • web/eslint.config.mjs (1 hunks)
  • web/package.json (0 hunks)
  • web/postcss/scopeTailwindToUnapi.ts (0 hunks)
  • web/public/test-pages/all-components.html (0 hunks)
  • web/src/assets/main.css (3 hunks)
  • web/src/components/Common/BaseTreeTable.vue (0 hunks)
  • web/src/components/Common/ConfirmActionsModal.vue (0 hunks)
  • web/src/components/Common/MoveToFolderModal.vue (0 hunks)
  • web/src/components/Common/MultiValueCopyBadges.vue (0 hunks)
  • web/src/components/Common/ResizableSlideover.vue (0 hunks)
  • web/src/components/Common/TableColumnMenu.vue (0 hunks)
  • web/src/components/Docker/Console.vue (1 hunks)
  • web/src/components/Docker/ContainerOverviewCard.vue (0 hunks)
  • web/src/components/Docker/ContainerSizesModal.vue (0 hunks)
  • web/src/components/Docker/DockerAutostartSettings.vue (0 hunks)
  • web/src/components/Docker/DockerConsoleViewer.vue (0 hunks)
  • web/src/components/Docker/DockerContainerManagement.vue (0 hunks)
  • web/src/components/Docker/DockerContainerOverview.standalone.vue (0 hunks)
  • web/src/components/Docker/DockerContainerOverview.vue (0 hunks)
  • web/src/components/Docker/DockerContainerStatCell.vue (0 hunks)
  • web/src/components/Docker/DockerContainersTable.vue (0 hunks)
  • web/src/components/Docker/DockerLogViewerModal.vue (0 hunks)
  • web/src/components/Docker/DockerNameCell.vue (0 hunks)
  • web/src/components/Docker/DockerOrphanedAlert.vue (0 hunks)
  • web/src/components/Docker/DockerPortConflictsAlert.vue (0 hunks)
  • web/src/components/Docker/DockerSidebarTree.vue (0 hunks)
  • web/src/components/Docker/DockerTailscaleIndicator.vue (0 hunks)
  • web/src/components/Docker/Logs.vue (1 hunks)
  • web/src/components/Docker/Overview.vue (1 hunks)
  • web/src/components/Docker/Preview.vue (1 hunks)
  • web/src/components/Docker/RemoveContainerModal.vue (0 hunks)
  • web/src/components/Docker/SingleDockerLogViewer.vue (0 hunks)
  • web/src/components/Docker/docker-container-sizes.query.ts (0 hunks)
  • web/src/components/Docker/docker-containers.query.ts (0 hunks)
  • web/src/components/Docker/docker-create-folder-with-items.mutation.ts (0 hunks)
  • web/src/components/Docker/docker-create-folder.mutation.ts (0 hunks)
  • web/src/components/Docker/docker-delete-entries.mutation.ts (0 hunks)
  • web/src/components/Docker/docker-logs.query.ts (0 hunks)
  • web/src/components/Docker/docker-move-entries.mutation.ts (0 hunks)
  • web/src/components/Docker/docker-move-items-to-position.mutation.ts (0 hunks)
  • web/src/components/Docker/docker-pause-container.mutation.ts (0 hunks)
  • web/src/components/Docker/docker-port-conflicts.types.ts (0 hunks)
  • web/src/components/Docker/docker-refresh-digests.mutation.ts (0 hunks)
  • web/src/components/Docker/docker-remove-container.mutation.ts (0 hunks)
  • web/src/components/Docker/docker-reset-template-mappings.mutation.ts (0 hunks)
  • web/src/components/Docker/docker-set-folder-children.mutation.ts (0 hunks)
  • web/src/components/Docker/docker-start-container.mutation.ts (0 hunks)
  • web/src/components/Docker/docker-stats.subscription.ts (0 hunks)
  • web/src/components/Docker/docker-stop-container.mutation.ts (0 hunks)
  • web/src/components/Docker/docker-tailscale-status.query.ts (0 hunks)
  • web/src/components/Docker/docker-unpause-container.mutation.ts (0 hunks)
  • web/src/components/Docker/docker-update-all-containers.mutation.ts (0 hunks)
  • web/src/components/Docker/docker-update-autostart-configuration.mutation.ts (0 hunks)
  • web/src/components/Docker/docker-update-containers.mutation.ts (0 hunks)
  • web/src/components/Docker/docker-update-view-prefs.mutation.ts (0 hunks)
  • web/src/components/LayoutViews/Detail/DetailTest.standalone.vue (2 hunks)
  • web/src/components/Logs/BaseLogViewer.vue (0 hunks)
  • web/src/components/Logs/SingleLogViewer.vue (9 hunks)
  • web/src/components/Notifications/CriticalNotifications.standalone.vue (0 hunks)
  • web/src/components/Notifications/graphql/notification.query.ts (0 hunks)
  • web/src/components/Notifications/graphql/notification.subscription.ts (0 hunks)
  • web/src/components/RClone/RCloneOverview.vue (1 hunks)
  • web/src/components/Wrapper/component-registry.ts (0 hunks)
  • web/src/components/Wrapper/mount-engine.ts (3 hunks)
  • web/src/composables/gql/gql.ts (3 hunks)
  • web/src/composables/useColumnDragDrop.ts (0 hunks)
  • web/src/composables/useContainerActions.ts (0 hunks)
  • web/src/composables/useContextMenu.ts (0 hunks)
  • web/src/composables/useDockerBulkActions.ts (0 hunks)
  • web/src/composables/useDockerColumnVisibility.ts (0 hunks)
  • web/src/composables/useDockerConsoleSessions.ts (0 hunks)
  • web/src/composables/useDockerContainerStats.ts (0 hunks)
  • web/src/composables/useDockerEditNavigation.ts (0 hunks)
  • web/src/composables/useDockerLogSessions.ts (0 hunks)
  • web/src/composables/useDockerRowActions.ts (0 hunks)
  • web/src/composables/useDockerTableColumns.ts (0 hunks)

Comment @coderabbitai help to get the list of available commands and usage tips.

@elibosley elibosley changed the title fix: "feat: replace docker overview table with web component (7.3+)" fix: revert replace docker overview table with web component (7.3+) Dec 19, 2025
@elibosley elibosley merged commit 560db88 into main Dec 19, 2025
6 of 7 checks passed
@elibosley elibosley deleted the revert-1764-feat/docker-overview-table branch December 19, 2025 17:12
ObjectType,
registerEnumType,
} from '@nestjs/graphql';
import { Field, ID, Int, ObjectType, registerEnumType } from '@nestjs/graphql';

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import ID.

Copilot Autofix

AI about 1 month ago

In general, unused imports should be removed from the import statement to avoid confusion and keep the code clean. Here, the ID symbol from @nestjs/graphql is not referenced anywhere in this file, while the other imported symbols are used. The best fix is to simply remove ID from the named imports, leaving the rest of the import intact.

Concretely, in api/src/unraid-api/graph/resolvers/docker/docker.model.ts, adjust the first line so that ID is no longer part of the destructuring import from @nestjs/graphql. No other lines or imports need to be touched, and no new methods or definitions are required.

Suggested changeset 1
api/src/unraid-api/graph/resolvers/docker/docker.model.ts

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/api/src/unraid-api/graph/resolvers/docker/docker.model.ts b/api/src/unraid-api/graph/resolvers/docker/docker.model.ts
--- a/api/src/unraid-api/graph/resolvers/docker/docker.model.ts
+++ b/api/src/unraid-api/graph/resolvers/docker/docker.model.ts
@@ -1,4 +1,4 @@
-import { Field, ID, Int, ObjectType, registerEnumType } from '@nestjs/graphql';
+import { Field, Int, ObjectType, registerEnumType } from '@nestjs/graphql';
 
 import { Node } from '@unraid/shared/graphql.model.js';
 import { GraphQLBigInt, GraphQLJSON, GraphQLPort } from 'graphql-scalars';
EOF
@@ -1,4 +1,4 @@
import { Field, ID, Int, ObjectType, registerEnumType } from '@nestjs/graphql';
import { Field, Int, ObjectType, registerEnumType } from '@nestjs/graphql';

import { Node } from '@unraid/shared/graphql.model.js';
import { GraphQLBigInt, GraphQLJSON, GraphQLPort } from 'graphql-scalars';
Copilot is powered by AI and may make mistakes. Always verify output.
@@ -1,30 +1,20 @@
import { CACHE_MANAGER } from '@nestjs/cache-manager';
import { Inject, Injectable, Logger } from '@nestjs/common';
import { Inject, Injectable, Logger, OnModuleInit } from '@nestjs/common';

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import OnModuleInit.

Copilot Autofix

AI about 1 month ago

To fix an unused import, the best approach is simply to remove the unused symbol from the import statement, leaving the rest of the imports intact. This avoids any behavior changes, since unused type imports have no runtime effect. In this file, only OnModuleInit is unused; Inject, Injectable, and Logger remain necessary.

Concretely, in api/src/unraid-api/graph/resolvers/docker/docker.service.ts, edit the import from @nestjs/common on line 2 to remove OnModuleInit from the destructuring list. No other code changes or additional imports are needed.

Suggested changeset 1
api/src/unraid-api/graph/resolvers/docker/docker.service.ts

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/api/src/unraid-api/graph/resolvers/docker/docker.service.ts b/api/src/unraid-api/graph/resolvers/docker/docker.service.ts
--- a/api/src/unraid-api/graph/resolvers/docker/docker.service.ts
+++ b/api/src/unraid-api/graph/resolvers/docker/docker.service.ts
@@ -1,5 +1,5 @@
 import { CACHE_MANAGER } from '@nestjs/cache-manager';
-import { Inject, Injectable, Logger, OnModuleInit } from '@nestjs/common';
+import { Inject, Injectable, Logger } from '@nestjs/common';
 import { readFile } from 'fs/promises';
 
 import { type Cache } from 'cache-manager';
EOF
@@ -1,5 +1,5 @@
import { CACHE_MANAGER } from '@nestjs/cache-manager';
import { Inject, Injectable, Logger, OnModuleInit } from '@nestjs/common';
import { Inject, Injectable, Logger } from '@nestjs/common';
import { readFile } from 'fs/promises';

import { type Cache } from 'cache-manager';
Copilot is powered by AI and may make mistakes. Always verify output.
@codecov
Copy link

codecov bot commented Dec 19, 2025

Codecov Report

❌ Patch coverage is 70.68493% with 107 lines in your changes missing coverage. Please review.
✅ Project coverage is 52.94%. Comparing base (d6055f1) to head (d589a8f).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
web/src/components/Docker/Console.vue 2.27% 43 Missing ⚠️
web/src/components/Docker/Logs.vue 5.00% 19 Missing ⚠️
web/src/components/Docker/Overview.vue 0.00% 11 Missing ⚠️
web/src/components/Logs/SingleLogViewer.vue 90.51% 11 Missing ⚠️
...nraid-api/graph/resolvers/docker/docker.service.ts 89.18% 8 Missing ⚠️
web/src/components/Docker/Preview.vue 0.00% 5 Missing ⚠️
...nents/LayoutViews/Detail/DetailTest.standalone.vue 0.00% 4 Missing ⚠️
...raid-api/graph/resolvers/docker/docker.resolver.ts 71.42% 2 Missing ⚠️
.../graph/resolvers/docker/docker-manifest.service.ts 0.00% 1 Missing ⚠️
...lvers/docker/organizer/docker-organizer.service.ts 85.71% 1 Missing ⚠️
... and 2 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1853      +/-   ##
==========================================
+ Coverage   46.43%   52.94%   +6.51%     
==========================================
  Files         954      868      -86     
  Lines       59788    50099    -9689     
  Branches     5545     5091     -454     
==========================================
- Hits        27764    26527    -1237     
+ Misses      31905    23497    -8408     
+ Partials      119       75      -44     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Contributor

This plugin has been deployed to Cloudflare R2 and is available for testing.
Download it at this URL:

https://preview.dl.unraid.net/unraid-api/tag/PR1853/dynamix.unraid.net.plg

elibosley pushed a commit that referenced this pull request Dec 19, 2025
🤖 I have created a release *beep* *boop*
---


## [4.29.1](v4.29.0...v4.29.1)
(2025-12-19)


### Bug Fixes

* revert replace docker overview table with web component (7.3+)
([#1853](#1853))
([560db88](560db88))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
elibosley added a commit that referenced this pull request Dec 19, 2025
elibosley added a commit that referenced this pull request Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants