Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
6248d65
finalize importer deprecation
Aug 21, 2025
38b6421
starting migrating importer toward new reader configuration
Aug 21, 2025
4afd5ee
Merge f10fd5d0c6294f3559b7b0a8a4e3d1ff4b61917f
Aug 28, 2025
07c5362
Merge 314823521f6fa777a70ddb26a5c4a8ea7d8e9645
Sep 1, 2025
ff95a6d
add return for files in branches
Sep 1, 2025
e6e6c5a
add git reference as Trait for commit tag and branch
Sep 18, 2025
1835d48
generate new metamodel with ref
Sep 18, 2025
9035ed5
Merge f218ae2a63cddc48387c450b7784a981ddd5acaf
Sep 18, 2025
a2074b3
Merge dd8ffa1f62de8fb7efe3e47372090915dd11081b
Sep 19, 2025
e5fac28
add constructor in class since of GitModelImporter for quality of lif…
Sep 19, 2025
146c4c7
add bitbucket constructor class side
Sep 19, 2025
b59e3bc
stylish
Sep 19, 2025
78c8747
add protocols
Sep 19, 2025
d8726f3
change protocol
Sep 19, 2025
678264d
moving methods to top class and fixing protocol names
Sep 19, 2025
7295c43
refactoring protocol; moving up method declaration for importers and …
Sep 19, 2025
97d4321
modify github import to support new API
Sep 22, 2025
f5af8ad
add importer for MR (or PR) in Github
Sep 22, 2025
783e2bb
move reader configuration to super class importer
Sep 22, 2025
40acb69
move up initReader to super class
Sep 22, 2025
dbe32af
initiate refactoring naming convention for Readers
Sep 22, 2025
01c27fe
debug
Sep 23, 2025
175603e
add model TRef properties
Sep 23, 2025
987b1a8
fix branch loading commits
Sep 23, 2025
47f4a2b
refactoring configuration reader to super class with default implemen…
Sep 23, 2025
292f2d7
super reader for group and project
Sep 23, 2025
2883c83
fix reader declaration
Sep 23, 2025
ac91f8e
Fix readers for Commit, MR, Note, pipeline, release, user
Sep 23, 2025
eac073b
stabilized job reader
Sep 23, 2025
9221e4a
fix job import (gitlab)
Sep 23, 2025
270cd25
add tests
Sep 23, 2025
c085574
more tests and bug fix
Sep 23, 2025
25a2f60
tipo corrections
Sep 23, 2025
d4c950f
implement tipo correct in model
Sep 23, 2025
9074921
update reader configurator for github
Sep 24, 2025
20f79a2
add tests for user in github importer
Sep 24, 2025
cac95cf
adding tests to github
Sep 24, 2025
4860609
fix tests
Sep 24, 2025
1459c68
fix commit diff load for github import
Sep 25, 2025
db91cdc
fix merge request github
Sep 25, 2025
ad07bdc
fix pipeline github import
Sep 26, 2025
a6cc940
fix tests
Sep 26, 2025
2506204
add duration to job pipeline import
Sep 26, 2025
b764c83
fix baseline
badetitou Sep 26, 2025
d95e511
deprecated importBranch to importBranchsOfProject
Sep 26, 2025
4d7d1c7
fix relation for issues
Sep 26, 2025
ad307d7
regenerate metamodel
Sep 26, 2025
677096e
add issue to github import
Sep 26, 2025
d1f96fd
Update src/GitHubHealth-Model-Importer/GithubModelImporter.class.st
alkalinan Sep 26, 2025
33d7c18
Update src/GitHubHealth-Model-Importer/GithubModelImporter.class.st
alkalinan Sep 26, 2025
4b4c108
Update src/GitHubHealth-Model-Importer/GithubModelImporter.class.st
alkalinan Sep 26, 2025
827a2a8
Update src/GitLabHealth-Model-Importer/GitlabModelImporter.class.st
alkalinan Sep 26, 2025
7d9073a
Update src/GitLabHealth-Model-Importer/GitlabModelImporter.class.st
alkalinan Sep 26, 2025
18803e5
Update src/GitHubHealth-Model-Importer/GithubModelImporter.class.st
alkalinan Sep 26, 2025
4c9c402
Update src/GitHubHealth-Model-Importer/GithubModelImporter.class.st
alkalinan Sep 26, 2025
47f5f84
re-add jira to commit connection
Oct 1, 2025
9215ab5
Merge pull request #233 from moosetechnology/importer-refactoring
badetitou Oct 13, 2025
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
4 changes: 2 additions & 2 deletions src/BaselineOfGitLabHealth/BaselineOfGitLabHealth.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ BaselineOfGitLabHealth >> defineGroups: spec [
'GitLabHealth-Model-Importer' 'GitLabHealth-Model-Importer-Tests'
'GitHubHealth-Model-Importer-Tests'
'GitLabHealth-Model-Analysis' 'GitLabHealth-Model-Analysis-Tests'
'GitLabHealth-Visualization'
'GitLabProjectHealth-Model-Importer'
'GitLabHealth-Visualization' 'GitLabProjectHealth-Model-Importer'
'GitProjectHealth-Model-Importer-Tests'
'BitBucketHealth-Model-Importer'
'BitBucketHealth-Model-Importer-Tests' ).
spec group: 'default' with: #( 'Core' )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ BitBucketModelImporterTest >> testImportMergeRequestsSinceUntil [

