|
741 | 741 | Object.keys(allFw).forEach(function(fw) { |
742 | 742 | if (isExcluded(fw)) return; |
743 | 743 | var scores = []; |
744 | | - var participated = 0; |
| 744 | + // Visibility is separate from scoring: a row shows up whenever the |
| 745 | + // framework has *any* data in the active profile set (hasAnyData), |
| 746 | + // while the composite total sums only profiles that are scored for |
| 747 | + // that framework's type (scoredCount / composite). Conflating the |
| 748 | + // two was hiding infrastructure frameworks on every non-H/1.1-isolated |
| 749 | + // tab because profileInfraScored is only true for baseline/pipelined/ |
| 750 | + // limited-conn/static — nginx/h2o then showed 0 scored profiles on |
| 751 | + // an H/2 or H/3 tab and were dropped entirely. |
| 752 | + var hasAnyData = false; |
| 753 | + var scoredCount = 0; |
745 | 754 | activeIds.forEach(function(pid) { |
746 | 755 | if (avgByProfile[pid] && avgByProfile[pid][fw] && maxRpsByProfile[pid] > 0) { |
747 | 756 | var rps = avgByProfile[pid][fw]; |
|
770 | 779 | } |
771 | 780 | } |
772 | 781 | scores.push(profileScore); |
773 | | - if (isScoredForFw(pid, fw)) participated++; |
| 782 | + hasAnyData = true; |
| 783 | + if (isScoredForFw(pid, fw)) scoredCount++; |
774 | 784 | } else { |
775 | 785 | scores.push(0); |
776 | 786 | } |
777 | 787 | }); |
778 | | - var composite; |
779 | | - if (participated === 0) { |
780 | | - return; |
781 | | - } else { |
782 | | - var sum = 0; |
783 | | - activeIds.forEach(function(pid, i) { |
784 | | - if (isScoredForFw(pid, fw) && scores[i] > 0) sum += scores[i]; |
785 | | - }); |
786 | | - composite = sum; |
787 | | - } |
788 | | - results.push({ framework: fw, language: fwLang[fw] || '', scores: scores, composite: composite, participated: participated }); |
| 788 | + if (!hasAnyData) return; |
| 789 | + var sum = 0; |
| 790 | + activeIds.forEach(function(pid, i) { |
| 791 | + if (isScoredForFw(pid, fw) && scores[i] > 0) sum += scores[i]; |
| 792 | + }); |
| 793 | + results.push({ framework: fw, language: fwLang[fw] || '', scores: scores, composite: sum, participated: scoredCount }); |
789 | 794 | }); |
790 | 795 | // Sort by active column |
791 | 796 | if (compositeSortCol === 'composite' || compositeSortCol === null) { |
|
0 commit comments