Skip to content

feat: add support for lists of integers to ListAttribute #1415

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
Apr 26, 2021
Merged

feat: add support for lists of integers to ListAttribute #1415

merged 1 commit into from
Apr 26, 2021

Conversation

JohnVillalovos
Copy link
Member

Previously ListAttribute only support lists of integers. Now be more
flexible and support lists of items which can be coerced into strings,
for example integers.

This will help us fix issue #1407 by using ListAttribute for the
'iids' field.

Previously ListAttribute only support lists of integers. Now be more
flexible and support lists of items which can be coerced into strings,
for example integers.

This will help us fix issue #1407 by using ListAttribute for the
'iids' field.
@codecov-commenter
Copy link

Codecov Report

Merging #1415 (115938b) into master (e37de18) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1415   +/-   ##
=======================================
  Coverage   80.18%   80.18%           
=======================================
  Files          73       73           
  Lines        4063     4063           
=======================================
  Hits         3258     3258           
  Misses        805      805           
Flag Coverage Δ
unit 80.18% <100.00%> (ø)

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

Impacted Files Coverage Δ
gitlab/types.py 92.59% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e37de18...115938b. Read the comment docs.

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.

I think it's a good idea to merge this first :) later when it comes to individual endpoints it might be good to add int. tests for those to see how gitlab behaves.

@nejch nejch merged commit dde01c7 into python-gitlab:master Apr 26, 2021
@JohnVillalovos JohnVillalovos deleted the jlvillal/list_attribute_int branch April 27, 2021 16:04
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.

3 participants