Skip to content

fix(services): use slug for id_attr instead of custom methods - #1870

Merged
JohnVillalovos merged 2 commits into
mainfrom
fix/project-services-id-attr
Feb 3, 2022
Merged

JohnVillalovos merged 2 commits into
mainfrom
fix/project-services-id-attr

Conversation

@nejch

@nejch nejch commented Feb 2, 2022

Copy link
Copy Markdown
Member

Closes #191

@nejch
nejch force-pushed the fix/project-services-id-attr branch from 904efae to 3d5357b Compare February 2, 2022 01:09
@JohnVillalovos

JohnVillalovos commented Feb 2, 2022 •

Copy link
Copy Markdown
Member

We probably need some functional API tests for this. The services stuff is weird...

But I would be okay with merging without it, but nicer with tests.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Merging #1870 (a547de8) into main (7646360) will increase coverage by 0.14%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1870      +/-   ##
==========================================
+ Coverage   92.35%   92.50%   +0.14%     
==========================================
  Files          77       78       +1     
  Lines        4856     4871      +15     
==========================================
+ Hits         4485     4506      +21     
+ Misses        371      365       -6     
Flag Coverage Δ
cli_func_v4 81.68% <66.66%> (+0.28%) ⬆️
py_func_v4 80.39% <100.00%> (+0.10%) ⬆️
unit 83.35% <100.00%> (+0.03%) ⬆️

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

Impacted Files Coverage Δ
gitlab/v4/objects/services.py 100.00% <100.00%> (ø)
gitlab/utils.py 87.09% <0.00%> (ø)
gitlab/v4/objects/__init__.py 100.00% <0.00%> (ø)
gitlab/v4/objects/artifacts.py 100.00% <0.00%> (ø)
gitlab/v4/objects/projects.py 88.92% <0.00%> (+0.83%) ⬆️
gitlab/v4/objects/labels.py 100.00% <0.00%> (+5.88%) ⬆️

@nejch
nejch marked this pull request as ready for review February 3, 2022 22:28
@nejch
nejch requested a review from JohnVillalovos February 3, 2022 22:28

@JohnVillalovos JohnVillalovos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks. Looks nicer 😊

@JohnVillalovos
JohnVillalovos merged commit 2fea2e6 into main Feb 3, 2022
@JohnVillalovos
JohnVillalovos deleted the fix/project-services-id-attr branch February 3, 2022 23:43
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.

Why does project-service require id on the CLI?

3 participants