Skip to content

Remove isMirrored parameter when creating a disk offering through UI#10474

Merged
DaanHoogland merged 1 commit intoapache:4.20from
scclouds:remove-hardcoded-parameter-value-ismirrored-of-creatediskoffering-api-through-ui
Mar 4, 2025
Merged

Remove isMirrored parameter when creating a disk offering through UI#10474
DaanHoogland merged 1 commit intoapache:4.20from
scclouds:remove-hardcoded-parameter-value-ismirrored-of-creatediskoffering-api-through-ui

Conversation

@julien-vaz
Copy link
Copy Markdown
Contributor

Description

When a Disk Offering is created through UI, CloudStack passes the isMirrored value as a parameter. However, the createDiskOffering API does not have this parameter.

Therefore, the UI was changed in order to not send the isMirrored parameter to the createDiskOffering API.

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

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

How Has This Been Tested?

After the changes, a Disk Offering was created through UI and the isMirrored parameter was no longer being send in the request.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 16.16%. Comparing base (b92fd17) to head (cb851bc).
Report is 10 commits behind head on 4.20.

Additional details and impacted files
@@             Coverage Diff              @@
##               4.20   #10474      +/-   ##
============================================
+ Coverage     15.98%   16.16%   +0.17%     
- Complexity    13086    13276     +190     
============================================
  Files          5650     5667      +17     
  Lines        495756   498095    +2339     
  Branches      60018    60264     +246     
============================================
+ Hits          79261    80493    +1232     
- Misses       407641   408586     +945     
- Partials       8854     9016     +162     
Flag Coverage Δ
uitests 3.99% <ø> (-0.01%) ⬇️
unittests 17.01% <ø> (+0.18%) ⬆️

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.

@Pearl1594
Copy link
Copy Markdown
Contributor

@julien-vaz Does this effect 4.20 as well, if so can you rebase the code to 4.20 please. Thanks.

Copy link
Copy Markdown
Member

@bernardodemarco bernardodemarco left a comment

Choose a reason for hiding this comment

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

clgtm

@julien-vaz julien-vaz force-pushed the remove-hardcoded-parameter-value-ismirrored-of-creatediskoffering-api-through-ui branch from 52bf2ec to cb851bc Compare March 4, 2025 13:54
@julien-vaz julien-vaz changed the base branch from main to 4.20 March 4, 2025 13:55
@julien-vaz
Copy link
Copy Markdown
Contributor Author

@blueorangutan ui

@blueorangutan
Copy link
Copy Markdown

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

@blueorangutan
Copy link
Copy Markdown

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

@DaanHoogland
Copy link
Copy Markdown
Contributor

verified in QA
before:

GET	https://qa.cloudstack.cloud/client/api/?isMirrored=false&name=Huge&displaytext=Huge&storageType=shared&cacheMode=none&provisioningType=thin&customized=false&disksizestrictness=false&encrypt=false&disksize=1000&command=createDiskOffering&response=json&sessionkey=6kik4fHCa4dkz9nW6NoMiJSP2DY

after:

GET	https://qa.cloudstack.cloud/client/api/?name=Tiny&displaytext=Tiny&storageType=shared&cacheMode=none&provisioningType=thin&customized=false&disksizestrictness=false&encrypt=false&disksize=1&command=createDiskOffering&response=json&sessionkey=6kik4fHCa4dkz9nW6NoMiJSP2DY```

@DaanHoogland DaanHoogland merged commit 5cbe3da into apache:4.20 Mar 4, 2025
24 checks passed
@boring-cyborg
Copy link
Copy Markdown

boring-cyborg bot commented Mar 4, 2025

Awesome work, congrats on your first merged pull request!

@Pearl1594 Pearl1594 moved this to Done in ACS 4.20.1 Mar 17, 2025
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Jun 19, 2025
…iskOffering API through UI (apache#10474)

Co-authored-by: Julien Hervot de Mattos Vaz <julien.vaz@scclouds.com.br>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants