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

[HOLD for payment 2021-11-04] Sync indicator get stuck when on a slow internet connection - Reported by: @parasharrajat #5947

Closed
isagoico opened this issue Oct 19, 2021 · 9 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@isagoico
Copy link

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Log in to New Expensify
  2. Open console tools > Network
  3. Set the page as Offline
  4. Set the page to Slow 3G

Expected Result:

Sync indicator should spin for a bit and then show the online status.

Actual Result:

Sync indicator gets stuck after a bit.

Workaround:

None needed. Visual issue.

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: 1.1.8-0

Reproducible in staging?: Yes
Reproducible in production?: Yes

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

Grabando.231.mp4

Expensify/Expensify Issue URL:

Issue reported by: @parasharrajat
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1634327555375700

View all open jobs on GitHub

@MelvinBot
Copy link

Triggered auto assignment to @thienlnam (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@parasharrajat
Copy link
Member

parasharrajat commented Oct 19, 2021

Proposal

  1. I remember the main issue that caused the spinner to stop when I implemented this feature. But Recently, we abstracted the spinner animation code to a wrapper which caused it again.

  2. On the Web, Animated.loop does not work with useNativeDriver: true. we only need native driver for Native.

So to fix this,
I would suggest creating a useNativeDriver lib which is false on the Web and the use it for animation.

 Animated.loop(
            Animated.timing(this.rotate, {
                toValue: 1,
                duration: 2000,
                easing: Easing.linear,
                isInteraction: false,
                useNativeDriver: useNativeDriver(),
            }),
        ).start();

@thienlnam thienlnam added the External Added to denote the issue can be worked on by a contributor label Oct 19, 2021
@thienlnam thienlnam removed their assignment Oct 19, 2021
@MelvinBot
Copy link

Triggered auto assignment to @adelekennedy (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@adelekennedy
Copy link

Created a job in Upwork:
Internal
External

@MelvinBot MelvinBot added Weekly KSv2 Help Wanted Apply this label when an issue is open to proposals by contributors and removed Daily KSv2 labels Oct 19, 2021
@MelvinBot
Copy link

Triggered auto assignment to @tgolen (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@tgolen
Copy link
Contributor

tgolen commented Oct 19, 2021

I don't have direct knowledge of what @parasharrajat is proposing, but I trust his proposal and it sounds good, so 🟢 !

@adelekennedy
Copy link

adelekennedy commented Oct 19, 2021

Just hired you @parasharrajat, once we deploy we'll pay you your bonus as well for reporting the issue!

@adelekennedy adelekennedy removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 19, 2021
@parasharrajat parasharrajat mentioned this issue Oct 19, 2021
5 tasks
@botify botify added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Oct 28, 2021
@botify
Copy link

botify commented Oct 28, 2021

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.10-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2021-11-04. 🎊

@MelvinBot MelvinBot removed the Overdue label Oct 28, 2021
@botify botify changed the title Sync indicator get stuck when on a slow internet connection - Reported by: @parasharrajat [HOLD for payment 2021-11-04] Sync indicator get stuck when on a slow internet connection - Reported by: @parasharrajat Oct 28, 2021
@adelekennedy
Copy link

Closed the job and paid out your fee and bonus @parasharrajat!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
None yet
Development

No branches or pull requests

7 participants