Commit 5ff5acc
committed
Improve bug resolution and assignment logic
Prior to this, depending on plugin settings, the code in
Source_Process_Changesets() would resolve the issue linked to the
changeset and assign it, even in the following invalid scenarios:
- the changeset's author is a registered user in Mantis, but does not
have privilege to handle issues (e.g. reporter access level):
the issue is assigned to them anyway.
- the changeset was authored by developer 1, but was committed by dev2:
the issue is assigned to dev2 instead of dev1.
With this commit, the behavior has been changed as follows
1. Issue assignment is determined in the following order:
- assign to changeset author, if known user and can handle issues;
- assign to committer, if they can handle issues;
- otherwise, the changeset is attached but the issue is not assigned.
2. Issue resolution only occurs if a valid handler could be determined
in step 1, otherwise the issue's status and resolution remain
unchanged.
Fixes #80, fixes #1041 parent 43df359 commit 5ff5acc
1 file changed
+28
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
232 | 233 | | |
233 | 234 | | |
234 | 235 | | |
| |||
293 | 294 | | |
294 | 295 | | |
295 | 296 | | |
296 | | - | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
297 | 304 | | |
298 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
299 | 313 | | |
300 | | - | |
301 | | - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
302 | 318 | | |
303 | 319 | | |
304 | 320 | | |
| |||
350 | 366 | | |
351 | 367 | | |
352 | 368 | | |
353 | | - | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
354 | 373 | | |
355 | 374 | | |
356 | 375 | | |
| |||
367 | 386 | | |
368 | 387 | | |
369 | 388 | | |
370 | | - | |
371 | 389 | | |
372 | | - | |
373 | | - | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
374 | 394 | | |
375 | 395 | | |
376 | 396 | | |
| |||
0 commit comments