Commit d4853fa
committed
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 3c4dcca commit d4853fa
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