Skip to content

fix(cli): handle list response for json/yaml output #2290

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

Merged
merged 1 commit into from
Oct 6, 2022

Conversation

JohnVillalovos
Copy link
Member

Handle the case with the CLI where a list response is returned from GitLab and json/yaml output is requested.

Closes: #2287

@JohnVillalovos JohnVillalovos force-pushed the jlvillal/fix_json_yaml_list branch from 46b091f to e8b18a5 Compare September 30, 2022 21:08
@codecov-commenter
Copy link

codecov-commenter commented Sep 30, 2022

Codecov Report

Merging #2290 (cd9695d) into main (6627a60) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2290      +/-   ##
==========================================
+ Coverage   95.29%   95.31%   +0.01%     
==========================================
  Files          79       79              
  Lines        5246     5246              
==========================================
+ Hits         4999     5000       +1     
+ Misses        247      246       -1     
Flag Coverage Δ
api_func_v4 82.57% <0.00%> (ø)
cli_func_v4 82.67% <100.00%> (+0.26%) ⬆️
unit 87.62% <0.00%> (ø)

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

Impacted Files Coverage Δ
gitlab/v4/cli.py 90.87% <100.00%> (+0.35%) ⬆️

@JohnVillalovos JohnVillalovos force-pushed the jlvillal/fix_json_yaml_list branch 2 times, most recently from 6500602 to e4409ca Compare October 4, 2022 04:29
Copy link
Member

@nejch nejch left a comment

Choose a reason for hiding this comment

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

Nice fix @JohnVillalovos! Just a quick question on tests as I'm seeing some more repetition now the sidekiq handling.

@JohnVillalovos JohnVillalovos force-pushed the jlvillal/fix_json_yaml_list branch from e4409ca to cd9695d Compare October 5, 2022 02:11
@JohnVillalovos JohnVillalovos requested a review from nejch October 5, 2022 02:16
Handle the case with the CLI where a list response is returned from
GitLab and json/yaml output is requested.

Add a functional CLI test to validate it works.

Closes: #2287
@JohnVillalovos JohnVillalovos force-pushed the jlvillal/fix_json_yaml_list branch from cd9695d to fbc0ecb Compare October 5, 2022 14:43
@nejch nejch merged commit 9b88132 into main Oct 6, 2022
@nejch nejch deleted the jlvillal/fix_json_yaml_list branch October 6, 2022 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

project-commit merge-requests call doesn't work
3 participants