- Notifications
You must be signed in to change notification settings - Fork673
Make repr() of project approval rules consistent with merge request approval rules#3011
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation
codecovbot commentedOct 9, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@## main #3011 +/- ##======================================= Coverage 96.62% 96.62% ======================================= Files 95 95 Lines 6100 6101 +1 =======================================+ Hits 5894 5895 +1 Misses 206 206
Flags with carried forward coverage won't be shown.Click here to find out more.
|
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.
Thanks a lot@holysoles looks great! Just a quick question.
Uh oh!
There was an error while loading.Please reload this page.
1a68f1c
intopython-gitlab:mainUh oh!
There was an error while loading.Please reload this page.
Changes
The representation attribute for
ProjectMergeRequestApprovalRule
isname
(seehere), which makes sense based on the API documentation. However, the API forProjectApprovalRule
isnearly the same, but we don't set the representation attribute toname
for that class (seehere).This MR sets
_repr_attr
for theProjectApprovalRule
class , as well as adds a unit test for ensure we can list a project's approval rules, and callrepr()
on it.Documentation and testing
Please consider whether this PR needs documentation and tests.This is not required, but highly appreciated: