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

HARVESTER: Fix IP Pool Same Namespace Can Be Added Multiple Times #906

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

Conversation

n313893254
Copy link

Summary

PR Checklist

- Is this a multi-tenancy feature/bug?
- [ ] Yes, the relevant RBAC changes are at:

- Do we need to backport changes to the old Rancher UI, such as RKE1?
- [ ] Yes, the relevant PR is at:

- Are backend engineers aware of UI changes?
- [ ] Yes, the backend owner is:

- [ ]
Fix IP Pool Same Namespace Can Be Added Multiple Times

Occurred changes and/or fixed issues

Technical notes summary

Areas or cases that should be tested

Areas which could experience regressions

Screenshot/Video

image

Comment on lines 62 to 69
return [{
label: this.t('generic.all'),
value: '*',

Choose a reason for hiding this comment

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

image image

"All" should encompass all scenarios, which means that when a user selects "All," the other options cannot be chosen, including selecting "All" twice.

Copy link
Author

@n313893254 n313893254 Aug 17, 2023

Choose a reason for hiding this comment

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

I agree with the de-duplication of All, but I have a different opinion on the All and default scenario

I can not de-duplication All because the option All label is not the same as the value.

As a selector, the option "all" is mutually exclusive with other options, which makes it difficult to interact on UX.

For example, when I add the first selector, the default namespace value is All, is it not allowed to add namespace default in this scenario?

@@ -199,7 +204,7 @@ export default {
<Select
v-else
v-model="row.namespace"
:options="namespaceOptions"
:options="showProjectAndCluster ? namespaceOptions : uniqNamespaceOptions"

Choose a reason for hiding this comment

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

image image

Perhaps filtering duplicate namespaces is also necessary for multiple clusters.

Copy link
Author

Choose a reason for hiding this comment

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

The guest cluster will have more than one under the same namespace, and it doesn't make sense to de-emphasize the namespace.

@WuJun2016 WuJun2016 added this to the v1.2.1 milestone Aug 18, 2023
@WuJun2016 WuJun2016 added the Enhancement minor or greater UI enhancement label Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement minor or greater UI enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants