Skip to content

fix/issue-#2800: Fix bug with favorites getting deleted when a favori…#2801

Merged
bjagg merged 1 commit into
uPortal-Project:masterfrom
groybal:UPSE-401
Jun 11, 2024
Merged

fix/issue-#2800: Fix bug with favorites getting deleted when a favori…#2801
bjagg merged 1 commit into
uPortal-Project:masterfrom
groybal:UPSE-401

Conversation

@groybal

@groybal groybal commented May 29, 2024

Copy link
Copy Markdown
Contributor

…ted portlet gets deleted and a user subequently favorites another portlet or unfavorites a portlet

Checklist
Description of change

See Issue #2800

Updates have been made such that when a user favorites or unfavorites a portlet, the code will first remove any orphaned favorites (favorites for portlets that have been deleted). What was happening previously was that the UserLayoutManager.saveLayout() method was finding the orphaned favorites and pruning the node "linked-list" at that point, resulting in all favorites coming after in the list to be deleted along with the orphan.

@ChristianMurphy ChristianMurphy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @groybal!
When you have a moment could you look into the failing CI job?

…ted portlet gets deleted and a user subequently favorites another portlet or unfavorites a portlet
@groybal

groybal commented Jun 4, 2024

Copy link
Copy Markdown
Contributor Author

Thanks @groybal! When you have a moment could you look into the failing CI job?

Seems to be working now.

@bjagg bjagg merged commit b9291e2 into uPortal-Project:master Jun 11, 2024
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.

3 participants