-
Notifications
You must be signed in to change notification settings - Fork 262
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
Add Filtering to Users on Policy Details #833
Conversation
api | ||
.invoke("GET", `/api/v1/policies/${policyName}/users`) | ||
.then((result: any) => { | ||
var resultUserArray = result.map((x: string) => { |
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.
why not filter on an array of strings? I think it's simpler and needs less code
setLoadingUsers(false); | ||
}) | ||
.catch((err) => { | ||
console.log("Error in loading users"); |
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.
display the error when loading users.
also se setLoadingUsers(false);
on error
email: string; | ||
is_me: boolean; | ||
enabled: boolean; | ||
name?: string; |
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.
is this change still needed?
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
Adding filtering to Users on Policy Details