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
Feature/add warning when configuring new role mapping #2876
Conversation
public/components/security/roles-mapping/components/rule-editor.tsx
Outdated
Show resolved
Hide resolved
I tested it, works well but when you have the setting |
public/components/security/main.tsx
Outdated
@@ -103,10 +145,13 @@ export const WzSecurity = compose( | |||
<Policies></Policies> | |||
} | |||
{selectedTabId === 'roleMapping' && | |||
<RolesMapping></RolesMapping> | |||
<> | |||
{allowRunAs !== API_USER_STATUS_RUN_AS.ENABLED && isNotRunAs()} |
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.
you could add another state to wait for the request to complete, maybe
{allowRunAs !== API_USER_STATUS_RUN_AS.ENABLED && !allowRunAsIsLoading && isNotRunAs()}
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!
Hi team this PR adds a toast warning the user when configuring role mapping if run_as is set to false.
Closes #2851