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

[$500] Workspace - If user log in and immediately go offline, distance rate always appears as 0 #33045

Closed
3 of 6 tasks
izarutskaya opened this issue Dec 14, 2023 · 30 comments
Closed
3 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering

Comments

@izarutskaya
Copy link

izarutskaya commented Dec 14, 2023

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


Found when executing PR: #32773

Version Number: 1.4.12-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team
Slack conversation: @

Action Performed:

  1. Log out and kill the app.
  2. Open New Expensify app again and log in.
  3. Immediately after login, disable the internet connection.
  4. Go to Settings > Workspaces > Select any workspace > Reimbursement > Distance rate.

Expected Result:

Distance rate should appear as if it were loading or waiting for internet connection.

Actual Result:

Distance rate appears as 0.

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6312331_1702509207886.Hbyk7885_1_.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0181b95ca0d40733e5
  • Upwork Job ID: 1735233897587527680
  • Last Price Increase: 2023-12-14
@izarutskaya izarutskaya added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Dec 14, 2023
Copy link

melvin-bot bot commented Dec 14, 2023

Triggered auto assignment to @puneetlath (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot melvin-bot bot changed the title Workspace - If user log in and immediately go offline, distance rate always appears as 0 [$500] Workspace - If user log in and immediately go offline, distance rate always appears as 0 Dec 14, 2023
Copy link

melvin-bot bot commented Dec 14, 2023

Job added to Upwork: https://www.upwork.com/jobs/~0181b95ca0d40733e5

Copy link

melvin-bot bot commented Dec 14, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Dec 14, 2023
Copy link

melvin-bot bot commented Dec 14, 2023

Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov (External)

@tienifr
Copy link
Contributor

tienifr commented Dec 14, 2023

Proposal

Please re-state the problem that we are trying to solve in this issue.

Distance rate appears as 0.

What is the root cause of that problem?

We show the rate unit even when it's currentUnit is undefined (that means it's loading)

What changes do you think we should make in order to solve the problem?

We can show the loading indicator if distanceCustomUnit or distanceCustomRate is undefined

{!distanceCustomUnit || !distanceCustomRate? (<View style={[styles.flex1, styles.alignItemsCenter, styles.justifyContentCenter]}>
                <ActivityIndicator
                    color={theme.spinner}
                    size="large"
                />
            </View>) :(<OfflineWithFeedback
                    pendingAction={lodashGet(distanceCustomUnit, 'pendingAction') || lodashGet(distanceCustomRate, 'pendingAction')}
...
}

We can add the style (margin/padding) to make it more align

What alternative solutions did you explore? (Optional)

NA

We can consider to show the text like We need to wait for internet connection to use this feature instead of loading indicator

Result

Screen.Recording.2023-12-14.at.17.33.29.mov

@puneetlath
Copy link
Contributor

Assigned to Wave 8. cc @zanyrenney as we'll need to figure out what the ideal behavior is here.

Copy link

melvin-bot bot commented Dec 19, 2023

@alitoshmatov Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot melvin-bot bot added the Overdue label Dec 19, 2023
@alitoshmatov
Copy link
Contributor

Assigned to Wave 8. cc @zanyrenney as we'll need to figure out what the ideal behavior is here.

@puneetlath Should I proceed with reviewing proposal or are we waiting for confirmation?

@melvin-bot melvin-bot bot removed the Overdue label Dec 19, 2023
@puneetlath
Copy link
Contributor

We'll need to wait until someone from the wave8 team confirms what the ideal behavior should be.

@puneetlath puneetlath removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Dec 19, 2023
@puneetlath
Copy link
Contributor

I've removed the help wanted label for now. We can re-add it once the behavior has been clarified.

Copy link

melvin-bot bot commented Dec 25, 2023

@alitoshmatov Eep! 4 days overdue now. Issues have feelings too...

@melvin-bot melvin-bot bot added the Overdue label Dec 25, 2023
Copy link

melvin-bot bot commented Dec 27, 2023

@alitoshmatov Still overdue 6 days?! Let's take care of this!

Copy link

melvin-bot bot commented Dec 28, 2023

@alitoshmatov this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

Copy link

melvin-bot bot commented Dec 29, 2023

@alitoshmatov 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!

Copy link

melvin-bot bot commented Jan 1, 2024

@alitoshmatov 12 days overdue now... This issue's end is nigh!

@alitoshmatov
Copy link
Contributor

Waiting for confirmation on expected behavior here.

@melvin-bot melvin-bot bot removed the Overdue label Jan 2, 2024
@melvin-bot melvin-bot bot added the Internal Requires API changes or must be handled by Expensify staff label Jan 11, 2024
Copy link

melvin-bot bot commented Jan 11, 2024

Current assignee @alitoshmatov is eligible for the Internal assigner, not assigning anyone new.

Copy link

melvin-bot bot commented Jan 11, 2024

@alitoshmatov 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!

Copy link

melvin-bot bot commented Jan 15, 2024

@alitoshmatov 12 days overdue now... This issue's end is nigh!

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Jan 18, 2024
Copy link

melvin-bot bot commented Jan 18, 2024

This issue has not been updated in over 14 days. @alitoshmatov eroding to Weekly issue.

@melvin-bot melvin-bot bot removed the Overdue label Jan 18, 2024
@iwiznia iwiznia removed the Bug Something is broken. Auto assigns a BugZero manager. label Jan 26, 2024
@melvin-bot melvin-bot bot added the Overdue label Jan 26, 2024
@iwiznia iwiznia added Bug Something is broken. Auto assigns a BugZero manager. and removed Overdue labels Jan 26, 2024
Copy link

melvin-bot bot commented Jan 26, 2024

Triggered auto assignment to @joekaufmanexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@iwiznia
Copy link
Contributor

iwiznia commented Jan 26, 2024

@joekaufmanexpensify @puneetlath why is this internal? Seems like we paused reviewing proposals here but never unpaused them. Did you figure out what the correct behavior is? And why would it not be to show the loading indicator?

(removing internal for now, since this can be worked on externally)

@iwiznia iwiznia removed the Internal Requires API changes or must be handled by Expensify staff label Jan 26, 2024
@joekaufmanexpensify
Copy link
Contributor

I was just assigned today, but will take a look at the historical proposals on Monday!

@melvin-bot melvin-bot bot added the Overdue label Jan 29, 2024
@joekaufmanexpensify
Copy link
Contributor

Going to take a closer look at this one today.

@melvin-bot melvin-bot bot removed the Overdue label Jan 29, 2024
@joekaufmanexpensify
Copy link
Contributor

Posted discussion on expected behavior

@joekaufmanexpensify
Copy link
Contributor

We discussed in the above thread and decided to close this bug report. We are working on refactoring this part of the product, and this issue will be addressed then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering
Projects
No open projects
Development

No branches or pull requests

6 participants