-
Notifications
You must be signed in to change notification settings - Fork 671
gitlab project-merge-request-approval-rule list throws a KeyError "approval_rule_id" error. #2065
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
Labels
Comments
My very quick initial guess is likely these two lines should be removed: python-gitlab/gitlab/v4/objects/merge_request_approvals.py Lines 168 to 169 in ae7d3b0
@nejch What do you think? |
JohnVillalovos
added a commit
that referenced
this issue
Jun 11, 2022
Using the CLI the command: gitlab project-merge-request-approval-rule list --mr-iid 1 --project-id foo/bar Would raise an exception. This was due to the fact that `_id_attr` and `_repr_attr` were set for keys which are not returned in the response. Closes: #2065
JohnVillalovos
added a commit
that referenced
this issue
Jun 11, 2022
Using the CLI the command: gitlab project-merge-request-approval-rule list --mr-iid 1 --project-id foo/bar Would raise an exception. This was due to the fact that `_id_attr` and `_repr_attr` were set for keys which are not returned in the response. Closes: #2065
JohnVillalovos
added a commit
that referenced
this issue
Jun 11, 2022
Using the CLI the command: gitlab project-merge-request-approval-rule list --mr-iid 1 --project-id foo/bar Would raise an exception. This was due to the fact that `_id_attr` and `_repr_attr` were set for keys which are not returned in the response. Closes: #2065
JohnVillalovos
added a commit
that referenced
this issue
Jun 11, 2022
Using the CLI the command: gitlab project-merge-request-approval-rule list --mr-iid 1 --project-id foo/bar Would raise an exception. This was due to the fact that `_id_attr` and `_repr_attr` were set for keys which are not returned in the response. This is an EE feature so we can't functional test it. Closes: #2065
JohnVillalovos
added a commit
that referenced
this issue
Jun 11, 2022
Using the CLI the command: gitlab project-merge-request-approval-rule list --mr-iid 1 --project-id foo/bar Would raise an exception. This was due to the fact that `_id_attr` and `_repr_attr` were set for keys which are not returned in the response. Add a unit test which shows the `repr` function now works. Before it did not. This is an EE feature so we can't functional test it. Closes: #2065
JohnVillalovos
added a commit
that referenced
this issue
Jun 11, 2022
Using the CLI the command: gitlab project-merge-request-approval-rule list --mr-iid 1 --project-id foo/bar Would raise an exception. This was due to the fact that `_id_attr` and `_repr_attr` were set for keys which are not returned in the response. Add a unit test which shows the `repr` function now works. Before it did not. This is an EE feature so we can't functional test it. Closes: #2065
JohnVillalovos
added a commit
that referenced
this issue
Jun 18, 2022
Using the CLI the command: gitlab project-merge-request-approval-rule list --mr-iid 1 --project-id foo/bar Would raise an exception. This was due to the fact that `_id_attr` and `_repr_attr` were set for keys which are not returned in the response. Add a unit test which shows the `repr` function now works. Before it did not. This is an EE feature so we can't functional test it. Closes: #2065
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Uh oh!
There was an error while loading. Please reload this page.
Description of the problem, including code/CLI snippet
$ gitlab project-merge-request-approval-rule list --mr-iid 1 --project-id foo/bar
Expected Behavior
A list of approval rules
Actual Behavior
Specifications
The text was updated successfully, but these errors were encountered: