Skip to content

UI: exclude SYSTEM/ROUTING templates from Deploy Instance (#14414) - #14420

Open
nabassa1323 wants to merge 1 commit into
apache:mainfrom
nabassa1323:fix-14414-exclude-system-templates-deploy
Open

nabassa1323 wants to merge 1 commit into
apache:mainfrom
nabassa1323:fix-14414-exclude-system-templates-deploy

Conversation

@nabassa1323

Copy link
Copy Markdown

Description

Admins using Deploy Instance with templatefilter=all can see SYSTEM
templates (e.g. Debian-based system VM templates) when filtering by guest OS.

This change filters out SYSTEM and ROUTING templates from the Deploy Instance
template list so they are not selectable for user VMs.

Fixes: #14414

Types of changes

  • Bug fix
  • New feature

How to test

  1. As admin, register/use a Debian guest OS category
  2. Open Compute → Instances → Add Instance
  3. Select Debian guest OS / category
  4. Confirm system VM template(s) are not listed
  5. Confirm normal USER templates still appear and deploy works

return {
...listTemplatesResponse,
template: templates,
count: templates.length

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wont this break paging? the pager reads this count as the total, so with 25 templates it shows only the first 10 and no page 2

@codecov

codecov Bot commented Oct 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 21.69%. Comparing base (d3f0700) to head (6ffcf4f).

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #14420      +/-   ##
============================================
+ Coverage     20.39%   21.69%   +1.29%     
+ Complexity    21283    21281       -2     
============================================
  Files          6481     5988     -493     
  Lines        588040   545496   -42544     
  Branches      72021    63956    -8065     
============================================
- Hits         119957   118355    -1602     
+ Misses       455052   414340   -40712     
+ Partials      13031    12801     -230     
Flag Coverage Δ
uitests ?
unittests 21.69% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI : System vm template is shown or admin users in the deploy

2 participants