add permission&user existence check before editing repo's configuration#18
Open
lmz2932 wants to merge 3 commits intopresslabs:masterfrom
Open
add permission&user existence check before editing repo's configuration#18lmz2932 wants to merge 3 commits intopresslabs:masterfrom
lmz2932 wants to merge 3 commits intopresslabs:masterfrom
Conversation
comment out some dummy code
Contributor
|
Hi @lmz2932, Thanks for the PR. Good catch. Awesome work! |
…er edit 3.Normal case when edit user's permission
Author
|
Hi, @vtemian Sorry for a late reply, I just add those three test cases: Best Regards. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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,_usersand this methodappendare not exists inListUsersclass, 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.