Commit a57334f
committed
chore: create new ArrayAttribute class
Create a new ArrayAttribute class. This is to indicate types which are
sent to the GitLab server as arrays
https://docs.gitlab.com/ee/api/#array
At this stage it is identical to the CommaSeparatedListAttribute class
but will be used later to support the array types sent to GitLab.
This is the second step in a series of steps of our goal to add full
support for the GitLab API data types[1]:
* array
* hash
* array of hashes
Step one was: commit 5127b15
[1] https://docs.gitlab.com/ee/api/#encoding-api-parameters-of-array-and-hash-types
Related: #16981 parent 7a13b9b commit a57334fCopy full SHA for a57334f
File tree
Expand file treeCollapse file tree
10 files changed
+68
-49
lines changedOpen diff view settings
Filter options
- gitlab
- v4/objects
- tests/unit
Expand file treeCollapse file tree
10 files changed
+68
-49
lines changedOpen diff view settings
Collapse file
+14-1Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
32 | 32 | |
33 | 33 | |
34 | 34 | |
35 | | - |
| 35 | + |
| 36 | + |
| 37 | + |
36 | 38 | |
37 | 39 | |
38 | 40 | |
| ||
49 | 51 | |
50 | 52 | |
51 | 53 | |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
52 | 65 | |
53 | 66 | |
54 | 67 | |
|
Collapse file
gitlab/v4/objects/groups.py
Copy file name to clipboardExpand all lines: gitlab/v4/objects/groups.py+2-5Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
314 | 314 | |
315 | 315 | |
316 | 316 | |
317 | | - |
318 | | - |
319 | | - |
320 | | - |
| 317 | + |
321 | 318 | |
322 | 319 | |
323 | 320 | |
| ||
377 | 374 | |
378 | 375 | |
379 | 376 | |
380 | | - |
| 377 | + |
381 | 378 | |
382 | 379 | |
383 | 380 | |
|
Collapse file
gitlab/v4/objects/issues.py
Copy file name to clipboardExpand all lines: gitlab/v4/objects/issues.py+3-12Lines changed: 3 additions & 12 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
65 | 65 | |
66 | 66 | |
67 | 67 | |
68 | | - |
69 | | - |
70 | | - |
71 | | - |
| 68 | + |
72 | 69 | |
73 | 70 | |
74 | 71 | |
| ||
98 | 95 | |
99 | 96 | |
100 | 97 | |
101 | | - |
102 | | - |
103 | | - |
104 | | - |
| 98 | + |
105 | 99 | |
106 | 100 | |
107 | 101 | |
| ||
239 | 233 | |
240 | 234 | |
241 | 235 | |
242 | | - |
243 | | - |
244 | | - |
245 | | - |
| 236 | + |
246 | 237 | |
247 | 238 | |
248 | 239 | |
|
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 |
|---|---|---|
| ||
41 | 41 | |
42 | 42 | |
43 | 43 | |
44 | | - |
| 44 | + |
45 | 45 | |
46 | 46 | |
47 | 47 | |
| ||
101 | 101 | |
102 | 102 | |
103 | 103 | |
104 | | - |
| 104 | + |
105 | 105 | |
106 | 106 | |
107 | 107 | |
|
Collapse file
gitlab/v4/objects/merge_requests.py
Copy file name to clipboardExpand all lines: gitlab/v4/objects/merge_requests.py+7-7Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
95 | 95 | |
96 | 96 | |
97 | 97 | |
98 | | - |
99 | | - |
| 98 | + |
| 99 | + |
100 | 100 | |
101 | 101 | |
102 | 102 | |
| ||
133 | 133 | |
134 | 134 | |
135 | 135 | |
136 | | - |
137 | | - |
| 136 | + |
| 137 | + |
138 | 138 | |
139 | 139 | |
140 | 140 | |
| ||
455 | 455 | |
456 | 456 | |
457 | 457 | |
458 | | - |
459 | | - |
460 | | - |
| 458 | + |
| 459 | + |
| 460 | + |
461 | 461 | |
462 | 462 | |
463 | 463 | |
|
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 |
|---|---|---|
| ||
93 | 93 | |
94 | 94 | |
95 | 95 | |
96 | | - |
| 96 | + |
97 | 97 | |
98 | 98 | |
99 | 99 | |
| ||
177 | 177 | |
178 | 178 | |
179 | 179 | |
180 | | - |
| 180 | + |
181 | 181 | |
182 | 182 | |
183 | 183 | |
|
Collapse file
gitlab/v4/objects/projects.py
Copy file name to clipboardExpand all lines: gitlab/v4/objects/projects.py+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
125 | 125 | |
126 | 126 | |
127 | 127 | |
128 | | - |
| 128 | + |
129 | 129 | |
130 | 130 | |
131 | 131 | |
|
Collapse file
gitlab/v4/objects/settings.py
Copy file name to clipboardExpand all lines: gitlab/v4/objects/settings.py+6-6Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
80 | 80 | |
81 | 81 | |
82 | 82 | |
83 | | - |
84 | | - |
85 | | - |
86 | | - |
87 | | - |
88 | | - |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
89 | 89 | |
90 | 90 | |
91 | 91 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
369 | 369 | |
370 | 370 | |
371 | 371 | |
372 | | - |
| 372 | + |
373 | 373 | |
374 | 374 | |
375 | 375 | |
|
Collapse file
+30-12Lines changed: 30 additions & 12 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
30 | 30 | |
31 | 31 | |
32 | 32 | |
33 | | - |
34 | | - |
| 33 | + |
| 34 | + |
35 | 35 | |
36 | 36 | |
37 | 37 | |
38 | 38 | |
39 | 39 | |
40 | 40 | |
41 | 41 | |
42 | | - |
43 | | - |
| 42 | + |
| 43 | + |
44 | 44 | |
45 | 45 | |
46 | 46 | |
47 | 47 | |
48 | 48 | |
49 | 49 | |
50 | 50 | |
51 | | - |
52 | | - |
| 51 | + |
| 52 | + |
53 | 53 | |
54 | 54 | |
55 | 55 | |
56 | 56 | |
57 | | - |
58 | | - |
| 57 | + |
| 58 | + |
59 | 59 | |
60 | 60 | |
61 | 61 | |
62 | | - |
63 | | - |
| 62 | + |
| 63 | + |
64 | 64 | |
65 | 65 | |
66 | 66 | |
67 | | - |
68 | | - |
| 67 | + |
| 68 | + |
69 | 69 | |
70 | 70 | |
71 | 71 | |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
72 | 90 | |
73 | 91 | |
74 | 92 | |
0 commit comments