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

Download current language terms first and then the rest in async way #2361

Conversation

xurxodev
Copy link
Contributor

@xurxodev xurxodev commented Jan 11, 2019

📌 References

🎩 What is the goal?

Optimize the time of splash activity is showing until navigate to the login activity

⚙️ branches

app:
Origin: feature-optimize_the_download_of_languages_time_in_splash_activity Target: v1.4_connect

📝 How is it being implemented?

I added a language parameter to DownloadLanguageTranslationUseCase and first download terms of the current language and then download rest languages terms in an async way.

Note: According to tests on my emulator, the navigation from splash activity to login activity is reduced over 10-15 seg approximately. For poor connections, the improvement can be bigger.
The architecture corresponds to this process has bad practices, I have created a new issue to refactor in the future. #2360

💥 How can it be tested?

Use case 1: Remove current app, open Logcat and execute. Read traces and confirm that during splash activity visualization only downloads current language and when to navigate to login activity in an async way the rest of languages terms is downloading.

💾 Requires DB migration?

  • Nope, we can just merge this branch.
  • Yes, but we need to apply it before merging this branch.
  • Yes, it's already applied.

🎨 UI changes?

  • Nope, the UI remains as beautiful as it was before!
  • Yeap, here you have some screenshots

Copy link
Member

@ifoche ifoche left a comment

Choose a reason for hiding this comment

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

@xurxodev I'm having problems with my phone in French. French is a special case because it's present but there is no translated term. I can see a long exception, but the app seems to work and it definitively seems to save time at the beginning, so creating a separate issue to better investigate that problem, but let's consider it as one of the issues we will review after the testing. Thanks for this!

@ifoche ifoche merged commit c2c4257 into v1.4_connect Jan 30, 2019
@ifoche ifoche removed the testing label Jan 30, 2019
@ifoche ifoche deleted the feature-optimize_the_download_of_languages_time_in_splash_activity branch January 30, 2019 12:07
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.

2 participants