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

Preferred flag is dropped for pre-selected attributions #2018

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

FlorianSchepers
Copy link
Member

Summary of changes

When creating a manual attribution from a pre-selected external attribution the preferred flag and the list of preferredOverOriginIds are deleted.

Context and reason for change

We do not want that new preferred attributions are created automatically via pre-selection.

How can the changes be tested

Run tests in 'importFromFile.test.ts'.

Issue: #2007
Fix: #2007

… attributions.

When creating pre-selected attributions from external attributions in
the electron backend, the preffered flag should be dropped, i.e., there
are no pre-selected attributions which are preferred.

Issue: opossum-tool#2007
Fix: opossum-tool#2007

Signed-off-by: Florian Schepers <florianschepers@gmx.de>
@benedikt-richter benedikt-richter self-assigned this Sep 20, 2023
Copy link
Member

@benedikt-richter benedikt-richter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@@ -190,7 +190,7 @@ describe('parseOpossumFile', () => {
const opossumFilePath = path.join(
upath.toUnix(temporaryPath),
'test.opossum',
); //test
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@FlorianSchepers FlorianSchepers merged commit 45f045e into opossum-tool:main Sep 20, 2023
@FlorianSchepers FlorianSchepers deleted the fix2007 branch October 5, 2023 11:45
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.

[1987] Handle pre-selected preferred attributions
2 participants