Skip to content

fix: remove custom delete method for labels #1868

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
Feb 1, 2022
Merged

Conversation

JohnVillalovos
Copy link
Member

@JohnVillalovos JohnVillalovos commented Feb 1, 2022

The usage of deleting was incorrect according to the current API.
Remove custom delete() method as not needed.

Add tests to show it works with labels needing to be encoded.

Also enable the test_group_labels() test function. Previously it was
disabled.

Add ability to do a get() for group labels.

Closes: #1867

@JohnVillalovos JohnVillalovos force-pushed the jlvillal/delete_label branch 3 times, most recently from 3870af8 to 9c0d7a7 Compare February 1, 2022 17:01
@JohnVillalovos JohnVillalovos requested a review from nejch February 1, 2022 17:01
@codecov-commenter
Copy link

Codecov Report

Merging #1868 (9c0d7a7) into main (7646360) will increase coverage by 0.05%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1868      +/-   ##
==========================================
+ Coverage   92.35%   92.41%   +0.05%     
==========================================
  Files          77       77              
  Lines        4856     4852       -4     
==========================================
- Hits         4485     4484       -1     
+ Misses        371      368       -3     
Flag Coverage Δ
cli_func_v4 81.36% <75.00%> (-0.04%) ⬇️
py_func_v4 80.39% <100.00%> (+0.10%) ⬆️
unit 83.32% <75.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
gitlab/v4/objects/labels.py 100.00% <100.00%> (+5.88%) ⬆️

The usage of deleting was incorrect according to the current API.
Remove custom `delete()` method as not needed.

Add tests to show it works with labels needing to be encoded.

Also enable the test_group_labels() test function. Previously it was
disabled.

Add ability to do a `get()` for group labels.

Closes: #1867
@nejch nejch enabled auto-merge February 1, 2022 18:04
@nejch nejch merged commit 0ab0fc1 into main Feb 1, 2022
@nejch nejch deleted the jlvillal/delete_label branch February 1, 2022 18:10
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.

Deleting a label fails with 404
3 participants