File tree Expand file tree Collapse file tree 3 files changed +24
-7
lines changed
src/GitLabHealth-Model-Analysis Expand file tree Collapse file tree 3 files changed +24
-7
lines changed Original file line number Diff line number Diff line change @@ -150,16 +150,32 @@ GitMetricExporter >> entities: aCollection [
150
150
{ #category : #exporting }
151
151
GitMetricExporter >> exportFor: usersWithProjects [
152
152
153
- self exportFor: usersWithProjects over: { Date . Week . Month . Year }.
153
+ self
154
+ deprecated: ' Use #exportInCSV instead'
155
+ on: ' 03 Sept 2024'
156
+ in:
157
+ ' Pharo-11.0.0+build.726.sha.aece1b5473acf3830a0e082c1bc3a15d4ff3522b (64 Bit)' .
158
+
159
+ self exportFor: usersWithProjects over: {
160
+ Date .
161
+ Week .
162
+ Month .
163
+ Year }
154
164
]
155
165
156
166
{ #category : #exporting }
157
167
GitMetricExporter >> exportFor: usersWithProjects over: aCollectionOfDateWeekMonthOrYear [
158
168
169
+ self
170
+ deprecated: ' Use #exportInCSV instead'
171
+ on: ' 03 Sept 2024'
172
+ in:
173
+ ' Pharo-11.0.0+build.726.sha.aece1b5473acf3830a0e082c1bc3a15d4ff3522b (64 Bit)' .
174
+
159
175
entities ifNil: [
160
176
self addEntitiesFromUserNamesAndProjects: usersWithProjects ].
161
177
162
- self exportFor: aCollectionOfDateWeekMonthOrYear.
178
+ self exportFor: aCollectionOfDateWeekMonthOrYear
163
179
]
164
180
165
181
{ #category : #exporting }
Original file line number Diff line number Diff line change 8
8
MergeRequestDurationMetric >> calculate [
9
9
10
10
| groupedByDate gitAnalyzer mergeRequestsValidation filterGroups |
11
- userMergeRequests ifNil: [ self load ].
11
+ userMergeRequests ifNil: [ self load ].
12
12
groupedByDate := self setupGroupedDate.
13
13
14
14
userMergeRequests ifEmpty: [ ^ nil ].
@@ -47,13 +47,13 @@ MergeRequestDurationMetric >> calculate [
47
47
48
48
filterGroups at: assoc key put: sum / denominator ].
49
49
50
- ^ filterGroups average asDuration
50
+ ^ filterGroups average asSeconds
51
51
]
52
52
53
53
{ #category : #accessing }
54
54
MergeRequestDurationMetric >> description [
55
55
56
- ^ ' merge request duration'
56
+ ^ ' merge request duration (in seconds) '
57
57
]
58
58
59
59
{ #category : #accessing }
Original file line number Diff line number Diff line change @@ -33,8 +33,9 @@ TimeBetweenCommitMetric >> calculate [
33
33
(commits2 committed_date
34
34
- commits1 committed_date)
35
35
asSeconds ].
36
+
36
37
37
- differences average asDuration ].
38
+ differences average asFloat ].
38
39
39
40
average := groupedByDate
40
41
ifEmpty: [ nil ]
@@ -46,7 +47,7 @@ TimeBetweenCommitMetric >> calculate [
46
47
{ #category : #accessing }
47
48
TimeBetweenCommitMetric >> description [
48
49
49
- ^ ' average time between commits'
50
+ ^ ' average time between commits (in seconds) '
50
51
]
51
52
52
53
{ #category : #accessing }
You can’t perform that action at this time.
0 commit comments