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 2023-09-06] [$500] Web - IOU - Opening The cash amount page for the first time display the main chat header briefly #26028

Closed
1 of 6 tasks
kbecciv opened this issue Aug 27, 2023 · 42 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@kbecciv
Copy link

kbecciv commented Aug 27, 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. Open any chat and request money
  2. Open the IOU report room
  3. Now open the cash amount page for the request in the first step

Expected Result:

The main chat header shouldn't appear in the cash amount page

Actual Result:

Opening The cash amount page for the first time display the main chat header briefly

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: Dev 1.3.57-5
Reproducible in staging?: no
Reproducible in production?: no
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

Screencast.from.27-08-23.02_32_13.webm

Expensify/Expensify Issue URL:
Issue reported by: @ayazhussain79
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1692982304284909

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01a33c6eac44f5e9b0
  • Upwork Job ID: 1696203362140925952
  • Last Price Increase: 2023-08-28
  • Automatic offers:
    • alitoshmatov | Contributor | 26373113
    • Ahmed-Abdella | Reporter | 26373116
@kbecciv kbecciv added Daily KSv2 Needs Reproduction Reproducible steps needed Bug Something is broken. Auto assigns a BugZero manager. labels Aug 27, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 27, 2023

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

@melvin-bot
Copy link

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

@Ahmed-Abdella
Copy link
Contributor

@jliexpensify I can reproduce this only on dev, may be a deploy blocker

@alitoshmatov
Copy link
Contributor

alitoshmatov commented Aug 27, 2023

Proposal

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

Web - IOU - Opening The cash amount page for the first time display the main chat header briefly

What is the root cause of that problem?

When optimistic thread report is created for transaction action, it is lacking parentReportID which is used to determine if report is money request action. This is because ReportUtils.buildTransactionThread function is receiving action object which does not have reportID(this is because by report action item does not have reportID field in Onyx, but rather is nested inside reportActions_${reportID}).

const thread = ReportUtils.buildTransactionThread(action);

But this function is trying to access reportID to set parentReportID of newly build report.

reportAction.reportID,

Thus resulting in optimistic report which does not have parentReportID and this report is treated as normal report and showing chat header.

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

We can modify buildTransactionThread to accept reportID as second argument, and pass it when we use the function.
const thread = ReportUtils.buildTransactionThread(action, chatReportID);
Also apply this changes here too:

const thread = ReportUtils.buildTransactionThread(reportAction);

What alternative solutions did you explore? (Optional)

Also we can modify here to inject reportID field and value to each report action item making it available for further uses

selector: ReportActionsUtils.getSortedReportActionsForDisplay,

@alitoshmatov
Copy link
Contributor

I think this is regression of #25429 since the issue caused by introduction of ReportUtils.buildTransactionThread function

@jliexpensify
Copy link
Contributor

Thanks @alitoshmatov and @Ahmed-Abdella - I've assigned @rushatgabhane and @grgia to look into this one!

@jliexpensify jliexpensify changed the title Dev: Web - IOU - Opening The cash amount page for the first time display the main chat header briefly [REGRESSION?] Dev: Web - IOU - Opening The cash amount page for the first time display the main chat header briefly Aug 27, 2023
@grgia
Copy link
Contributor

grgia commented Aug 28, 2023

since the issue caused by introduction of ReportUtils.buildTransactionThread function

@mountiny since you worked on this function, would you want to look into this regression?

@mountiny
Copy link
Contributor

@alitoshmatov Thanks! I think your solution makes sense, are you able to work on it now?

@alitoshmatov
Copy link
Contributor

@mountiny Yes, of course.

@mountiny
Copy link
Contributor

mountiny commented Aug 28, 2023

@alitoshmatov can you please raise a PR.

can you please use this format

const thread = ReportUtils.buildTransactionThread(action, moneyRequestReportID);

@mountiny mountiny assigned mountiny and unassigned grgia Aug 28, 2023
@mountiny mountiny changed the title [REGRESSION?] Dev: Web - IOU - Opening The cash amount page for the first time display the main chat header briefly Web - IOU - Opening The cash amount page for the first time display the main chat header briefly Aug 28, 2023
@mountiny mountiny added External Added to denote the issue can be worked on by a contributor and removed Needs Reproduction Reproducible steps needed labels Aug 28, 2023
@melvin-bot melvin-bot bot changed the title Web - IOU - Opening The cash amount page for the first time display the main chat header briefly [$1000] Web - IOU - Opening The cash amount page for the first time display the main chat header briefly Aug 28, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 28, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01a33c6eac44f5e9b0

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

melvin-bot bot commented Aug 28, 2023

Current assignee @jliexpensify is eligible for the External assigner, not assigning anyone new.

@mountiny mountiny changed the title [$1000] Web - IOU - Opening The cash amount page for the first time display the main chat header briefly [$500] Web - IOU - Opening The cash amount page for the first time display the main chat header briefly Aug 28, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 28, 2023

