Skip to content
Permalink
Browse files
Cleanup team tags if issue on board is partially fixed - Fixes #164.
Signed-off-by: Ivan Rakov <ivan.glukos@gmail.com>
  • Loading branch information
sergeyuttsel authored and glukos committed Jun 10, 2020
1 parent d46d694 commit 4194d17fce37bf039362539b54770c14ad4f45a3
Showing 1 changed file with 5 additions and 2 deletions.
@@ -25,6 +25,7 @@
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
@@ -112,7 +113,6 @@ public BoardSummaryUi summary(ICredentialsProv creds) {
Map<Integer, DefectFirstBuild> build = next.buildsInvolved();
for (DefectFirstBuild cause : build.values()) {
FatBuildCompacted firstBuild = cause.build();
defectUi.addTags(SingleBuildRunCtx.getBuildTagsFromParameters(cfg, compactor, firstBuild));
FatBuildCompacted fatBuild = fatBuildDao.getFatBuild(next.tcSrvId(), firstBuild.id());

List<Future<FatBuildCompacted>> futures = buildChainProcessor.replaceWithRecent(fatBuild, allBuildsMap, tcIgn);
@@ -124,9 +124,12 @@ public BoardSummaryUi summary(ICredentialsProv creds) {

rebuild = !freshRebuild.isEmpty() ? freshRebuild.stream().findFirst() : Optional.empty();

Set<String> tags = SingleBuildRunCtx.getBuildTagsFromParameters(cfg, compactor, firstBuild);

for (DefectIssue issue : cause.issues()) {
BoardDefectIssueUi issueUi = processIssue(tcIgn, rebuild, issue, firstBuild.buildTypeId());

if (issueUi.status() != IssueResolveStatus.FIXED)
defectUi.addTags(tags);
defectUi.addIssue(issueUi);
}
}

0 comments on commit 4194d17

Please sign in to comment.