-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: develop
Are you sure you want to change the base?
Conversation
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
@@ -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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
@@ -35,7 +34,7 @@ GLPHModelImporter >> commitsOfProject: aGLHProject forRefName: refName until: to | |||
newlyFoundCommit := parsedResults reject: [ :commitParsed | | |||
(toDate isNil or: [ | |||
commitParsed committed_date | |||
< toDate asDateAndTime ]) or: [ | |||
< toDate asDate asDateAndTime ]) or: [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
@@ -277,9 +276,9 @@ GLPHModelImporter >> importMergeRequests: aGLHProject since: fromDate until: toD | |||
results := self repoApi | |||
mergeRequestsOfProject: aGLHProject id | |||
createdAfter: | |||
(fromDate ifNotNil: [ fromDate asDateAndTime asString ]) | |||
(fromDate ifNotNil: [ fromDate asDate asDateAndTime asString ]) | |||
createdBefore: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
@@ -427,5 +426,5 @@ GLPHModelImporter >> withCommitsSince: someDays [ | |||
(someDays isKindOf: DateAndTime) | |||
ifTrue: [ withCommitsSince := someDays ] | |||
ifFalse: [ | |||
withCommitsSince := (Date today - someDays) asDateAndTime ] | |||
withCommitsSince := (Date today - someDays) asDate asDateAndTime ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
No description provided.