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

[$1000] [HOLD for payment 2023-08-14] Dev: Offline Indicator duplicate #24092

Closed
5 tasks
kavimuru opened this issue Aug 3, 2023 · 29 comments
Closed
5 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Reviewing Has a PR in review

Comments

@kavimuru
Copy link

kavimuru commented Aug 3, 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!


Action Performed:

  1. Click FAB
  2. Request money
  3. Turn off network, Observe that offline Indicator appears 2 times

Expected Result:

offline Indicator only appears 1 times

Actual Result:

offline Indicator appears 2 times

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platforms:

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

  • Android / native
  • [x ] Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: dev
Reproducible in staging?: dev
Reproducible in production?: dev
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
Notes/Photos/Videos: Any additional supporting documentation

rpreplay_final1691025997.mp4

Expensify/Expensify Issue URL:
Issue reported by: @namhihi237
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1691026269347159?thread_ts=1691026269.347159&cid=C049HHMV9SM

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~011ea26026f1b18139
  • Upwork Job ID: 1691534812625043456
  • Last Price Increase: 2023-08-15
@kavimuru kavimuru added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Needs Reproduction Reproducible steps needed Bug Something is broken. Auto assigns a BugZero manager. labels Aug 3, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 3, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Aug 3, 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

@kavimuru
Copy link
Author

kavimuru commented Aug 3, 2023

Proposal from @namhihi237

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

Offline Indicator only appears 1 time in request money tab

What is the root cause of that problem?

In the request money manual screen, we have 2 nested ScreenWrapper. That why it's show 2 times

<ScreenWrapper includeSafeAreaPaddingBottom={false}>
{({safeAreaPaddingBottomStyle}) => (
<FullPageNotFoundView shouldShow={!IOUUtils.isValidMoneyRequestType(iouType)}>
<DragAndDropProvider isDisabled={props.selectedTab === CONST.TAB.MANUAL}>
<View style={[styles.flex1, safeAreaPaddingBottomStyle]}>

<MoneyRequestAmount route={props.route} />

<ScreenWrapper
includeSafeAreaPaddingBottom={false}
onEntryTransitionEnd={focusTextInput}
>
{({safeAreaPaddingBottomStyle}) => (
<View style={[styles.flex1, safeAreaPaddingBottomStyle]}>

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

We should add shouldShowOfflineIndicator = {false} and remove safeAreaPaddingBottomStyle for ScreenWrapper in MoneyRequestAmount

            <ScreenWrapper
                includeSafeAreaPaddingBottom={false}
                onEntryTransitionEnd={focusTextInput}
                shouldShowOfflineIndicator = {false}
            >
             <View style={[styles.flex1]}>

What alternative solutions did you explore? (Optional)

N/A

@OSBotify
Copy link
Contributor

OSBotify commented Aug 3, 2023

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@melvin-bot
Copy link

melvin-bot bot commented Aug 3, 2023

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

@Beamanator
Copy link
Contributor

Thanks for reporting and proposing a solution @namhihi237 ! Let's also try to find where this came from :D

@namhihi237
Copy link
Contributor

@Beamanator I think it comes from this PR, we are refreshing the request money page here.

@Beamanator
Copy link
Contributor

Yes true, it looks like @s77rt brought this up in the PR here: https://github.com/Expensify/App/pull/23046/files#r1278470491

@Beamanator Beamanator removed the Needs Reproduction Reproducible steps needed label Aug 3, 2023
@Beamanator
Copy link
Contributor

Hmm and this PR supposedly will clean up the nested ScreenWrappers: #23979

@Beamanator
Copy link
Contributor

Discussing in slack: https://expensify.slack.com/archives/C01GTK53T8Q/p1691052873878459

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Hourly KSv2 labels Aug 3, 2023
@Beamanator Beamanator added Hourly KSv2 and removed Weekly KSv2 labels Aug 3, 2023
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Hourly KSv2 labels Aug 3, 2023
@Beamanator
Copy link
Contributor

Bug fixed in main - keeping open for now for payments

@abdulrahuman5196
Copy link
Contributor

abdulrahuman5196 commented Aug 9, 2023

@greg-schroeder I think there has been some issue with melvin. This issue was deployed to production on Aug 7 #24097 (comment). This issue should turn to hold for payment till Aug 14. Can we kindly update manually?

@greg-schroeder greg-schroeder added the Awaiting Payment Auto-added when associated PR is deployed to production label Aug 9, 2023
@greg-schroeder greg-schroeder changed the title Dev: Offline Indicator duplicate [HOLD for payment 2023-08-14] Dev: Offline Indicator duplicate Aug 9, 2023
@greg-schroeder
Copy link
Contributor

updated

@abdulrahuman5196
Copy link
Contributor

The PR that introduced the bug has been identified. Link to the PR:
The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:

It was already brought up in the PR - https://github.com/Expensify/App/pull/23046/files#r1278470491

Determine if we should create a regression test for this bug.
If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.

I think there should be some general Offline regression test on the App level which should be fine for this as well IMO.

If there is none on app level use the below,

  1. Click FAB
  2. Press Money Request
  3. Go Offline
  4. Verify there is only one Offline Indicator at the bottom

cc: @greg-schroeder

@greg-schroeder
Copy link
Contributor

Processing this, sorry for the slight delay

@greg-schroeder
Copy link
Contributor

Issue Participants:

Issue reported by: @namhihi237
Contributor: @s77rt
C+: @abdulrahuman5196

Was this issue merged in time to be eligible for the speed bonus? ✅
Were their any regressions? ❌

Payment summary:

Reporter: $250
Contributor: $1500
C+: $1500

@greg-schroeder greg-schroeder added the External Added to denote the issue can be worked on by a contributor label Aug 15, 2023
@greg-schroeder
Copy link
Contributor

Adding External to create an Upwork job

@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-08-14] Dev: Offline Indicator duplicate [$1000] [HOLD for payment 2023-08-14] Dev: Offline Indicator duplicate Aug 15, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 15, 2023

Job added to Upwork: https://www.upwork.com/jobs/~011ea26026f1b18139

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

melvin-bot bot commented Aug 15, 2023

Current assignee @greg-schroeder is eligible for the External assigner, not assigning anyone new.

@melvin-bot melvin-bot bot removed the Weekly KSv2 label Aug 15, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 15, 2023

Current assignees @s77rt and @abdulrahuman5196 are eligible for the External assigner, not assigning anyone new.

@greg-schroeder
Copy link
Contributor

Offers sent, regression test filed. Closing!

@namhihi237
Copy link
Contributor

Thanks @greg-schroeder accepted.

@s77rt
Copy link
Contributor

s77rt commented Aug 16, 2023

No payment is due for me here. I'm assigned for #23046. Payment will be handled there as this is a regression.

@greg-schroeder
Copy link
Contributor

Ohh, right right okay thanks for clarifying

@namhihi237
Copy link
Contributor

@greg-schroeder bump on this. Any update payment for this?

@abdulrahuman5196
Copy link
Contributor

@greg-schroeder C+ review payment is due here.

@greg-schroeder
Copy link
Contributor

Hmm. My Upwork UI shows these as paid on the admin side.

@greg-schroeder
Copy link
Contributor

Weird. When I click into the contracts they don't show as Paid now. Sorry about that. I've paid them now.

@namhihi237
Copy link
Contributor

Thanks for checking @greg-schroeder .

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 Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

7 participants