Commit 1af44ce
committed
fix: use the [] after key names for array variables in
1. If a value is of type ArrayAttribute then append '[]' to the name
of the value for query parameters (`params`).
This is step 3 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
Step two was: commit a57334f
Fixes: #1698
[1] https://docs.gitlab.com/ee/api/#encoding-api-parameters-of-array-and-hash-typesparams
1 parent 194ee01 commit 1af44ceCopy full SHA for 1af44ce
File tree
Expand file treeCollapse file tree
7 files changed
+134
-31
lines changedOpen diff view settings
Filter options
- gitlab
- tests
- functional/api
- unit
- mixins
Expand file treeCollapse file tree
7 files changed
+134
-31
lines changedOpen diff view settings
Collapse file
+12-3Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
238 | 238 | |
239 | 239 | |
240 | 240 | |
241 | | - |
| 241 | + |
| 242 | + |
| 243 | + |
| 244 | + |
| 245 | + |
| 246 | + |
242 | 247 | |
243 | 248 | |
244 | 249 | |
| ||
303 | 308 | |
304 | 309 | |
305 | 310 | |
306 | | - |
| 311 | + |
| 312 | + |
| 313 | + |
307 | 314 | |
308 | 315 | |
309 | 316 | |
| ||
370 | 377 | |
371 | 378 | |
372 | 379 | |
373 | | - |
| 380 | + |
| 381 | + |
| 382 | + |
374 | 383 | |
375 | 384 | |
376 | 385 | |
|
Collapse file
+15-7Lines changed: 15 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
63 | 63 | |
64 | 64 | |
65 | 65 | |
66 | | - |
67 | | - |
| 66 | + |
| 67 | + |
68 | 68 | |
69 | 69 | |
70 | 70 | |
| ||
76 | 76 | |
77 | 77 | |
78 | 78 | |
79 | | - |
| 79 | + |
80 | 80 | |
81 | 81 | |
82 | | - |
| 82 | + |
83 | 83 | |
84 | 84 | |
85 | 85 | |
86 | | - |
| 86 | + |
87 | 87 | |
88 | 88 | |
89 | 89 | |
90 | 90 | |
91 | 91 | |
92 | 92 | |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
93 | 101 | |
94 | 102 | |
95 | 103 | |
| ||
98 | 106 | |
99 | 107 | |
100 | 108 | |
101 | | - |
102 | | - |
| 109 | + |
| 110 | + |
103 | 111 | |
104 | 112 | |
105 | 113 | |
|
Collapse file
+30-9Lines changed: 30 additions & 9 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
55 | 55 | |
56 | 56 | |
57 | 57 | |
58 | | - |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
59 | 63 | |
60 | 64 | |
61 | 65 | |
62 | 66 | |
63 | | - |
| 67 | + |
64 | 68 | |
65 | 69 | |
66 | 70 | |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
67 | 75 | |
68 | 76 | |
69 | 77 | |
70 | 78 | |
71 | 79 | |
| 80 | + |
| 81 | + |
| 82 | + |
72 | 83 | |
73 | 84 | |
74 | | - |
| 85 | + |
75 | 86 | |
76 | 87 | |
77 | 88 | |
78 | | - |
| 89 | + |
79 | 90 | |
80 | | - |
81 | | - |
82 | | - |
| 91 | + |
| 92 | + |
| 93 | + |
83 | 94 | |
84 | | - |
85 | | - |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
86 | 105 | |
87 | 106 | |
88 | 107 | |
| ||
94 | 113 | |
95 | 114 | |
96 | 115 | |
| 116 | + |
| 117 | + |
97 | 118 | |
98 | 119 | |
99 | 120 | |
|
Collapse file
tests/functional/api/test_groups.py
Copy file name to clipboardExpand all lines: tests/functional/api/test_groups.py+5Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
99 | 99 | |
100 | 100 | |
101 | 101 | |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
102 | 107 | |
103 | 108 | |
104 | 109 | |
|
Collapse file
tests/unit/mixins/test_mixin_methods.py
Copy file name to clipboardExpand all lines: tests/unit/mixins/test_mixin_methods.py+38Lines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
205 | 205 | |
206 | 206 | |
207 | 207 | |
| 208 | + |
| 209 | + |
| 210 | + |
| 211 | + |
| 212 | + |
| 213 | + |
| 214 | + |
| 215 | + |
| 216 | + |
| 217 | + |
| 218 | + |
| 219 | + |
| 220 | + |
| 221 | + |
| 222 | + |
| 223 | + |
| 224 | + |
| 225 | + |
| 226 | + |
208 | 227 | |
209 | 228 | |
210 | 229 | |
| ||
295 | 314 | |
296 | 315 | |
297 | 316 | |
| 317 | + |
| 318 | + |
| 319 | + |
| 320 | + |
| 321 | + |
| 322 | + |
| 323 | + |
| 324 | + |
| 325 | + |
| 326 | + |
| 327 | + |
| 328 | + |
| 329 | + |
| 330 | + |
| 331 | + |
| 332 | + |
| 333 | + |
| 334 | + |
| 335 | + |
298 | 336 | |
299 | 337 | |
300 | 338 | |
|
Collapse file
+9-9Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
73 | 73 | |
74 | 74 | |
75 | 75 | |
76 | | - |
| 76 | + |
77 | 77 | |
78 | 78 | |
79 | 79 | |
| ||
100 | 100 | |
101 | 101 | |
102 | 102 | |
103 | | - |
| 103 | + |
104 | 104 | |
105 | 105 | |
106 | 106 | |
107 | 107 | |
108 | | - |
| 108 | + |
109 | 109 | |
110 | 110 | |
111 | 111 | |
112 | 112 | |
113 | | - |
| 113 | + |
114 | 114 | |
115 | 115 | |
116 | 116 | |
117 | 117 | |
118 | | - |
| 118 | + |
119 | 119 | |
120 | 120 | |
121 | 121 | |
122 | 122 | |
123 | 123 | |
124 | 124 | |
125 | | - |
| 125 | + |
126 | 126 | |
127 | 127 | |
128 | 128 | |
129 | 129 | |
130 | | - |
| 130 | + |
131 | 131 | |
132 | 132 | |
133 | 133 | |
134 | 134 | |
135 | | - |
| 135 | + |
136 | 136 | |
137 | 137 | |
138 | 138 | |
139 | 139 | |
140 | 140 | |
141 | | - |
| 141 | + |
Collapse file
+25-3Lines changed: 25 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
155 | 155 | |
156 | 156 | |
157 | 157 | |
158 | | - |
| 158 | + |
159 | 159 | |
160 | 160 | |
161 | 161 | |
| ||
165 | 165 | |
166 | 166 | |
167 | 167 | |
168 | | - |
| 168 | + |
169 | 169 | |
170 | 170 | |
171 | 171 | |
| ||
174 | 174 | |
175 | 175 | |
176 | 176 | |
177 | | - |
| 177 | + |
| 178 | + |
| 179 | + |
178 | 180 | |
179 | 181 | |
180 | 182 | |
| 183 | + |
| 184 | + |
| 185 | + |
| 186 | + |
| 187 | + |
| 188 | + |
| 189 | + |
| 190 | + |
| 191 | + |
| 192 | + |
| 193 | + |
| 194 | + |
| 195 | + |
| 196 | + |
| 197 | + |
| 198 | + |
| 199 | + |
| 200 | + |
| 201 | + |
| 202 | + |
0 commit comments