-
Notifications
You must be signed in to change notification settings - Fork 61
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
user's permissions on Issues/PRs #100
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I've updated the description. This issue is now about cleaning the methods and add the missing parts. Please, check if I don't forget anything. |
This comment has been minimized.
This comment has been minimized.
Yes ma'am , I am working on it , will draft a PR ASAP . Had a question about the unimplemented functions , a lot of the functions are missing return statements and thus giving error . Should I just return default value or raise some error ? |
@pranav33317 hello and thanks!
Could you please provide some examples? |
, these are some of the examples of unimplemented functions missing return statements , they are mostly in the following files : ogr/services/github/project.py and ogr/services/gitlab/project.py |
and where do you see these causing errors? From what you posted I would say the methods are implemented, just not directly, but using the |
Hi , I'm sorry I commented on the wrong issue . This is related to #696 , I will repost it there. |
Updated by @lachmanfrantisek :
We have a lot of methods related to the permissions (e.g. who can merge/close,..)
It's not consistent, let's clean that!
Feel free to solve this in smaller parts. Just write on what you are going to work...
AC:
abstract.py
(raising the
NotImplementedError
)https://github.com/packit-service/ogr/blob/89435655150b8dd79ef93209c3463585d0715e0d/ogr/services/github/project.py#L219-L220
The progress is tracked in the following tables. (Any update in the comments is appreciated.)
who_can_close_issue() -> Set[str]
who_can_merge_pr() -> Set[str]
can_close_issue(username: str) -> bool
can_merge_pr(username: str) -> bool
Issue
argumentwho_can_close() -> Set[str]
can_close(username: str) -> bool
who_can_close() -> Set[str]
who_can_merge() -> Set[str]
can_close(username: str) -> bool
can_merge(username: str) -> bool
The text was updated successfully, but these errors were encountered: