Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Fixup setting platforms from bug component
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraham committed Mar 5, 2024
1 parent 1a6db3b commit f0f7aab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/scorebug/scorebug.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const ALL_IMPACT = getCategoryValues("impact", "option");
const ALL_AFFECTS = getCategoryValues("affects", "option");

function getCategoryValues(prefix, elemType) {
console.log(`#${prefix} ${elemType}`, document.querySelectorAll(`#${prefix} ${elemType}`));
return Array.from(document.querySelectorAll(`#${prefix} ${elemType}`)).map(elem => {
const [gotPrefix, ...rest] = elem.id.split("-");
if (gotPrefix != prefix) {
Expand Down Expand Up @@ -104,7 +103,6 @@ function readData() {
}

function getUserStory(data) {
console.log(data, Array.from(Object.values(data.platforms)).filter(x => x.included));
return `platform:${Array.from(Object.values(data.platforms)).filter(x => x.included).map(x => x.name).join(",")}
impact:${data.impact.name}
affects:${data.affects.name}
Expand Down Expand Up @@ -221,6 +219,7 @@ async function updateFromBug() {
} else if (bugData.component == "Mobile") {
platforms = ["android"];
}
data.platforms = platforms;
}
setFieldsFromBug(data);
}

0 comments on commit f0f7aab

Please sign in to comment.