-
-
Notifications
You must be signed in to change notification settings - Fork 941
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
Conversation
@@ -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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
portal/portal-impl/impl/src/java/org/sakaiproject/portal/charon/handlers/FavoritesHandler.java
Outdated
Show resolved
Hide resolved
portal/portal-impl/impl/src/java/org/sakaiproject/portal/charon/handlers/FavoritesHandler.java
Show resolved
Hide resolved
portal/portal-impl/impl/src/java/org/sakaiproject/portal/charon/handlers/FavoritesHandler.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Horner, Sean A <hornersa@plu.edu> Co-authored-by: Earle Nietzel <earle@longsight.com> (cherry picked from commit 2fc14f1)
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.