Skip to content

fix(api): replace deprecated name_regex attribute in delete_in_bulk() #1536

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

Conversation

antti-mikael
Copy link
Contributor

The name_regex attribute has been deprecated in favor of name_regex_delete.
See: https://gitlab.com/gitlab-org/gitlab/-/commit/ce99813cf54

@codecov-commenter
Copy link

codecov-commenter commented Jun 29, 2021

Codecov Report

Merging #1536 (6c419ee) into master (b8a47ba) will increase coverage by 0.40%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##           master    #1536      +/-   ##
==========================================
+ Coverage   91.18%   91.59%   +0.40%     
==========================================
  Files          74       74              
  Lines        4188     4272      +84     
==========================================
+ Hits         3819     3913      +94     
+ Misses        369      359      -10     
Flag Coverage Δ
cli_func_v4 81.60% <50.00%> (+0.79%) ⬆️
py_func_v4 80.61% <50.00%> (+0.46%) ⬆️
unit 83.38% <50.00%> (+0.88%) ⬆️

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

Impacted Files Coverage Δ
gitlab/v4/objects/container_registry.py 83.33% <50.00%> (ø)
gitlab/mixins.py 91.12% <0.00%> (-0.36%) ⬇️
gitlab/v4/cli.py 81.20% <0.00%> (-0.31%) ⬇️
gitlab/v4/objects/pipelines.py 94.44% <0.00%> (-0.18%) ⬇️
gitlab/const.py 100.00% <0.00%> (ø)
gitlab/v4/objects/members.py 100.00% <0.00%> (ø)
gitlab/v4/objects/releases.py 100.00% <0.00%> (ø)
gitlab/v4/objects/snippets.py 97.67% <0.00%> (+0.11%) ⬆️
gitlab/v4/objects/users.py 98.38% <0.00%> (+0.13%) ⬆️
gitlab/v4/objects/commits.py 94.36% <0.00%> (+0.16%) ⬆️
... and 8 more

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.

Thanks a lot @antti-mikael! Just a small note on keeping the arguments in sync with the API.

@antti-mikael antti-mikael force-pushed the fix/registry-deleteinbulk-deprecated-attr branch from 8b5d647 to db6eed0 Compare July 1, 2021 07:38
@antti-mikael antti-mikael requested a review from nejch July 5, 2021 06:46
@antti-mikael antti-mikael force-pushed the fix/registry-deleteinbulk-deprecated-attr branch 2 times, most recently from 1dcc077 to 6c419ee Compare September 9, 2021 10:00
The `name_regex` attribute has been deprecated in favor of
`name_regex_delete`.
See: https://gitlab.com/gitlab-org/gitlab/-/commit/ce99813cf54
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.

4 participants