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

NOISSUE - Fix list domain users #2369

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

nyagamunene
Copy link
Contributor

What type of PR is this?

This is a bug fix because it fixes list domain user.

What does this do?

It fixes how listMembers is implemented.

Which issue(s) does this PR fix/relate to?

No issue.

Have you included tests for your changes?

Yes

Did you document any new/modified feature?

N/A

Notes

@nyagamunene nyagamunene marked this pull request as ready for review August 1, 2024 12:22
users/service.go Outdated
Comment on lines 547 to 556
if nameQuery != "" {
filteredClients := make([]mgclients.Client, 0, len(cp.Clients))
for _, c := range cp.Clients {
if strings.Contains(c.Name, nameQuery) {
filteredClients = append(filteredClients, c)
}
}
cp.Clients = filteredClients
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

This type of filter will result in the incorrect total count.

@nyagamunene nyagamunene self-assigned this Aug 7, 2024
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants