add fallback to project lead during automatic assignment - fixes #400

Sun, 28 Jul 2024 14:13:36 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 28 Jul 2024 14:13:36 +0200
changeset 306
1ab9f65e683e
parent 305
26e7f895f0f8
child 307
23fe9f174d2d

add fallback to project lead during automatic assignment - fixes #400

src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt file | annotate | diff | comparison | revisions
src/main/webapp/WEB-INF/changelogs/changelog-de.jspf file | annotate | diff | comparison | revisions
src/main/webapp/WEB-INF/changelogs/changelog.jspf file | annotate | diff | comparison | revisions
--- a/src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt	Sun Jul 28 13:09:32 2024 +0200
+++ b/src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt	Sun Jul 28 14:13:36 2024 +0200
@@ -464,7 +464,7 @@
                 assignee = http.param("assignee")?.toIntOrNull()?.let {
                     when (it) {
                         -1 -> null
-                        -2 -> component?.lead
+                        -2 -> (component?.lead ?: projectInfo.project.owner)
                         else -> dao.findUser(it)
                     }
                 }
--- a/src/main/webapp/WEB-INF/changelogs/changelog-de.jspf	Sun Jul 28 13:09:32 2024 +0200
+++ b/src/main/webapp/WEB-INF/changelogs/changelog-de.jspf	Sun Jul 28 14:13:36 2024 +0200
@@ -27,6 +27,7 @@
 <h3>Version 1.3.0 - Vorschau</h3>
 
 <ul>
+    <li>Automatische Zuweisung von Vorgängen bezieht neben der Leitung für eine Komponente nun auch die Leitung des Projektes ein.</li>
     <li>Der "OK" Button im Vorgangseditor führt nun zurück zur Vorgangsübersicht.</li>
     <li>Ein neuer "Speichern" Button im Vorgangseditor führt, wie zuvor, zurück zur Vorgangsansicht.</li>
     <li>Der Seitentitel, wenn ein Vorgang betrachtet wird, beginnt nun mit der Vorgangs-ID.</li>
--- a/src/main/webapp/WEB-INF/changelogs/changelog.jspf	Sun Jul 28 13:09:32 2024 +0200
+++ b/src/main/webapp/WEB-INF/changelogs/changelog.jspf	Sun Jul 28 14:13:36 2024 +0200
@@ -27,6 +27,7 @@
 <h3>Version 1.3.0 - preview</h3>
 
 <ul>
+    <li>Automatic assignment of issue now uses the project lead as fallback when no component lead is available.</li>
     <li>The "OK" button in the issue editor now leads to the issue overview.</li>
     <li>A new "Save" button in the issue editor retains the old behavior and returns to the issue viewer.</li>
     <li>When viewing an issue, the page title now starts with the issue ID.</li>

mercurial