Skip to content

Merge request Authors are not set in userCatalogue #117

Description

@alkalinan

In GHModelImporter, importing a user, from importMergeResquestAuthor: does not add it to the userCatalogue property of the importer. This can be fix by changing importUser: last lines. Note that API of user imports can be generic to all importer (future works)

importUser: aUserID

	| result userResult |
	(self glhModel allWithType: GLHUser)
		detect: [ :user | user id = aUserID ]
		ifFound: [ :user | ^ user ].
	('Import user: ' , aUserID printString) recordInfo.
	result := self repoApi user: aUserID.
	userResult := self parseUserResult: result.
	userResult := self glhModel add: userResult unless: self blockOnIdEquality.
	"ADD TO CATALOGUE"
        userCatalogue addUser: userResult.
	^ userResult 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions