Use of embed sizes in the ComCol tree#1049
Conversation
tdonohue
left a comment
There was a problem hiding this comment.
👍 @MarieVerdonck : Tried this out today, and it works great! Much better performance than I'm seeing on the demo site. That said, I would like to request one small tweak.
I think we should change the default settings in CommunityListService to only initially load 20 top level communities by default, instead of 50. When there's a total of 50 communities loaded at once, I'm still seeing some slowness, even with your PR applied. This setting seems to be controlled here: https://github.com/DSpace/dspace-angular/blob/main/src/app/community-list-page/community-list-service.ts#L104
Overall though, this looks good. I'd just request that one minor change before we merge this.
…ree retrieved per page to 20
…ree retrieved per page to 20
e0b0811 to
e033cdf
Compare
|
Thanks @MarieVerdonck ! This looks good now, merging! |
Co-authored-by: Matus Kasak <matus.kasak@dataquest.sk>
References
Description
The communities and collections expandable tree at {baseUrl}/community-list has been refactored so the requests required to find out if a node in the tree has children (i.e. if a community has sub-communities or collections) are now embedded in the initial request with the new embed and nested embed size functionalities. (see DSpace/DSpace#3114)
This should reduce the number of requests needed for rendering the ComCol tree nodes and their shevrons to the ones mentioned in the review instructions (fixes issue #918)
Might be an issue with the embed sizes resulting in non-identical result alternative links (see DSpace/DSpace#3174), but doesn't seem to be an issue in this use of the functionality.
Instructions for Reviewers
=> Should send only one request to
/communities/search/topwith embedded collections/subcommunities with embed.size 1.=> No additional requests (with size=1 like before) should be needed
=> No additional requests (with size=1 like before) should be needed
Checklist
yarn run lintpackage.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.