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

Resource icon is grey after deletion of all manual attribution #1792

Merged
merged 1 commit into from
Jul 11, 2023

Conversation

vasily-pozdnyakov
Copy link
Contributor

@vasily-pozdnyakov vasily-pozdnyakov commented Jul 10, 2023

Summary of changes

resourcesWithManualAttributedChildren.pathToIndices is not updated once attribution is deleted. Paths is the correct list which is updated.

Context and reason for change

Fix #1685

How can the changes be tested

Start the app, find any resource without attributions (resource with grey icon), create a new attribution for the resource, delete it and check the color of resource icon (it has to be in the same state as it was at the beginning - grey)

Copy link
Member

@maxhbr maxhbr left a comment

Choose a reason for hiding this comment

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

LGTM

Fix opossum-tool#1685

Signed-off-by: Vasily Pozdnyakov <vasily.pozdnyakov@tngtech.com>
@vasily-pozdnyakov
Copy link
Contributor Author

Added tests and realized that it is not python ('in' does not work for arrays in js) :)

@benedikt-richter benedikt-richter merged commit b1bd133 into opossum-tool:main Jul 11, 2023
@vasily-pozdnyakov vasily-pozdnyakov deleted the fix_1685 branch November 22, 2023 14:09
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.

Resources icon remains green after deleting attributions
3 participants