-
Notifications
You must be signed in to change notification settings - Fork 14
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
WIP: Extract the uaa package to an external library #6
WIP: Extract the uaa package to an external library #6
Conversation
Co-Authored-By: Caleb Washburn <cwashburn@pivotal.io>
Hey joefitzgerald! Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you and the commit authors have already signed the CLA. |
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/158203410 The labels on this github issue will be updated when the story is started. |
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.
@joefitzgerald This PR looks great! nice work! We have some concerns about the changes made to listing groups, client and users.
@@ -13,8 +13,8 @@ func ListGroupValidations(cfg uaa.Config) error { | |||
return nil | |||
} | |||
|
|||
func ListGroupsCmd(gm uaa.GroupManager, printer cli.Printer, filter, sortBy, sortOrder, attributes string, startIndex, count int) error { |
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.
It looks like we have removed the ability to paginate the client/ groups / users endpoint. While I think this is convenient, we have concerns about performance as we know of some customers that have ~300,000 users.
We think that a nice compromise would be to keep this logic, however perhaps add the ability to 'opt-in' to listing all the users/groups/clients. (Perhaps a flag named --all
). However, if this flag is not provided, then fallback to using pagination. Can we also add back startIndex
and count
?
@@ -14,8 +14,8 @@ func ListUserValidations(cfg uaa.Config) error { | |||
return nil | |||
} | |||
|
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.
As per our previous comment, can we please add back pagination?
Hey @DennisDenuto sure thing. This PR is based on In v0.0.7 and v0.0.8 we add back functions that allow for listing a single page and listing all pages: https://github.com/cloudfoundry-community/go-uaa/releases I can update the PR to make use of the latest release, but note thy the changeset will be significantly larger due to the breaking changes introduced in |
@joefitzgerald Thanks for sharing that context. in that case I think it makes sense to merge with |
After merging, I am getting failing test cases and my local files are being modified when running
|
Perhaps can we cut releases of the old stable code before we resume merging + working on this repo again after a long break? |
Co-Authored-By: Caleb Washburn cwashburn@pivotal.io