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

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

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

groybal
Copy link
Contributor

@groybal groybal commented May 29, 2024

…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.

Copy link
Member

@ChristianMurphy ChristianMurphy left a comment

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
Copy link
Contributor Author

groybal commented Jun 4, 2024

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
8 checks passed
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