- Notifications
You must be signed in to change notification settings - Fork673
Open
Description
Description of the problem, including code/CLI snippet
After retrieving issues with the Optionwith_labels_details=True
and callingissue.save()
the Labels in Gitlab are broken. Means: All old labels are overwritten with new ones. The new ones are dict-elements as shown below.
Looks like there is a problem in thesave()
-function of issues.
Example task:
# get issuesissue=project.issues.list(all=True,with_labels_details=True)[0]# edit labels# e.g. delete one, change color, ...# editing is not needed to reproduce this issue# save issue (with changed labels)issue.save()
Expected Behavior
Saves edited labels in issues like before: Non touched should be not touched etc.
Simply save like edited issues retrieved withwith_labels_details=False
(this works like a charm)
Actual Behavior
The dict elements are stored as labels.
Specifications
- python-gitlab version: 3.1.1
- API version you are using (v3/v4): v4
- Gitlab server version: 14.7.4