-
Notifications
You must be signed in to change notification settings - Fork 346
NAS-137713: Convert Containers pages to use new API #12620
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
base: master
Are you sure you want to change the base?
Conversation
- Add shorter type aliases: Instance, CreateInstance, UpdateInstance - Update all API directories to use new aliases instead of verbose names - Reduces repetition while maintaining backward compatibility
|
Claude finished @AlexKarpov98's task —— View job PR Review: Convert Containers pages to use new API ✅This is a well-executed refactoring that successfully converts the virtualization system from VM-focused to LXC container-specific architecture. Positive Aspects 🎉Clean Architecture Transition: The conversion from Modern Angular Patterns: Excellent adoption of current best practices including Smart Code Cleanup: Proper removal of 34+ VM-specific components (PCI passthrough, TPM, boot management, VNC) while maintaining functionality needed for containers. The refactoring to use Areas for Improvement 🔧Role Enum InconsistencyThe codebase mixes old VM roles ( // Instead of mixed usage, standardize to:
Role.ContainerRead, Role.ContainerWrite
Role.LxcConfigRead, Role.LxcConfigWriteType Safety GapThe // Consider filtering out VM-only device types:
export type ContainerDevice =
| VirtualizationDisk
| VirtualizationGpu
| VirtualizationProxy
| VirtualizationUsb
| VirtualizationNic;
// Remove: VirtualizationTpm | VirtualizationPciDeviceTest Coverage ConsistencyWhile tests were updated to use API Service Performance FixThe performance monitoring fix in Security & Accessibility ✅No security concerns identified. Role-based access controls are properly maintained with appropriate container-specific permissions. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Partial quick review
src/app/interfaces/api/api-call-and-subscribe-directory.interface.ts
Outdated
Show resolved
Hide resolved
.../instances/components/all-instances/all-instances-header/all-instances-header.component.html
Outdated
Show resolved
Hide resolved
|
@william-gr I made quick updates to move to SlideIn instead of Wizard. |
at least Virtual CPUs and memory we should have in the default view, I think, but I like this way better. |
|
@william-gr comments addressed :) |
src/app/interfaces/api/api-call-and-subscribe-directory.interface.ts
Outdated
Show resolved
Hide resolved
|
@william-gr good catches 👍 (fixed) |
|
Thanks! For the next set of fixes I believe you can create another PR that merges into this branch, as we discussed. |
…ates) (#12648) * NAS-137713: Convert Containers pages to use new API (next updates) * NAS-137713: PR Update * NAS-137713: PR update * NAS-137713: PR Update
WIP
Testing: see ticket & story.
not: API Limitations (for now API is limited and not fully created)
Available endpoints, which I used for current refactoring :
and as well config endpoints:
As well:
Preview: