• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

moosetechnology / GitProjectHealth / 16163940073

09 Jul 2025 08:10AM UTC coverage: 74.26% (-0.6%) from 74.908%
16163940073

Pull #216

github

web-flow
Merge ee8bd9087 into 8f0fcd09b
Pull Request #216: add issue class in model

10 of 328 new or added lines in 6 files covered. (3.05%)

24 existing lines in 2 files now uncovered.

17584 of 23679 relevant lines covered (74.26%)

0.74 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/GitLabHealth-Model-Visualization/GLHCommitDistributionByWeekDayVisualization.class.st
1
Class {
2
        #name : #GLHCommitDistributionByWeekDayVisualization,
3
        #superclass : #GLHCommitDistributionVisualization,
4
        #category : #'GitLabHealth-Model-Visualization'
5
}
6

7
{ #category : #'instance creation' }
NEW
8
GLHCommitDistributionByWeekDayVisualization >> forCommits: aCommitsCollection [
×
NEW
9

×
NEW
10
        | c lb horizontal commitGroups alreadyAdded dates groupToCommitByProject |
×
NEW
11
        c := RSCompositeChart new.
×
NEW
12
        aCommitsCollection ifEmpty: [ ^ c canvas ].
×
NEW
13

×
NEW
14
        dates := Date dayNames.
×
NEW
15

×
NEW
16
        "default is group by commitCreator (initialize)"
×
NEW
17
        commitGroups := aCommitsCollection groupedBy: [ :commit |
×
NEW
18
                                commit repository project name ].
×
NEW
19

×
NEW
20
        groupToCommitByProject := commitGroups associations collect: [ :assoc |
×
NEW
21
                                          assoc key -> (dates collect: [ :date |
×
NEW
22
                                                   date
×
NEW
23
                                                   -> (assoc value select: [ :commit |
×
NEW
24
                                                                    commit committed_date dayOfWeekName
×
NEW
25
                                                                    = date ]) ]) ].
×
NEW
26

×
NEW
27

×
NEW
28

×
NEW
29
        alreadyAdded := dates asArray collect: [ :d | 0 ].
×
NEW
30

×
NEW
31
        groupToCommitByProject do: [ :assocGroupToCommitByProject |
×
NEW
32
                | chart |
×
NEW
33
                chart := (RSAbstractChart barHeights:
×
NEW
34
                                  (assocGroupToCommitByProject value collect: [
×
NEW
35
                                           :project2Commits | project2Commits value size ]))
×
NEW
36
                                 bottom: alreadyAdded.
×
NEW
37
                c add: chart.
×
NEW
38
                chart color: assocGroupToCommitByProject key asColorHSL.
×
NEW
39
                alreadyAdded := alreadyAdded + chart yValues asArray ].
×
NEW
40

×
NEW
41
        horizontal := c horizontalTick fromNames: dates.
×
NEW
42
        horizontal configuration fontSize: 10.
×
NEW
43
        horizontal useDiagonalLabel.
×
NEW
44
        c verticalTick integer.
×
NEW
45
        c ylabel: 'Number of commits'.
×
NEW
46
        c title: 'Number of commits by Day of the Week'.
×
NEW
47
        c build.
×
NEW
48
        
×
NEW
49
        
×
NEW
50
        
×
NEW
51
        lb := RSLegend new.
×
NEW
52
        lb layout vertical.
×
NEW
53
        commitGroups keys doWithIndex: [ :groupObject :index |
×
NEW
54
                lb
×
NEW
55
                        text: groupObject fullDisplayString
×
NEW
56
                        withBoxColor: (c plots at: index) computeColor ].
×
NEW
57
        lb container: c canvas.
×
NEW
58
        lb location
×
NEW
59
                right;
×
NEW
60
                middle;
×
NEW
61
                offset: 10 @ 0.
×
NEW
62
        lb build.
×
NEW
63
        ^ c canvas
×
NEW
64
]
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc