Skip to content

fix: enhance project lookup by name and version in find_project method - #247

Open
meAndreea wants to merge 1 commit into
sw360:mainfrom
meAndreea:fix/find-project-by-name
Open

meAndreea wants to merge 1 commit into
sw360:mainfrom
meAndreea:fix/find-project-by-name

Conversation

@meAndreea

Copy link
Copy Markdown

There are multiple cases where the version is the same and name of the SW360 projects are similar.
image
In this case version beeing the same it will use the first encounter project in the respoinse and in this case it is not the one we intended for.

The additional condition will ensure the name also matches.

The additional test created without the suggested change was failing and the val from -> self.assertEqual("008", val) was 007.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant