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

Fix connect to server loading #146

Merged
merged 2 commits into from
Aug 18, 2021

Conversation

LePips
Copy link
Member

@LePips LePips commented Aug 17, 2021

This is fixed from removing getPublicUsers() in the init for the ConnectToServerViewModel. This was unnecessary because it would be called when there isn't a server to get public users from and would block the login button when a person is attempting to login, both blocks were ~20-30 seconds.

We should:

  • split ConnectToServerX into two views/viewmodels: ConnectToServerX and LoginToServerX
  • make the getPublicUsers() call asynchronous (it is, just don't block the login button) and populate user list once completed

@LePips LePips requested a review from acvigue as a code owner August 17, 2021 04:18
@sonarcloud
Copy link

sonarcloud bot commented Aug 17, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@PangMo5 PangMo5 linked an issue Aug 17, 2021 that may be closed by this pull request
@acvigue acvigue merged commit c7df201 into jellyfin:main Aug 18, 2021
@LePips LePips deleted the fix-connect-to-server-loading branch October 19, 2021 23:40
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.

Connect to server button unnecessarily loading
2 participants