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

SAK-49725 Portal Organize Pinned should retain the order #12357

Merged
merged 4 commits into from
Feb 13, 2024

Conversation

hornersa
Copy link
Contributor

@hornersa hornersa commented Feb 8, 2024

Jira: https://sakaiproject.atlassian.net/browse/SAK-49725

For the user's desired order of pinned sites to be retained, FavoriteSites.favoriteSiteIds needs to be a List instead of a Set.

@@ -118,18 +118,18 @@ private void saveUserFavorites(String userId, FavoriteSites favorites, boolean r

public static class FavoriteSites {

private Set<String> favoriteSiteIds;
private List<String> favoriteSiteIds;
Copy link
Contributor

@ern ern Feb 8, 2024

Choose a reason for hiding this comment

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

@hornersa I used a Set to avoid dealing with duplicates so I would use a LinkedHashSet vs a List to retain the order or if possible even better would be to do the ordering on the client.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll force push this revision soon.

@ern ern changed the title SAK-49725 Portal: Fix Organize Pinned regression SAK-49725 Portal Organize Pinned should retain the order Feb 8, 2024
@ern ern changed the title SAK-49725 Portal Organize Pinned should retain the order SAK-49725 Portal organize pinned should retain the order Feb 13, 2024
@ern ern changed the title SAK-49725 Portal organize pinned should retain the order SAK-49725 Portal Organize Pinned should retain the order Feb 13, 2024
@ern ern merged commit 2fc14f1 into sakaiproject:master Feb 13, 2024
4 checks passed
ern pushed a commit that referenced this pull request Mar 8, 2024
Co-authored-by: Horner, Sean A <hornersa@plu.edu>
Co-authored-by: Earle Nietzel <earle@longsight.com>
(cherry picked from commit 2fc14f1)
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.

2 participants