Skip to content

Conversation

@dren-dk
Copy link

@dren-dk dren-dk commented Feb 14, 2022

  • User Memberships could not be used due to the MembershipSourceType always being null in the Membership, because Gitlab returns "Namespace" and "Project" rather than "NAMESPACE" and "PROJECT". The fix is to introduce a name field on the enum to have a place to store that string and make it available to users and to uppercase the string before trying to parse it as an enum name.

  • Fixed the UserApi.getMemberships() method so it returns all the memberships and added a Pager based method too for lazy fetching.

  • Added the KeysApi needed to look up users by ssh key fingerprint.

@dren-dk dren-dk changed the title Fixed the MembershipSourceType enum so it actually works Fixed MembershipSourceType enum, UserApi.getMemberships() and implemented KeysApi Feb 14, 2022
Copy link
Collaborator

@jabby jabby left a comment

Choose a reason for hiding this comment

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

Hello @dren-dk

Thanks for your work. Can you take care of my review.

have a nice day.

@dren-dk
Copy link
Author

dren-dk commented Mar 9, 2022

Replaced this PR with 3 new ones:
#814
#815
#816

@dren-dk dren-dk closed this Mar 9, 2022
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