-
Notifications
You must be signed in to change notification settings - Fork 1.2k
UI: Standardize OwnershipSelection to use logic independent of language #10052
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
UI: Standardize OwnershipSelection to use logic independent of language #10052
Conversation
|
@BryanMLima a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 4.20 #10052 +/- ##
=========================================
Coverage 16.03% 16.03%
Complexity 12814 12814
=========================================
Files 5637 5637
Lines 493506 493507 +1
Branches 59831 59831
=========================================
+ Hits 79129 79130 +1
+ Misses 405601 405600 -1
- Partials 8776 8777 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
UI build: ✔️ |
bernardodemarco
left a comment
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.
LGTM, tested in the QA environment
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✖️ debian ✔️ suse15. SL-JID 11736 |
|
@BryanMLima this works in Dutch, so far for the good news. Now I have my doubts about the implementation. As the account type is a logic element of the system I would expect it to be the symbol 'Account' or the symbol 'Project' and not the english or other language words. I would expect the |
e854022 to
7e062ea
Compare
@DaanHoogland, I agree with you, we should not use translation of a label to the logic of the code. I made some changes to the components that are using the With these changes, I tested the creating VMs, Isolated networks, L2 networks, shared FS and volumes; all resources were created accordingly to the owner specified. |
|
@BryanMLima a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
shwstppr
left a comment
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.
code lgtm
Description
This PR addresses an issue when trying to assign an instance to another account/project when using ACS in another language besides English. To accomplish this fix, the
OwnershipSelectioncomponent was standardized to use logic independent of the language used by the user.Types of changes
Feature/Enhancement Scale or Bug Severity
Bug Severity
How Has This Been Tested?
Before this patch, the message
The new account is the same as the old account.was shown when trying to assign the VM to another account/project.With this patch, assigning an instance works as intended in different languages, as expected.
I also test the creation of VMs, Isolated networks, L2 networks, shared FS and volumes; all resources were created accordingly to the owner specified.