Current assignee @rushatgabhane is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Aug 28, 2023

Upwork job price has been updated to $500

@mountiny
Copy link
Contributor

Making this $500 given its straightforward

@melvin-bot melvin-bot bot changed the title [$500] Web - IOU - Opening The cash amount page for the first time display the main chat header briefly [HOLD for payment 2023-09-06] [$500] Web - IOU - Opening The cash amount page for the first time display the main chat header briefly Aug 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 30, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Aug 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 30, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.58-5 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 2023-09-06. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

For reference, here are some details about the assignees on this issue:

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Aug 30, 2023

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@rushatgabhane] The PR that introduced the bug has been identified. Link to the PR:
  • [@rushatgabhane] 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:
  • [@rushatgabhane] 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:
  • [@rushatgabhane] Determine if we should create a regression test for this bug.
  • [@rushatgabhane] 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.
  • [@jliexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@jliexpensify
Copy link
Contributor

jliexpensify commented Aug 30, 2023

Hmm yes, technically @ayazhussain79 you submitted a bug report 1 day before @Ahmed-Abdella . I would assume that we would pay you as the reporter instead, but let me check.

Asking internally - https://expensify.slack.com/archives/C01SKUP7QR0/p1693363011597719

@jliexpensify
Copy link
Contributor

jliexpensify commented Aug 30, 2023

Ok, here's a payment summary:

Upwork job

@Ahmed-Abdella - unfortunately, since @ayazhussain79 reported this bug first, we'll need to pay him. Sorry!

@Ahmed-Abdella
Copy link
Contributor

@jliexpensify No worries 👍

@ayazhussain79
Copy link
Contributor

@jliexpensify Thank you

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Aug 31, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-09-06] [$500] Web - IOU - Opening The cash amount page for the first time display the main chat header briefly [HOLD for payment 2023-09-07] [HOLD for payment 2023-09-06] [$500] Web - IOU - Opening The cash amount page for the first time display the main chat header briefly Aug 31, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 31, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.59-5 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 2023-09-07. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

For reference, here are some details about the assignees on this issue:

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Aug 31, 2023

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@rushatgabhane] The PR that introduced the bug has been identified. Link to the PR:
  • [@rushatgabhane] 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:
  • [@rushatgabhane] 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:
  • [@rushatgabhane] Determine if we should create a regression test for this bug.
  • [@rushatgabhane] 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.
  • [@jliexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@luacmartins luacmartins changed the title [HOLD for payment 2023-09-07] [HOLD for payment 2023-09-06] [$500] Web - IOU - Opening The cash amount page for the first time display the main chat header briefly [HOLD for payment 2023-09-06] [$500] Web - IOU - Opening The cash amount page for the first time display the main chat header briefly Aug 31, 2023
@luacmartins
Copy link
Contributor

@jliexpensify coming from this comment, I updated the OP to reflect the first Slack report of this bug. This means that the bug report bonus should go to @ayazhussain79 (sorry @Ahmed-Abdella!). Do we also need to update the Upwork offer?

@Ahmed-Abdella
Copy link
Contributor

Ahmed-Abdella commented Aug 31, 2023

@jliexpensify canceled my offer and @ayazhussain79 got it. Everything is done
@luacmartins

@jliexpensify
Copy link
Contributor

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Sep 5, 2023
@rushatgabhane
Copy link
Member

rushatgabhane commented Sep 5, 2023

  1. The PR that introduced the bug has been identified. Link to the PR: Add edit request button to the report action context menu #25429

  2. 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: https://github.com/Expensify/App/pull/25429/files#r1316327376

  3. 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: N.A. Part of checklist

  4. Determine if we should create a regression test for this bug. No

  5. 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 - N.A.

@jliexpensify
Copy link
Contributor

Sweet, payment summary here for J.Mills

@jliexpensify
Copy link
Contributor

Paid Alisher, @ayazhussain79 please accept the invite and I can sort you out. Cheers!

@jliexpensify jliexpensify changed the title [HOLD for payment 2023-09-06] [$500] Web - IOU - Opening The cash amount page for the first time display the main chat header briefly [PAY SYED] [HOLD for payment 2023-09-06] [$500] Web - IOU - Opening The cash amount page for the first time display the main chat header briefly Sep 7, 2023
@ayazhussain79
Copy link
Contributor

@jliexpensify Offer accepted. Thank you!

@jliexpensify
Copy link
Contributor

Everyone paid, job closed!

@JmillsExpensify
Copy link

$750 payment approved for @rushatgabhane based on BZ summary.

@jliexpensify jliexpensify changed the title [PAY SYED] [HOLD for payment 2023-09-06] [$500] Web - IOU - Opening The cash amount page for the first time display the main chat header briefly [HOLD for payment 2023-09-06] [$500] Web - IOU - Opening The cash amount page for the first time display the main chat header briefly Oct 8, 2023
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 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

10 participants