Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Fang-
Copy link
Collaborator

@Fang- Fang- commented Apr 13, 2020

By doing more or less the same thing that chat does, where it doesn't load in big backlog on page-load, but instead only does so when you actually go to view the resource.

Also does some smaller refactoring things. Cleans up the pagination logic in link-view a little bit, and refactors "message display" as used for the link fe landing page and "loading" messages into its own component.

Fang- added 5 commits April 13, 2020 21:15
On initial load, instead of getting the first 25 links for every
collection, only get their totals and unread counts. This drastically
reduces the pageload time.

Updates the frontend to match:
- Handle initial results without link content.
- Dynamically load in collection's links, even for page 0.
Also just use +swag instead of chaining +scag and +slag manually.
Displays "Loading..." if the links haven't loaded yet. If there are no
links, tells the user they can save one.
@vvisigoth
Copy link
Contributor

vvisigoth commented Apr 13, 2020 via email

@Fang-
Copy link
Collaborator Author

Fang- commented Apr 13, 2020

(Numbers observed here differ per the amount of collections you have, but my test case with eight filled collections went from ~10 seconds to <1 second in +give-initial-submissions for the intitial-pageload subscription result.)

@matildepark
Copy link
Contributor

This looks good to me but haven't tested yet.

Copy link
Contributor

@tacryt-socryp tacryt-socryp left a comment

Choose a reason for hiding this comment

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

Looks beautiful. I'll test it and get back to you.

@ixv
Copy link
Contributor

ixv commented Apr 13, 2020

When I create a collection and invite someone, and accept that invite on the other ship, the collection doesn't then show up in that ships sidebar.

@matildepark
Copy link
Contributor

I can reproduce what @ixv is reporting — it's added to associations, but not listening.

@Fang-
Copy link
Collaborator Author

Fang- commented Apr 14, 2020

Hmm, get the feeling this might be an unintended side-effect from #2708. We should still auto-opt-in to unmanaged groups I guess? Will take a deeper look and push a fix.

We still want to auto-opt-in to new collections for _unmanaged groups_,
because we have no other way to join them.
@Fang-
Copy link
Collaborator Author

Fang- commented Apr 14, 2020

Kinda outside of PR scope, but went and pushed a fix here. Please take a look.

@matildepark
Copy link
Contributor

ping @loganallenc

Copy link
Contributor

@tacryt-socryp tacryt-socryp left a comment

Choose a reason for hiding this comment

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

Complex set of changes, but it seems to work fine. LGTM

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.

7 participants