Skip to content

Commit

Permalink
Fixed issue with stats for non-placeholder screens
Browse files Browse the repository at this point in the history
  • Loading branch information
jonesde committed Nov 25, 2016
1 parent 99d7bd8 commit 23cf723
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ public class ScreenFacadeImpl implements ScreenFacade {
throw new BaseException("Could not find root screen for host: ${host}")
}

/** Called from ArtifactStats screen */
List<ScreenInfo> getScreenInfoList(String rootLocation, int levels) {
ScreenInfo rootInfo = new ScreenInfo(getScreenDefinition(rootLocation), null, null, 0)
List<ScreenInfo> infoList = []
Expand Down Expand Up @@ -361,7 +362,8 @@ public class ScreenFacadeImpl implements ScreenFacade {
sections = sd.sectionByName.size()
transitions = sd.transitionByName.size()
for (TransitionItem ti in sd.transitionByName.values()) if (ti.hasActionsOrSingleService()) transitionsWithActions++
isNonPlaceholder = forms || sections || transitions
isNonPlaceholder = forms > 0 || sections > 0 || transitions > 3
// if (isNonPlaceholder) logger.info("Screen ${name} forms ${forms} sections ${sections} transitions ${transitions}")

// trickle up totals
ScreenInfo curParent = parentInfo
Expand Down

0 comments on commit 23cf723

Please sign in to comment.