Skip to content

Conversation

@lmz2932
Copy link

@lmz2932 lmz2932 commented Sep 25, 2016

hi,
first of all, I want to thank you for your excellent work, so that I can manipulate gitolite with Python without writing much code myself.

but when I prepare to edit the user permission configuration of a repo, if the use not exists in the repo's config file, pyolite did nothing, and if the user exists, it will update the configuration file without persmission argument check. So I add user existence check and permission argument check before updating the repo's configuration.

Also I found that these attribute: _user_users and this method append are not exists in ListUsers class, and I don't konw if you're preparing to maintain these code in the future and what is your plan for this class , so I just treat them as bugs and comment them out.

B.R.
thanks.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.5%) to 91.822% when pulling 69c97e1 on lmz2932:master into 1cf810c on PressLabs:master.

@vtemian
Copy link
Contributor

vtemian commented Sep 26, 2016

Hi @lmz2932,

Thanks for the PR. Good catch.
You can remove those lines and fix the tests. Also, you can add some tests for permission check and if the user is not in the repository.
After that, we'll merge it.

Awesome work!

…er edit

3.Normal case when edit user's permission
@lmz2932 lmz2932 closed this Oct 4, 2016
@coveralls
Copy link

Coverage Status

Coverage increased (+2.06%) to 94.424% when pulling 3b59690 on lmz2932:master into 1cf810c on PressLabs:master.

@lmz2932 lmz2932 reopened this Oct 4, 2016
@coveralls
Copy link

Coverage Status

Coverage increased (+2.06%) to 94.424% when pulling a35cfcb on lmz2932:master into 1cf810c on PressLabs:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+2.06%) to 94.424% when pulling a35cfcb on lmz2932:master into 1cf810c on PressLabs:master.

@lmz2932
Copy link
Author

lmz2932 commented Oct 4, 2016

Hi, @vtemian

Sorry for a late reply, I just add those three test cases:
1.User not exists in the repo when trying to edit his permission.
2.Valid user edit his permission with invalid permission string.
3.Normal case for editing a user's permission in a repo.

Best Regards.

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