Skip to content

Conversation

rahulbcn27
Copy link
Contributor

@rahulbcn27 rahulbcn27 commented Jan 19, 2023

Description

This is a improvement change to make displayText field optional for createNetwork as mentioned in issue #6855.

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)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

@rohityadavcloud
Copy link
Member

@blueorangutan ui

@blueorangutan
Copy link

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

@rohityadavcloud
Copy link
Member

@blueorangutan ui

@blueorangutan
Copy link

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

</template>
<a-input
v-model:value="form.displaytext"
v-model:value="form.name"
Copy link
Contributor

Choose a reason for hiding this comment

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

@rahulbcn27 , I don´t mean to take the name unconditionally, but only when the users decides to submit without a value added in the displaytext field.

I would recommend to make the field optional on the command and implement the check on the service.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @DaanHoogland for the comment. I am implementing the change suggested by you and Rohit.

@blueorangutan
Copy link

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

@blueorangutan
Copy link

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

@codecov
Copy link

codecov bot commented Jan 19, 2023

Codecov Report

Merging #7112 (4034fc1) into main (e8c32d6) will increase coverage by 0.84%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main    #7112      +/-   ##
============================================
+ Coverage     11.78%   12.63%   +0.84%     
- Complexity     7668     8609     +941     
============================================
  Files          2503     2711     +208     
  Lines        245981   255748    +9767     
  Branches      38380    39871    +1491     
============================================
+ Hits          28988    32303    +3315     
- Misses       213222   219347    +6125     
- Partials       3771     4098     +327     
Impacted Files Coverage Δ
...com/cloud/agent/manager/ConnectedAgentAttache.java 25.00% <0.00%> (-12.50%) ⬇️
...ubernetes/cluster/utils/KubernetesClusterUtil.java 2.28% <0.00%> (-8.18%) ⬇️
.../apache/cloudstack/metrics/MetricsServiceImpl.java 12.43% <0.00%> (-2.52%) ⬇️
...apache/cloudstack/syslog/AlertsSyslogAppender.java 56.49% <0.00%> (-2.26%) ⬇️
.../main/java/com/cloud/domain/dao/DomainDaoImpl.java 19.49% <0.00%> (-1.89%) ⬇️
...ava/com/cloud/upgrade/dao/Upgrade41510to41520.java 12.50% <0.00%> (-1.79%) ⬇️
...ava/com/cloud/upgrade/dao/Upgrade41720to41800.java 0.85% <0.00%> (-1.04%) ⬇️
...ava/com/cloud/upgrade/dao/Upgrade41520to41600.java 6.45% <0.00%> (-1.02%) ⬇️
.../src/main/java/com/cloud/configuration/Config.java 88.91% <0.00%> (-0.82%) ⬇️
...udstack/consoleproxy/ConsoleAccessManagerImpl.java 4.90% <0.00%> (-0.65%) ⬇️
... and 282 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@blueorangutan
Copy link

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

@blueorangutan
Copy link

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

Copy link
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

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

looks mostly good, I am not sure if my suggestion is needed. If empty string is checked for elsewhere, it isn´t. Please check or change.

@rahulbcn27
Copy link
Contributor Author

@blueorangutan ui

@blueorangutan
Copy link

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

@blueorangutan
Copy link

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

@rahulbcn27
Copy link
Contributor Author

@blueorangutan ui

@blueorangutan
Copy link

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

@blueorangutan
Copy link

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

Copy link
Member

@rohityadavcloud rohityadavcloud left a comment

Choose a reason for hiding this comment

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

I don't see UI changes.

  • You can add unit test
  • You need to ask somebody to manually QA your feature for UI changes which arent' covered by automated tests

@rahulbcn27 rahulbcn27 requested review from DaanHoogland and rohityadavcloud and removed request for DaanHoogland January 25, 2023 05:03
Copy link
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

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

looks good, now we have to decide if we merge like this or apply this concequently throughout as requested in #6855 . I am fine with this, but it not closing that

…rk/CreateNetworkCmd.java

Co-authored-by: Stephan Krug <stekrug@icloud.com>
@vladimirpetrov
Copy link
Contributor

Only 'Create network' has been fixed, here are the operations that still require 'displaytext' as a mandatory parameter:

  • create disk offering
  • create service (system, compute) offering
  • create network offering
  • create vpcoffering
  • create project
  • create vpc
  • create template from volume
  • register/upload template
  • register/upload ISO

@rohityadavcloud
Copy link
Member

@vladimirpetrov the issue is very general in nature; in the #6855 issue, Daan has only mentioned for the create Network form. I think we can start with that and explore all the other forms/actions you've identified.

@rahulbcn27 can you review the outstanding remarks and;

@blueorangutan package

@blueorangutan
Copy link

@rohityadavcloud a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5443

@DaanHoogland
Copy link
Contributor

@vladimirpetrov the issue is very general in nature; in the #6855 issue, Daan has only mentioned for the create Network form. I think we can start with that and explore all the other forms/actions you've identified.

@rahulbcn27 can you review the outstanding remarks and;

* Update the PR subject to reflect what change you're doing

* Open a new issue to log requests from Vladi (to address them) or ask @DaanHoogland  to update [UI: make display elements optional #6855](https://github.com/apache/cloudstack/issues/6855) the list

* Add unit test or marvin test on your changes

@blueorangutan package

@rahulbcn27 @rohityadavcloud I'll update the issue, create network was only meant to be an example. I revise the text if needed.

@blueorangutan
Copy link

@DaanHoogland a Jenkins job has been kicked to build packages. It will be bundled with

@rahulbcn27 @rohityadavcloud I'll update the issue, create network was only meant to be an example. I revise the text if needed. SystemVM template(s). I'll keep you posted as I make progress.

@DaanHoogland DaanHoogland changed the title Make display elements optional Make displayText in createNetwork optional Jan 30, 2023
@blueorangutan
Copy link

Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5447

Copy link
Contributor

@stephankruggg stephankruggg left a comment

Choose a reason for hiding this comment

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

CLGTM

@rahulbcn27
Copy link
Contributor Author

Thanks @DaanHoogland for updating the PR subject line.

@boring-cyborg boring-cyborg bot added component:integration-test Python Warning... Python code Ahead! labels Feb 3, 2023
@DaanHoogland DaanHoogland added this to the 4.18.0.0 milestone Feb 8, 2023
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 8, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

63.6% 63.6% Coverage
0.0% 0.0% Duplication

@DaanHoogland DaanHoogland merged commit 0efa4f6 into apache:main Feb 8, 2023
@rohityadavcloud
Copy link
Member

@DaanHoogland did we run smoketests on this?

@DaanHoogland
Copy link
Contributor

oh, good point, we did but I don´t see results. i did run the unit test, but I'll restart teh smoke tests on the healcheck PR

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.

6 participants