Commit db3ab50
committed
fix: use the [] after key names for array variables
1. Create a new CsvStringAttribute class. This is to indicate types
which are sent to the GitLab server as comma-separated-strings
(CSV) but we have been allowing users to use a list-of-strings.
These values are NOT array values, so adding [] to the key name
breaks them.
2. Rename ListAttribute to ArrayAttribute.
3. If a value is of type ArrayAttribute then append '[]' to the name
of the value.
4. Move processing of most GitlabAttributes into the
client.py:http_request() method. Now we convert our params into a
list of tuples so that we can have multiple identical keys but with
different values.1 parent 2cd15ac commit db3ab50Copy full SHA for db3ab50
File tree
Expand file treeCollapse file tree
15 files changed
+123
-54
lines changedOpen diff view settings
Filter options
- gitlab
- v4/objects
- tests/unit
Expand file treeCollapse file tree
15 files changed
+123
-54
lines changedOpen diff view settings
Collapse file
+31-1Lines changed: 31 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
16 | 16 | |
17 | 17 | |
18 | 18 | |
| 19 | + |
19 | 20 | |
20 | 21 | |
21 | 22 | |
| ||
26 | 27 | |
27 | 28 | |
28 | 29 | |
| 30 | + |
29 | 31 | |
30 | 32 | |
31 | 33 | |
| ||
524 | 526 | |
525 | 527 | |
526 | 528 | |
| 529 | + |
| 530 | + |
| 531 | + |
| 532 | + |
| 533 | + |
| 534 | + |
| 535 | + |
| 536 | + |
| 537 | + |
| 538 | + |
| 539 | + |
| 540 | + |
| 541 | + |
| 542 | + |
| 543 | + |
| 544 | + |
| 545 | + |
| 546 | + |
| 547 | + |
| 548 | + |
| 549 | + |
| 550 | + |
527 | 551 | |
528 | 552 | |
529 | 553 | |
| ||
584 | 608 | |
585 | 609 | |
586 | 610 | |
| 611 | + |
| 612 | + |
| 613 | + |
| 614 | + |
587 | 615 | |
588 | 616 | |
589 | 617 | |
| ||
602 | 630 | |
603 | 631 | |
604 | 632 | |
605 | | - |
| 633 | + |
| 634 | + |
| 635 | + |
606 | 636 | |
607 | 637 | |
608 | 638 | |
|
Collapse file
+3-5Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
230 | 230 | |
231 | 231 | |
232 | 232 | |
233 | | - |
234 | | - |
| 233 | + |
235 | 234 | |
236 | 235 | |
237 | 236 | |
| ||
307 | 306 | |
308 | 307 | |
309 | 308 | |
310 | | - |
311 | 309 | |
312 | 310 | |
313 | 311 | |
314 | 312 | |
315 | 313 | |
316 | 314 | |
317 | | - |
| 315 | + |
318 | 316 | |
319 | 317 | |
320 | 318 | |
| ||
410 | 408 | |
411 | 409 | |
412 | 410 | |
413 | | - |
| 411 | + |
414 | 412 | |
415 | 413 | |
416 | 414 | |
|
Collapse file
+43-2Lines changed: 43 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
15 | 15 | |
16 | 16 | |
17 | 17 | |
18 | | - |
| 18 | + |
19 | 19 | |
20 | 20 | |
21 | 21 | |
| ||
31 | 31 | |
32 | 32 | |
33 | 33 | |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
34 | 70 | |
35 | | - |
36 | 71 | |
37 | 72 | |
38 | 73 | |
| ||
48 | 83 | |
49 | 84 | |
50 | 85 | |
| 86 | + |
| 87 | + |
| 88 | + |
51 | 89 | |
52 | 90 | |
53 | 91 | |
54 | 92 | |
55 | 93 | |
| 94 | + |
| 95 | + |
| 96 | + |
56 | 97 | |
57 | 98 | |
58 | 99 | |
|
Collapse file
gitlab/v4/objects/deploy_tokens.py
Copy file name to clipboardExpand all lines: gitlab/v4/objects/deploy_tokens.py+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
39 | 39 | |
40 | 40 | |
41 | 41 | |
42 | | - |
| 42 | + |
43 | 43 | |
44 | 44 | |
45 | 45 | |
| ||
60 | 60 | |
61 | 61 | |
62 | 62 | |
63 | | - |
| 63 | + |
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
40 | 40 | |
41 | 41 | |
42 | 42 | |
43 | | - |
| 43 | + |
44 | 44 | |
45 | 45 | |
46 | 46 | |
|
Collapse file
gitlab/v4/objects/groups.py
Copy file name to clipboardExpand all lines: gitlab/v4/objects/groups.py+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
290 | 290 | |
291 | 291 | |
292 | 292 | |
293 | | - |
| 293 | + |
294 | 294 | |
295 | 295 | |
296 | 296 | |
| ||
350 | 350 | |
351 | 351 | |
352 | 352 | |
353 | | - |
| 353 | + |
354 | 354 | |
355 | 355 | |
356 | 356 | |
|
Collapse file
gitlab/v4/objects/issues.py
Copy file name to clipboardExpand all lines: gitlab/v4/objects/issues.py+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
63 | 63 | |
64 | 64 | |
65 | 65 | |
66 | | - |
| 66 | + |
67 | 67 | |
68 | 68 | |
69 | 69 | |
| ||
90 | 90 | |
91 | 91 | |
92 | 92 | |
93 | | - |
| 93 | + |
94 | 94 | |
95 | 95 | |
96 | 96 | |
| ||
220 | 220 | |
221 | 221 | |
222 | 222 | |
223 | | - |
| 223 | + |
224 | 224 | |
225 | 225 | |
226 | 226 | |
|
Collapse file
gitlab/v4/objects/members.py
Copy file name to clipboardExpand all lines: gitlab/v4/objects/members.py+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
39 | 39 | |
40 | 40 | |
41 | 41 | |
42 | | - |
| 42 | + |
43 | 43 | |
44 | 44 | |
45 | 45 | |
| ||
95 | 95 | |
96 | 96 | |
97 | 97 | |
98 | | - |
| 98 | + |
99 | 99 | |
100 | 100 | |
101 | 101 | |
|
Collapse file
gitlab/v4/objects/merge_requests.py
Copy file name to clipboardExpand all lines: gitlab/v4/objects/merge_requests.py+11-11Lines changed: 11 additions & 11 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
95 | 95 | |
96 | 96 | |
97 | 97 | |
98 | | - |
99 | | - |
100 | | - |
101 | | - |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
102 | 102 | |
103 | 103 | |
104 | 104 | |
| ||
133 | 133 | |
134 | 134 | |
135 | 135 | |
136 | | - |
137 | | - |
138 | | - |
| 136 | + |
| 137 | + |
| 138 | + |
139 | 139 | |
140 | 140 | |
141 | 141 | |
| ||
450 | 450 | |
451 | 451 | |
452 | 452 | |
453 | | - |
454 | | - |
455 | | - |
456 | | - |
| 453 | + |
| 454 | + |
| 455 | + |
| 456 | + |
457 | 457 | |
458 | 458 | |
459 | 459 | |
|
Collapse file
gitlab/v4/objects/milestones.py
Copy file name to clipboardExpand all lines: gitlab/v4/objects/milestones.py+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
89 | 89 | |
90 | 90 | |
91 | 91 | |
92 | | - |
| 92 | + |
93 | 93 | |
94 | 94 | |
95 | 95 | |
| ||
164 | 164 | |
165 | 165 | |
166 | 166 | |
167 | | - |
| 167 | + |
0 commit comments