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

change parsing of Date #111

wants to merge 1 commit into from

Conversation

alkalinan
Copy link
Collaborator

No description provided.

@alkalinan alkalinan requested a review from badetitou November 26, 2024 14:00
@@ -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

@@ -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

@@ -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: [
Copy link
Member

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:
Copy link
Member

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 ]
Copy link
Member

Choose a reason for hiding this comment

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

ok

Copy link
Member

@badetitou badetitou left a comment

Choose a reason for hiding this comment

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

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants