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-10-30] [$500] IOU-In Workspace, split bill detail page, category option is not shown #29178

Closed
4 of 6 tasks
lanitochka17 opened this issue Oct 10, 2023 · 25 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 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Oct 10, 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!


Version Number: 1.3.80-0

Reproducible in staging?: Yes

Reproducible in production?: Yes

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:

Issue found when executing PR #28628

Action Performed:

  1. Launch app - expensifail sccount
  2. Tap fab
  3. Tap request money- manual
  4. Enter an amount
  5. Tap next
  6. Select any Workspace and tap " split"
  7. Tap add to split
  8. Tap show more and select a category
  9. Tap split amount
  10. Tap split amount transaction to open split detail page
  11. Tap " show more"

Expected Result:

In Workspace, split bill detail page, category option must be shown

Actual Result:

In Workspace, split bill detail page, category option is not shown

Workaround:

Unknown

Platforms:

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

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

Screenshots/Videos

Android: Native
Bug6231692_1696932016173.an28628.1.mp4
Android: mWeb Chrome
Bug6231692_1696932016183.sbmweb28628.mp4
Windows: Chrome
1696908367955.28628_web.mp4
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
1696908367954.28628_desktop.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01de758e8c4c31ca17
  • Upwork Job ID: 1711881725957390336
  • Last Price Increase: 2023-10-10
  • Automatic offers:
    • Nodebrute | Contributor | 27258819
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 10, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 10, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 10, 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

@Nodebrute
Copy link
Contributor

Nodebrute commented Oct 10, 2023

Proposal

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

On the split bill detail page, the category option is not displayed.

What is the root cause of that problem?

Here we are displaying "category" using this check

const shouldShowCategories =
props.isPolicyExpenseChat && Permissions.canUseCategories(props.betas) && (props.iouCategory || OptionsListUtils.hasEnabledOptions(_.values(props.policyCategories)));

We haven't passed the isPolicyExpenseChat prop to MoneyRequestConfirmationList on the SplitBillDetailsPage. Consequently, the props.isPolicyExpenseChat will default to 'false' when we're on the SplitBillDetailsPage, causing the above-mentioned check to evaluate to 'false' as well. As a result, we won't be able to see the Category options here.

<MoneyRequestConfirmationList

This is not the case when we display the MoneyRequestConfirmationList on the MoneyRequestConfirmationList page because we are passing the isPolicyExpenseChat prop there. Consequently, we can see the category option on the MoneyRequestConfirmationList page.

<MoneyRequestConfirmationList

We are also utilizing the props.isPolicyExpenseChat for tag checking purposes. The suggested solution will address this issue as well.

const shouldShowTags = props.isPolicyExpenseChat && canUseTags && OptionsListUtils.hasEnabledOptions(_.values(policyTagList));

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

We should pass isPolicyExpenseChat prop here

<MoneyRequestConfirmationList

What alternative solutions did you explore? (Optional)

@bfitzexpensify bfitzexpensify added the External Added to denote the issue can be worked on by a contributor label Oct 10, 2023
@melvin-bot melvin-bot bot changed the title IOU-In Workspace, split bill detail page, category option is not shown [$500] IOU-In Workspace, split bill detail page, category option is not shown Oct 10, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 10, 2023

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

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

melvin-bot bot commented Oct 10, 2023

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

@bfitzexpensify
Copy link
Contributor

Proposal in #29178 (comment) ready for review @mollfpr

@melvin-bot melvin-bot bot added the Overdue label Oct 16, 2023
@mollfpr
Copy link
Contributor

mollfpr commented Oct 16, 2023

The proposal from @Nodebrute looks good!

🎀 👀 🎀 C+ reviewed!

@bfitzexpensify Could you help with adding the Engineering label? Thank you!

@melvin-bot
Copy link

melvin-bot bot commented Oct 17, 2023

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

@melvin-bot melvin-bot bot added the Overdue label Oct 18, 2023
@arosiclair
Copy link
Contributor

@bfitzexpensify Could you help with adding the Engineering label? Thank you!

Is the auto-assigner not working after approving a proposal anymore?

@melvin-bot melvin-bot bot removed the Overdue label Oct 18, 2023
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 18, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 18, 2023

📣 @Nodebrute 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@mollfpr
Copy link
Contributor

mollfpr commented Oct 18, 2023

@arosiclair I think it's because I'm not on the team so Melvin won't be triggered.

@Nodebrute Nodebrute mentioned this issue Oct 18, 2023
59 tasks
@melvin-bot melvin-bot bot added Reviewing Has a PR in review and removed Daily KSv2 labels Oct 18, 2023
@melvin-bot melvin-bot bot added the Weekly KSv2 label Oct 18, 2023
@Nodebrute
Copy link
Contributor

Hey @mollfpr, the PR is ready for review

@melvin-bot
Copy link

melvin-bot bot commented Oct 20, 2023

🎯 ⚡️ Woah @Nodebrute, great job pushing this forwards! ⚡️

The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉

  • when @Nodebrute got assigned: 2023-10-18 12:58:29 Z
  • when the PR got merged: 2023-10-20 13:39:20 UTC

On to the next one 🚀

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Oct 23, 2023
@melvin-bot melvin-bot bot changed the title [$500] IOU-In Workspace, split bill detail page, category option is not shown [HOLD for payment 2023-10-30] [$500] IOU-In Workspace, split bill detail page, category option is not shown Oct 23, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Oct 23, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 23, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 23, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.88-11 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-10-30. 🎊

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 Oct 23, 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:

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

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Oct 29, 2023
@bfitzexpensify
Copy link
Contributor

Offer sent for C+ work @mollfpr - also, a reminder to complete the BZ checklist when you get a moment, thank you!

@melvin-bot melvin-bot bot removed the Overdue label Oct 31, 2023
@mollfpr
Copy link
Contributor

mollfpr commented Nov 1, 2023

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:

I don't think any PR is causing this issue. I believe we forgot to update the list when decided to add the category to the split bill.

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:

The regression step should be enough.

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.

Note: the backend is not ready yet to add and get a category for a split bill. So, we need to mock a situation when we have a category inside a split bill.

Hack: we need to modify getCategory of TransactionUtils.ts. The function should return a hardcode string - name of a category like: return "Home".

For reference #28628 (comment)

  1. Launch app ->Tap fab
  2. Tap request money -> manual
  3. Enter an amount -> Tap next
  4. Select any Workspace and tap " split"
  5. Tap add to split
  6. Tap show more and select a category
  7. Tap split amount
  8. Tap the split amount transaction to open the split detail page
  9. Tap "Show more"
  10. Verify that you can see the category option

@mollfpr
Copy link
Contributor

mollfpr commented Nov 1, 2023

@bfitzexpensify I'll do manual request, could you give the payment summary? Thanks!

@JmillsExpensify
Copy link

Awaiting payment summary

@melvin-bot melvin-bot bot added the Overdue label Nov 3, 2023
@bfitzexpensify
Copy link
Contributor

bfitzexpensify commented Nov 3, 2023

Payment summary:

Contributor: @Nodebrute due $750 to be paid via Upwork ✅
C+: @mollfpr due $750 to be paid via manual request

@melvin-bot melvin-bot bot removed the Overdue label Nov 3, 2023
@mollfpr
Copy link
Contributor

mollfpr commented Nov 3, 2023

@bfitzexpensify I think you tag the wrong C+ 😅

Friendly bump @JmillsExpensify for the approval.

@JmillsExpensify
Copy link

$750 payment approved for @mollfpr based on summary above.

@melvin-bot melvin-bot bot added the Overdue label Nov 6, 2023
Copy link

melvin-bot bot commented Nov 7, 2023

@arosiclair, @mollfpr, @bfitzexpensify, @Nodebrute Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@bfitzexpensify
Copy link
Contributor

Regression test proposed in https://github.com/Expensify/Expensify/issues/334065

We're all done here, thanks everyone.

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
Projects
None yet
Development

No branches or pull requests

6 participants