Skip to content

Enabeling Cross-plateform analyses without entities's Id collisions #234

Description

@alkalinan
collection := self importEntities. 

collection := anEntity itsCollections addAll: collection unless: self blockOnIdEquality
model addAll: collection unless: self blockOnIdEquality

The general idea is to first add the collection to an entity slot and then to the model. However when cross-analyses Github and Gitlab, two project entity with the same idea can be added to the same model. In this case, the model will add the first one but not the second since it's ID is already in it.

Thus to solve this issues, new collection must be added first to the receiveing entity with a specialy check on their id (using 'add:unless') and than be added to the model this time checking the mooseID.

collection := self importEntities. 

collection := anEntity itsCollections addAll: collection unless: self blockOnIdEquality
model addAll: collection unless: self blockOnMooseIDEquality 

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions