-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: Enhance news load resources using load-group - EXO-63805 #910
Conversation
bb56b66
to
d1de7f2
Compare
9ad61fb
to
7487c06
Compare
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.
Can you check the sonar feedback marked as BUG ?
Prior to this change, all news extensions were loaded inside all-bottom-container including the non needed once in all pages. This PR add the use of load-group mechanism to enhance the resources load and load only what is needed in the current page.
Your PR triggers too many exo-ci builds! Please finish your work and then, set your PR ready! Thank you |
Kudos, SonarCloud Quality Gate passed! |
Done |
Identity userIdentity = identityManager.getOrCreateUserIdentity(currentIdentity.getUserId()); | ||
if (userIdentity != null) { | ||
news.setFavorite(favoriteService.isFavorite(new Favorite("news", | ||
news.getId(), | ||
"", | ||
Long.parseLong(userIdentity.getId())))); | ||
} |
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.
This should be removed ?
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.
why it should be removed? i have faced an existing old issue and i fixed it.
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.
the issue is that when access news details and that you have set the news as favorite, you will still have the option to set it again and the icon of favorite is empty icon which indicates that news is not marked as favorite while it's the case
@@ -152,6 +152,7 @@ | |||
activityId: '${activityId}', | |||
hiddenSpace: ${news.hiddenSpace}, | |||
isSpaceMember: ${news.isSpaceMember}, | |||
favorite: ${news.isFavorite} |
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.
Why do you need this variable ?
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.
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.
ok for me
Prior to this change, all news extensions were loaded inside all-bottom-container including the non needed once in all pages. This PR add the use of load-group mechanism to enhance the resources load and load only what is needed in the current page.
Prior to this change, all news extensions were loaded inside all-bottom-container including the non needed once in all pages. This PR add the use of load-group mechanism to enhance the resources load and load only what is needed in the current page.