Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(cli): project-merge-request-approval-rule#2066

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

Merged
nejch merged 1 commit intomainfromjlvillal/approval_rule_id
Jun 20, 2022

Conversation

@JohnVillalovos
Copy link
Member

@JohnVillalovosJohnVillalovos commentedJun 11, 2022
edited
Loading

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 therepr function now works. Before it
did not.

This is an EE feature so we can't functional test it.

Closes:#2065

@JohnVillalovosJohnVillalovos marked this pull request as draftJune 11, 2022 02:41
@JohnVillalovosJohnVillalovosforce-pushed thejlvillal/approval_rule_id branch 4 times, most recently from35f1f61 to5f9d1dcCompareJune 11, 2022 03:10
@JohnVillalovosJohnVillalovos marked this pull request as ready for reviewJune 11, 2022 03:11
Copy link
Member

@nejchnejch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thanks@JohnVillalovos! Just a quick question there, and I'll just check a bit later today what that other method is doing with the custom ID.

@JohnVillalovosJohnVillalovosforce-pushed thejlvillal/approval_rule_id branch from5f9d1dc toed3c342CompareJune 11, 2022 14:33
Using the CLI the command:   gitlab project-merge-request-approval-rule list --mr-iid 1 --project-id foo/barWould 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 itdid not.This is an EE feature so we can't functional test it.Closes:#2065
@codecov-commenter
Copy link

codecov-commenter commentedJun 18, 2022
edited by codecovbot
Loading

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.64%. Comparing base(ae7d3b0) to head(15a242c).
Report is 740 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@##             main    #2066      +/-   ##==========================================+ Coverage   94.62%   94.64%   +0.02%==========================================  Files          78       78                Lines        4983     5002      +19     ==========================================+ Hits         4715     4734      +19  Misses        268      268
FlagCoverage Δ
cli_func_v482.44% <100.00%> (-0.14%)⬇️
py_func_v481.02% <100.00%> (+0.07%)⬆️
unit85.60% <100.00%> (+0.01%)⬆️

Flags with carried forward coverage won't be shown.Click here to find out more.

Files with missing linesCoverage Δ
gitlab/v4/objects/merge_request_approvals.py90.80% <100.00%> (-0.11%)⬇️

... and2 files with indirect coverage changes

@nejchnejch merged commit41ceaca intomainJun 20, 2022
@nejchnejch deleted the jlvillal/approval_rule_id branchJune 20, 2022 15:16
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nejchnejchnejch approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

gitlab project-merge-request-approval-rule list throws a KeyError "approval_rule_id" error.

4 participants

@JohnVillalovos@codecov-commenter@nejch

[8]ページ先頭

©2009-2025 Movatter.jp