Commit ac75c47
Add Jira site property to configure max number of returned Jira issues (#665)
* Update for adding jira site config parameter maxIssuesFromJqlSearch
* Update for replacing hard coded value in DescriptorImplTest with Default max value parameter
* Fix testcase replaceWithFixVersionByRegex
* Update for fixing format violations
* - Update for adding maximum allowed value check
- Removing constructor param from JiraSession
- Add and fix test cases
* Use validation message from messages
* Remove check method for form field validation
* Apply spotless fix
* Fix test case
* Fix test case and a validation message grammar
* Fix test case because old config will not have maxIssuesFromJqlSearch
* Remove parameter maxIssuesFromJqlSearch from doValidate and related places
* Implement maximum param value check in setter method
* Use variable for comparison of max allowed value
* Use ternary operator in setter method
* Remove parameter from old jira configuration
* Resolve conflicts
* Fix jira session tests
* Fix test cases because of stubbing problem
* Fix indentation
* Use Integer instead of int
* Fix default value not being used when migrating from old config
---------
Co-authored-by: Hardik Rathod <hardik.rathod@fruitcore.de>1 parent 1583eda commit ac75c47
File tree
8 files changed
+78
-34
lines changed- src
- main
- java/hudson/plugins/jira
- resources/hudson/plugins/jira/JiraSite
- test/java
- hudson/plugins/jira
8 files changed
+78
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | 43 | | |
46 | 44 | | |
47 | 45 | | |
| |||
51 | 49 | | |
52 | 50 | | |
53 | 51 | | |
| 52 | + | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
135 | | - | |
| 136 | + | |
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
| |||
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
180 | | - | |
| 181 | + | |
181 | 182 | | |
182 | 183 | | |
183 | | - | |
| 184 | + | |
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
| |||
227 | 228 | | |
228 | 229 | | |
229 | 230 | | |
230 | | - | |
| 231 | + | |
231 | 232 | | |
232 | 233 | | |
233 | 234 | | |
| |||
257 | 258 | | |
258 | 259 | | |
259 | 260 | | |
260 | | - | |
| 261 | + | |
261 | 262 | | |
262 | 263 | | |
263 | 264 | | |
| |||
313 | 314 | | |
314 | 315 | | |
315 | 316 | | |
316 | | - | |
| 317 | + | |
317 | 318 | | |
318 | 319 | | |
319 | 320 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| |||
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
120 | 125 | | |
121 | 126 | | |
122 | 127 | | |
| |||
150 | 155 | | |
151 | 156 | | |
152 | 157 | | |
| 158 | + | |
153 | 159 | | |
154 | 160 | | |
155 | 161 | | |
156 | 162 | | |
157 | 163 | | |
158 | 164 | | |
159 | 165 | | |
| 166 | + | |
160 | 167 | | |
161 | 168 | | |
162 | 169 | | |
| |||
221 | 228 | | |
222 | 229 | | |
223 | 230 | | |
| 231 | + | |
224 | 232 | | |
225 | 233 | | |
226 | 234 | | |
227 | 235 | | |
228 | 236 | | |
229 | 237 | | |
| 238 | + | |
230 | 239 | | |
231 | 240 | | |
232 | 241 | | |
| |||
238 | 247 | | |
239 | 248 | | |
240 | 249 | | |
241 | | - | |
242 | 250 | | |
243 | 251 | | |
244 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
245 | 258 | | |
246 | 259 | | |
247 | 260 | | |
| |||
502 | 515 | | |
503 | 516 | | |
504 | 517 | | |
| 518 | + | |
505 | 519 | | |
506 | 520 | | |
507 | 521 | | |
| |||
516 | 530 | | |
517 | 531 | | |
518 | 532 | | |
| 533 | + | |
519 | 534 | | |
520 | 535 | | |
521 | 536 | | |
| |||
646 | 661 | | |
647 | 662 | | |
648 | 663 | | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
649 | 675 | | |
650 | 676 | | |
651 | 677 | | |
| |||
683 | 709 | | |
684 | 710 | | |
685 | 711 | | |
686 | | - | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
687 | 717 | | |
688 | 718 | | |
689 | 719 | | |
| |||
760 | 790 | | |
761 | 791 | | |
762 | 792 | | |
763 | | - | |
| 793 | + | |
| 794 | + | |
764 | 795 | | |
765 | 796 | | |
766 | 797 | | |
| |||
1132 | 1163 | | |
1133 | 1164 | | |
1134 | 1165 | | |
1135 | | - | |
| 1166 | + | |
1136 | 1167 | | |
1137 | 1168 | | |
| 1169 | + | |
1138 | 1170 | | |
1139 | 1171 | | |
1140 | 1172 | | |
| |||
1148 | 1180 | | |
1149 | 1181 | | |
1150 | 1182 | | |
1151 | | - | |
| 1183 | + | |
1152 | 1184 | | |
1153 | 1185 | | |
1154 | 1186 | | |
| |||
1234 | 1266 | | |
1235 | 1267 | | |
1236 | 1268 | | |
1237 | | - | |
| 1269 | + | |
1238 | 1270 | | |
1239 | | - | |
| 1271 | + | |
1240 | 1272 | | |
1241 | 1273 | | |
1242 | 1274 | | |
| |||
1251 | 1283 | | |
1252 | 1284 | | |
1253 | 1285 | | |
1254 | | - | |
| 1286 | + | |
1255 | 1287 | | |
1256 | | - | |
1257 | | - | |
| 1288 | + | |
| 1289 | + | |
1258 | 1290 | | |
1259 | 1291 | | |
1260 | 1292 | | |
| |||
1521 | 1553 | | |
1522 | 1554 | | |
1523 | 1555 | | |
1524 | | - | |
1525 | 1556 | | |
1526 | 1557 | | |
1527 | 1558 | | |
| |||
1567 | 1598 | | |
1568 | 1599 | | |
1569 | 1600 | | |
| 1601 | + | |
1570 | 1602 | | |
1571 | 1603 | | |
1572 | 1604 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
60 | | - | |
| 59 | + | |
61 | 60 | | |
62 | 61 | | |
63 | 62 | | |
| |||
102 | 101 | | |
103 | 102 | | |
104 | 103 | | |
105 | | - | |
106 | | - | |
| 104 | + | |
| 105 | + | |
107 | 106 | | |
108 | 107 | | |
109 | 108 | | |
| |||
112 | 111 | | |
113 | 112 | | |
114 | 113 | | |
115 | | - | |
| 114 | + | |
116 | 115 | | |
117 | 116 | | |
118 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
62 | | - | |
| 61 | + | |
63 | 62 | | |
64 | 63 | | |
65 | 64 | | |
| |||
104 | 103 | | |
105 | 104 | | |
106 | 105 | | |
107 | | - | |
108 | | - | |
| 106 | + | |
109 | 107 | | |
110 | 108 | | |
111 | 109 | | |
| |||
114 | 112 | | |
115 | 113 | | |
116 | 114 | | |
117 | | - | |
| 115 | + | |
118 | 116 | | |
119 | 117 | | |
120 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
0 commit comments