Skip to content

Commit

Permalink
Merge pull request #78 from moosetechnology/fix/model-importer
Browse files Browse the repository at this point in the history
put model importer inside super class
  • Loading branch information
alkalinan authored Oct 7, 2024
2 parents 89c52cd + 5b77080 commit 56314d3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
14 changes: 0 additions & 14 deletions src/GitLabHealth-Model-Importer/GLHModelImporter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,6 @@ GLHModelImporter >> initialize [
yourself.
self initReader.

currentImporter := self
]

{ #category : #importer }
Expand All @@ -935,19 +934,6 @@ GLHModelImporter >> loadAllProjectsFromRepositorySoftware [
projects := self glhApi projects.
]

{ #category : #'as yet unclassified' }
GLHModelImporter >> makeGlobal [
^ self makeGlobal: DateAndTime now printString.
]

{ #category : #'as yet unclassified' }
GLHModelImporter >> makeGlobal: aLabel [

currentImporter := currentImporter ifNil: [ OrderedDictionary new ].
currentImporter at: aLabel put: self.
^ self
]

{ #category : #private }
GLHModelImporter >> newParseCommitResult: result [

Expand Down
15 changes: 14 additions & 1 deletion src/GitProjectHealth-Model-Importer/GPModelImporter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ GPModelImporter class >> importers [

{ #category : #initialization }
GPModelImporter class >> reset [
currentImporter := nil.
currentImporter := OrderedDictionary new.
]

{ #category : #accessing }
Expand Down Expand Up @@ -81,6 +81,19 @@ GPModelImporter >> initialize [
self withCommitsSince: (Date today - 1 week) asDateAndTime
]

{ #category : #'as yet unclassified' }
GPModelImporter >> makeGlobal [
^ self makeGlobal: DateAndTime now printString.
]

{ #category : #'as yet unclassified' }
GPModelImporter >> makeGlobal: aLabel [

currentImporter := GHModelImporter importers ifNil: [ OrderedDictionary new ].
currentImporter at: aLabel put: self.
^ currentImporter
]

{ #category : #accessing }
GPModelImporter >> withCommitsSince [

Expand Down

0 comments on commit 56314d3

Please sign in to comment.