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
@dborovcanin dborovcanin force-pushed the NOISSUE-fixListUserInDomain branch from eb3261b to b329a41 Compare August 1, 2024 12:37
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
@nyagamunene nyagamunene force-pushed the NOISSUE-fixListUserInDomain branch from c80870c to 1d2d84c Compare August 11, 2024 16:45
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