Commit 2cbd674
fix(api): use ID instead of name for GroupLabel & ProjectLabel _id_attr
_id_attr is used when comparing RESTObject objects. Labels will be seen
as equal when they have the same name even if they are from different
groups or projects.
Instead, use the label's ID as the _id_attr so that comparisions will
only be equal if they truly represent the same gitlab label object.
Signed-off-by: Patrick Talbert <ptalbert@redhat.com>1 parent c378817 commit 2cbd674
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | | - | |
| 91 | + | |
| 92 | + | |
91 | 93 | | |
92 | 94 | | |
93 | 95 | | |
| |||
0 commit comments