-
Notifications
You must be signed in to change notification settings - Fork 16
fix: revert replace docker overview table with web component (7.3+) #1853
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
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThis 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
Estimated code review effort🎯 5 (Critical) | ⏱️ ~120 minutes Areas requiring extra attention:
Possibly related PRs
Suggested reviewers
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Repository UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (152)
Comment |
| 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
Show autofix suggestion
Hide autofix suggestion
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.
-
Copy modified line R1
| @@ -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'; |
| @@ -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
Show autofix suggestion
Hide autofix suggestion
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.
-
Copy modified line R2
| @@ -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'; |
Codecov Report❌ Patch coverage is 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. 🚀 New features to boost your workflow:
|
|
This plugin has been deployed to Cloudflare R2 and is available for testing. |
🤖 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>
Reverts #1764
Summary by CodeRabbit
Feature Removal
UI Changes
Dependencies
✏️ Tip: You can customize this high-level summary in your review settings.