Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change parsing of Date #111

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/GitLabHealth-Model-Analysis/AnalysisReport.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Class {
'over',
'metrics'
],
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #initialization }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #ClosedMergeRequestMetric,
#superclass : #UserMergeRequestMetric,
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #calculating }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #ClosedTicketsMetric,
#superclass : #UserJiraMetric,
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #calculating }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #CodeAdditionByMRMetric,
#superclass : #UserMergeRequestMetric,
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #calculating }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #CodeAdditionByTicketMetric,
#superclass : #UserJiraMetric,
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #calculating }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #CodeAdditionMetric,
#superclass : #UserCommitsMetric,
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #calculating }
Expand Down
2 changes: 1 addition & 1 deletion src/GitLabHealth-Model-Analysis/CodeChurnMetric.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Class {
#instVars : [
'maxCommitWindow'
],
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #calculating }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #CodeDeletionByMRMetric,
#superclass : #UserMergeRequestMetric,
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #calculating }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #CodeDeletionByTicketMetric,
#superclass : #UserJiraMetric,
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #calculating }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #CodeDeletionMetric,
#superclass : #UserCommitsMetric,
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #calculating }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #CommentContributionMetric,
#superclass : #UserCommitsMetric,
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #calculating }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #CommitFrequencyMetric,
#superclass : #UserCommitsMetric,
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #calculating }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #CommitsNumberByJiraTicketsMetric,
#superclass : #UserJiraMetric,
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #calculating }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #ContributedProjectMetric,
#superclass : #UserCommitsMetric,
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #calculating }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Class {
#instVars : [
'maxCommitWindow'
],
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #calculating }
Expand Down
2 changes: 1 addition & 1 deletion src/GitLabHealth-Model-Analysis/GLHUserCatalogue.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Class {
'users',
'anImporter'
],
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #import }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Class {
'user',
'names'
],
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #initialization }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #GLHUserCatalogueV2,
#superclass : #GLHUserCatalogue,
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #import }
Expand Down
2 changes: 1 addition & 1 deletion src/GitLabHealth-Model-Analysis/GitAnalyzer.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Class {
'onProject',
'maxChildCommits'
],
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #analyze }
Expand Down
6 changes: 3 additions & 3 deletions src/GitLabHealth-Model-Analysis/GitMetricExporter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Class {
'metrics',
'analyses'
],
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #'as yet unclassified' }
Expand Down Expand Up @@ -322,7 +322,7 @@ GitMetricExporter >> findParticipationOfCommitAuthorNamed: username amongProject
response := glhImporter repoApi
commitsOfUser: username
inProject: project id
since: '01 january 2023' asDateAndTime
since: '01 january 2023' asDate asDateAndTime
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

until: Date today asDateAndTime.
response := glhImporter parseCommitsResult: response.
response isNotEmpty
Expand Down Expand Up @@ -433,7 +433,7 @@ GitMetricExporter >> initialize [

entities := OrderedCollection new.
"set up the minimal date from which we are looking for the commits a particular user in projects"
sinceTimeLimit := '2024-01-01' asDateAndTime.
sinceTimeLimit := '2024-01-01' asDate asDateAndTime.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

runningPeriods := OrderedCollection new.
maxCommitWindow := 3.
over := Date.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #JiraTimeMRTimeDifferenceMetric,
#superclass : #UserJiraMetric,
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #calculating }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #MergeRequestDurationMetric,
#superclass : #UserMergeRequestMetric,
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #calculating }
Expand Down
2 changes: 1 addition & 1 deletion src/GitLabHealth-Model-Analysis/Metric.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Class {
'glhImporter',
'jiraImporter'
],
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #'as yet unclassified' }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #OpenedMergeRequestMetric,
#superclass : #UserMergeRequestMetric,
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #calculating }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #PendingMergeRequestMetric,
#superclass : #UserMergeRequestMetric,
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #calculating }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Class {
#instVars : [
'projectName'
],
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #accessing }
Expand Down
2 changes: 1 addition & 1 deletion src/GitLabHealth-Model-Analysis/ProjectMetric.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ Class {
#instVars : [
'project'
],
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #ReviewedByUserMergeRequestMetric,
#superclass : #UserMergeRequestMetric,
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #calculating }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #SelfMergedUnderAMinuteMergeRequestMetric,
#superclass : #UserMergeRequestMetric,
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #calculating }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #TimeBetweenCommitMetric,
#superclass : #UserCommitsMetric,
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #calculating }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Class {
'username',
'email'
],
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #accessing }
Expand Down
2 changes: 1 addition & 1 deletion src/GitLabHealth-Model-Analysis/UserCommitsMetric.class.st
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #UserCommitsMetric,
#superclass : #UserMetric,
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #calculating }
Expand Down
2 changes: 1 addition & 1 deletion src/GitLabHealth-Model-Analysis/UserJiraMetric.class.st
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #UserJiraMetric,
#superclass : #UserMetric,
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #calculating }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #UserMergeRequestMetric,
#superclass : #UserMetric,
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #calculating }
Expand Down
2 changes: 1 addition & 1 deletion src/GitLabHealth-Model-Analysis/UserMetric.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Class {
'userMergeRequests',
'emailDomain'
],
#category : 'GitLabHealth-Model-Analysis'
#category : #'GitLabHealth-Model-Analysis'
}

{ #category : #utils }
Expand Down
Loading
Loading