Commit a939db1
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 a939db1Copy full SHA for a939db1
File tree
Expand file treeCollapse file tree
6 files changed
+111
-6
lines changedOpen diff view settings
Filter options
- gitlab
- tests
- functional/api
- unit
Expand file treeCollapse file tree
6 files changed
+111
-6
lines changedOpen diff view settings
Collapse file
+29-1Lines changed: 29 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 | |
| ||
28 | 29 | |
29 | 30 | |
30 | 31 | |
| 32 | + |
31 | 33 | |
32 | 34 | |
33 | 35 | |
| ||
626 | 628 | |
627 | 629 | |
628 | 630 | |
| 631 | + |
| 632 | + |
| 633 | + |
| 634 | + |
| 635 | + |
| 636 | + |
| 637 | + |
| 638 | + |
| 639 | + |
| 640 | + |
| 641 | + |
| 642 | + |
| 643 | + |
| 644 | + |
| 645 | + |
| 646 | + |
| 647 | + |
| 648 | + |
| 649 | + |
| 650 | + |
| 651 | + |
| 652 | + |
629 | 653 | |
630 | 654 | |
631 | 655 | |
| ||
688 | 712 | |
689 | 713 | |
690 | 714 | |
| 715 | + |
| 716 | + |
| 717 | + |
| 718 | + |
691 | 719 | |
692 | 720 | |
693 | 721 | |
| ||
710 | 738 | |
711 | 739 | |
712 | 740 | |
713 | | - |
| 741 | + |
714 | 742 | |
715 | 743 | |
716 | 744 | |
|
Collapse file
+17Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
66 | 66 | |
67 | 67 | |
68 | 68 | |
| 69 | + |
| 70 | + |
| 71 | + |
69 | 72 | |
70 | 73 | |
71 | 74 | |
| ||
90 | 93 | |
91 | 94 | |
92 | 95 | |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
93 | 104 | |
94 | 105 | |
95 | 106 | |
96 | 107 | |
97 | 108 | |
98 | 109 | |
| 110 | + |
| 111 | + |
| 112 | + |
99 | 113 | |
100 | 114 | |
101 | 115 | |
102 | 116 | |
103 | 117 | |
| 118 | + |
| 119 | + |
| 120 | + |
104 | 121 | |
105 | 122 | |
106 | 123 | |
|
Collapse file
+8-5Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
77 | 77 | |
78 | 78 | |
79 | 79 | |
80 | | - |
81 | | - |
82 | | - |
83 | | - |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
84 | 85 | |
85 | | - |
| 86 | + |
86 | 87 | |
87 | 88 | |
88 | 89 | |
| ||
94 | 95 | |
95 | 96 | |
96 | 97 | |
| 98 | + |
| 99 | + |
97 | 100 | |
98 | 101 | |
99 | 102 | |
|
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/test_gitlab_http_methods.py
Copy file name to clipboardExpand all lines: tests/unit/test_gitlab_http_methods.py+18Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
5 | 5 | |
6 | 6 | |
7 | 7 | |
| 8 | + |
8 | 9 | |
9 | 10 | |
10 | 11 | |
| ||
742 | 743 | |
743 | 744 | |
744 | 745 | |
| 746 | + |
| 747 | + |
| 748 | + |
| 749 | + |
| 750 | + |
| 751 | + |
| 752 | + |
| 753 | + |
| 754 | + |
| 755 | + |
| 756 | + |
| 757 | + |
| 758 | + |
| 759 | + |
| 760 | + |
| 761 | + |
| 762 | + |
Collapse file
+34Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
74 | 74 | |
75 | 75 | |
76 | 76 | |
| 77 | + |
77 | 78 | |
78 | 79 | |
79 | 80 | |
| ||
113 | 114 | |
114 | 115 | |
115 | 116 | |
| 117 | + |
| 118 | + |
| 119 | + |
| 120 | + |
| 121 | + |
| 122 | + |
| 123 | + |
| 124 | + |
| 125 | + |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | + |
| 133 | + |
| 134 | + |
116 | 135 | |
117 | 136 | |
118 | 137 | |
| ||
135 | 154 | |
136 | 155 | |
137 | 156 | |
| 157 | + |
| 158 | + |
| 159 | + |
| 160 | + |
| 161 | + |
| 162 | + |
| 163 | + |
| 164 | + |
| 165 | + |
| 166 | + |
138 | 167 | |
139 | 168 | |
140 | 169 | |
141 | 170 | |
| 171 | + |
| 172 | + |
| 173 | + |
| 174 | + |
| 175 | + |
0 commit comments