-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Make displayText in createNetwork optional #7112
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
Conversation
|
@rohityadavcloud a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
@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" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
|
UI build: ✔️ |
|
UI build: ✔️ |
Codecov Report
@@ 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
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
@rohityadavcloud a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
There was a problem hiding this 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.
api/src/main/java/org/apache/cloudstack/api/command/user/network/CreateNetworkCmd.java
Outdated
Show resolved
Hide resolved
|
@rahulbcn27 a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
|
@rahulbcn27 a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
There was a problem hiding this 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
api/src/main/java/org/apache/cloudstack/api/command/user/network/CreateNetworkCmd.java
Show resolved
Hide resolved
api/src/main/java/org/apache/cloudstack/api/command/user/network/CreateNetworkCmd.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
api/src/main/java/org/apache/cloudstack/api/command/user/network/CreateNetworkCmd.java
Outdated
Show resolved
Hide resolved
…rk/CreateNetworkCmd.java Co-authored-by: Stephan Krug <stekrug@icloud.com>
|
Only 'Create network' has been fixed, here are the operations that still require 'displaytext' as a mandatory parameter:
|
|
@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 |
|
@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. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5443 |
@rahulbcn27 @rohityadavcloud I'll update the issue, create network was only meant to be an example. I revise the text if needed. |
|
@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. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5447 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CLGTM
|
Thanks @DaanHoogland for updating the PR subject line. |
api/src/test/java/org/apache/cloudstack/api/command/user/network/CreateNetworkCmdTest.java
Show resolved
Hide resolved
…into feature_x
Co-authored-by: dahn <daan.hoogland@gmail.com>
|
Kudos, SonarCloud Quality Gate passed! |
|
@DaanHoogland did we run smoketests on this? |
|
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 |








Description
This is a improvement change to make displayText field optional for createNetwork as mentioned in issue #6855.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?