Skip to content
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

Add direct download option to users in register template form #10193

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lucas-a-martins
Copy link
Contributor

@lucas-a-martins lucas-a-martins commented Jan 15, 2025

Description

Normal users are allowed to register a direct download template via API, but the option is disabled in the UI.

This PR fix the issue #9923 by removing this restriction.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • build/CI
  • test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

The template registered by a normal user using the direct download option:

Screenshot from 2025-01-15 17-44-59

How Has This Been Tested?

I tested by registering a template via UI using an account with the User role. Selecting the KVM hypervisor gave me the direct download option.

Copy link
Contributor

@shwstppr shwstppr left a comment

Choose a reason for hiding this comment

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

code lgtm

@shwstppr
Copy link
Contributor

@blueorangutan ui

@shwstppr shwstppr requested a review from nvazquez January 16, 2025 09:00
@blueorangutan
Copy link

@shwstppr a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

Copy link

codecov bot commented Jan 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 16.16%. Comparing base (0c13ded) to head (7ff7d25).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main   #10193   +/-   ##
=========================================
  Coverage     16.16%   16.16%           
  Complexity    13015    13015           
=========================================
  Files          5644     5644           
  Lines        494640   494640           
  Branches      59937    59937           
=========================================
  Hits          79955    79955           
  Misses       405858   405858           
  Partials       8827     8827           
Flag Coverage Δ
uitests 4.01% <ø> (ø)
unittests 17.01% <ø> (ø)

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

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

@blueorangutan
Copy link

UI build: ✔️
Live QA URL: https://qa.cloudstack.cloud/simulator/pr/10193 (QA-JID-507)

@DaanHoogland
Copy link
Contributor

@lucas-a-martins , it does not seem to work in qa. I can not tell from the API if this needs a version after 4.20. Do you know?

Copy link
Contributor

@nvazquez nvazquez left a comment

Choose a reason for hiding this comment

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

LGTM - haven't tested it though

@lucas-a-martins
Copy link
Contributor Author

lucas-a-martins commented Jan 16, 2025

@lucas-a-martins , it does not seem to work in qa. I can not tell from the API if this needs a version after 4.20. Do you know?

@DaanHoogland , I tried to test in the same QA (#10193 (comment)), but the only hypervisor option it has for normal users is "Simulator".

image

Even before this PR, the direct download only works if the hypervisor is KVM or hyperCustomShow (I actually don't know what this mean haha). The first test I did (the one in the PR description) was in an 4.20 environment with the KVM option for normal users.

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.

5 participants