Skip to content

Comments

NO-JIRA | feat: add template and migratable info to vms#113

Merged
tupyy merged 1 commit intomainfrom
critical-vm
Feb 18, 2026
Merged

NO-JIRA | feat: add template and migratable info to vms#113
tupyy merged 1 commit intomainfrom
critical-vm

Conversation

@tupyy
Copy link
Collaborator

@tupyy tupyy commented Feb 18, 2026

Add migratable boolean field that indicates whether a VM can be migrated. A VM is considered migratable when it has no critical concerns (issues with category "Critical"). Template field indicates if the VM is a template.

Changes:

  • Add IsMigratable and IsTemplate to VMSummary and VM models
  • Update store List() to compute migratable from critical concern count
  • Update store Get() to compute migratable from parser concerns
  • Add migratable and template to VM and VMDetails OpenAPI schemas
  • Update API extension mappings for both list and detail responses

Signed-off-by: Cosmin Tupangiu cosmin@redhat.com

@tupyy tupyy force-pushed the critical-vm branch 2 times, most recently from 46de092 to 30297f5 Compare February 18, 2026 10:02
Add migratable boolean field that indicates whether a VM can be migrated.
A VM is considered migratable when it has no critical concerns (issues
with category "Critical"). Template field indicates if the VM is a
template.

Changes:
- Add IsMigratable and IsTemplate to VMSummary and VM models
- Update store List() to compute migratable from critical concern count
- Update store Get() to compute migratable from parser concerns
- Add migratable and template to VM and VMDetails OpenAPI schemas
- Update API extension mappings for both list and detail responses

Signed-off-by: Cosmin Tupangiu <cosmin@redhat.com>
@tupyy tupyy merged commit 61fe9c7 into main Feb 18, 2026
8 checks passed
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