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

fix importer #70

Merged
merged 1 commit into from
Sep 26, 2024
Merged
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
13 changes: 0 additions & 13 deletions src/GitLabHealth-Model-Importer/GLHModelImporter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,9 @@ Class {
'generalReader',
'userCatalogue'
],
#classVars : [
'currentImporter'
],
#category : #'GitLabHealth-Model-Importer'
}

{ #category : #'as yet unclassified' }
GLHModelImporter class >> importers [
^ currentImporter
]

{ #category : #initialization }
GLHModelImporter class >> reset [
currentImporter := nil.
]

{ #category : #'private - api' }
GLHModelImporter >> addCommits: commitsList toRepository: aProjectRepository [
"I take a list of GLHCommit. But some might have been parsed but are already on the model..."
Expand Down
4 changes: 2 additions & 2 deletions src/GitLabHealth-Visualization/RSCommit.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Class {
'aCommit',
'canvas'
],
#category : 'GitLabHealth-Visualization'
#category : #'GitLabHealth-Visualization'
}

{ #category : #'as yet unclassified' }
Expand Down Expand Up @@ -402,7 +402,7 @@ RSCommit >> shapeForCommit: aGLHCommit withColor: color [
group := RSGroup new.
impactedFiles := RSGroup new.
labelTitle := RSLabel new
text: (aGLHCommit name truncateWithElipsisTo: 40);
text: (aGLHCommit message ifNil: [ (aGLHCommit id truncateWithElipsisTo: 7) printString ] ifNotNil: [ aGLHCommit message truncateWithElipsisTo: 40] );
yourself.

labelCommiter := RSLabel new
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 @@ -12,9 +12,22 @@ Class {
'withFiles',
'glhModel'
],
#category : 'GitProjectHealth-Model-Importer'
#classVars : [
'currentImporter'
],
#category : #'GitProjectHealth-Model-Importer'
}

{ #category : #'accessing - global variables' }
GPModelImporter class >> importers [
^ currentImporter
]

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

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

Expand Down
Loading