Commit 7f6a8c2
committed
fix: use the [] after key names for array variables
1. If a value is of type ArrayAttribute then append '[]' to the name
of the value.
2. 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.
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-types1 parent 1ecbc7c commit 7f6a8c2Copy full SHA for 7f6a8c2
File tree
Expand file treeCollapse file tree
5 files changed
+65
-23
lines changedOpen diff view settings
Filter options
- gitlab
- tests
- functional/api
- unit
- mixins
Expand file treeCollapse file tree
5 files changed
+65
-23
lines changedOpen diff view settings
Collapse file
+17-7Lines changed: 17 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 | |
96 | 104 | |
97 | 105 | |
98 | 106 | |
| 107 | + |
| 108 | + |
99 | 109 | |
100 | 110 | |
101 | | - |
102 | | - |
| 111 | + |
| 112 | + |
103 | 113 | |
104 | 114 | |
105 | 115 | |
|
Collapse file
+15-7Lines changed: 15 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
76 | 76 | |
77 | 77 | |
78 | 78 | |
79 | | - |
80 | | - |
81 | | - |
82 | | - |
83 | | - |
84 | | - |
85 | | - |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
86 | 92 | |
87 | 93 | |
88 | 94 | |
| ||
94 | 100 | |
95 | 101 | |
96 | 102 | |
| 103 | + |
| 104 | + |
97 | 105 | |
98 | 106 | |
99 | 107 | |
|
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+19Lines changed: 19 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 | |
|
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 | + |
0 commit comments