Skip to content

Commit

Permalink
Add dummy group when assignee is missing
Browse files Browse the repository at this point in the history
This helps with the problem in #1
  • Loading branch information
penguineer committed Jul 17, 2022
1 parent 74f31d3 commit 4928c18
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions www/aw.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,21 @@ populateAssignees = function(json) {
};

}

// create dummy groups for unknown assignees
for (var i in json.actionable) {
let a = json.actionable[i];
let issue = json.issues[a];
let author_id = issue.assigned_to ? issue.assigned_to : 0;

if (! (author_id in assignees)) {
assignees[author_id] = {
name: "Group " + author_id,
type: "group",
active: false
}
}
}

$("#assignees").empty();
for (id in assignees) {
Expand Down

0 comments on commit 4928c18

Please sign in to comment.