"When"
mergeRequests := bitBucketImporter
importMergeRequests: project
importMergeRequestsOfProject: project
since: '09-23-2024'
until: '09-25-2024'.

Expand Down Expand Up @@ -712,7 +712,7 @@ BitBucketModelImporterTest >> testImportMergeRequestsSinceUntilAttachedToGoodPro

"When"
mergeRequests := bitBucketImporter
importMergeRequests: project
importMergeRequestsOfProject: project
since: '09-23-2024'
until: '09-25-2024'.

Expand Down Expand Up @@ -749,7 +749,7 @@ BitBucketModelImporterTest >> testImportMergeRequestsSinceUntilClosedMR [

"When"
mergeRequests := bitBucketImporter
importMergeRequests: project
importMergeRequestsOfProject: project
since: '09-23-2024'
until: '09-25-2024'.

Expand Down Expand Up @@ -790,7 +790,7 @@ BitBucketModelImporterTest >> testImportMergeRequestsSinceUntilDeclinedMR [

"When"
mergeRequests := bitBucketImporter
importMergeRequests: project
importMergeRequestsOfProject: project
since: '09-23-2024'
until: '09-25-2024'.

Expand Down
40 changes: 33 additions & 7 deletions src/BitBucketHealth-Model-Importer/BitBucketModelImporter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ BitBucketModelImporter >> bitBucketApi: anObject [
repoApi := anObject
]

{ #category : #commit }
{ #category : #'import - commits' }
BitBucketModelImporter >> completeImportedCommit: aCommit [

('completing commit: ' , aCommit short_id printString) recordInfo.
Expand Down Expand Up @@ -118,7 +118,7 @@ BitBucketModelImporter >> convertBitBucketDiffToGitDiff: response [
^ result
]

{ #category : #'as yet unclassified' }
{ #category : #'import - notes' }
BitBucketModelImporter >> extractNoteFromComment: aDictionary [

^ GLHNote new
Expand Down Expand Up @@ -186,9 +186,35 @@ BitBucketModelImporter >> importAndLoadLatestsCommitsOfProject: aGLHProject [
^ commits
]

{ #category : #'import - repositories' }
{ #category : #'import - branches' }
BitBucketModelImporter >> importBranchesOf: aGLHProject [

| branches glhBranches |
self
deprecated: 'Use importBranchesOfProject: instead of current one'
on: '26 September 2025'
in:
'Pharo-12.0.0+SNAPSHOT.build.1571.sha.cf5fcd22e66957962c97dffc58b0393b7f368147 (64 Bit)'.
branches := self repoApi branches
allWithParams: { } asDictionary
inRepository: aGLHProject id
ofProject: aGLHProject group id.
glhBranches := branches collect: [ :branch |
self
parseBranchIntoGLHBranch: branch
ofProject: aGLHProject ].

glhBranches do: [ :glhBranch |
aGLHProject repository addBranch: glhBranch ].

self glhModel addAll: glhBranches unless: self blockForBranchEquality.

^ glhBranches
]

{ #category : #'import - branches' }
BitBucketModelImporter >> importBranchesOfProject: aGLHProject [

| branches glhBranches |
branches := self repoApi branches
allWithParams: { } asDictionary
Expand Down Expand Up @@ -377,7 +403,7 @@ BitBucketModelImporter >> importMergeRequestCommits: mergeRequest [
^ commits
]

{ #category : #'import - merge request' }
{ #category : #'import - merge-requests' }
BitBucketModelImporter >> importMergeRequestMergeCommits: aGLHMergeRequest [

aGLHMergeRequest mergedCommit ifNotNil: [
Expand Down Expand Up @@ -406,7 +432,7 @@ BitBucketModelImporter >> importMergeRequestMergeCommits: aGLHMergeRequest [
^ { found } ]
]

{ #category : #'import - merge request' }
{ #category : #'import - merge-requests' }
BitBucketModelImporter >> importMergeRequestStats: aMergeRequest [

| commitDiffs contribution |
Expand All @@ -432,7 +458,7 @@ BitBucketModelImporter >> importMergeRequestStats: aMergeRequest [
]

{ #category : #'import - merge-requests' }
BitBucketModelImporter >> importMergeRequests: aGLHProject since: fromDate until: toDate [
BitBucketModelImporter >> importMergeRequestsOfProject: aGLHProject since: fromDate until: toDate [

| pullRequests params |
params := {
Expand Down Expand Up @@ -484,7 +510,7 @@ BitBucketModelImporter >> importMergeResquestMerger: mergeRequest [
]

{ #category : #'import - notes' }
BitBucketModelImporter >> importNotesfromMergeRequest: mergeRequest [
BitBucketModelImporter >> importNotesOfMergeRequest: mergeRequest [

| results notes |
results := self repoApi pullRequests
Expand Down
Loading