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 2024-12-30] [$250] Room - In room created with dependent tags enabled workspace, state tags shown in expense preview #53454

Closed
4 of 8 tasks
vincdargento opened this issue Dec 3, 2024 · 23 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 retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause

Comments

@vincdargento
Copy link

vincdargento commented Dec 3, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 9.0.70-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): N/A
Issue reported by: Applause Internal Team

Action Performed:

  1. Launch app
  2. Go to workspace settings ( a workspace with dependent tags added in old dot)
  3. Tap tags and note dependent tags
  4. Navigate to LHN and create a room with above workspace
  5. Invite a member via mention
  6. Create a split expense
  7. Note expense preview displays state tag
  8. Go to workspace settings and enable tag feature
  9. Add a tag
  10. Navigate to LHN and create a room with above workspace
  11. Invite a member via mention
  12. Create a split expense
  13. Note expense preview doesn't displays tag

Expected Result:

In confirmation page, no tag option and so after creating expense, in preview

Actual Result:

In room created with dependent tags enabled workspace, state tags shown in expense preview. But tag not shown in preview for room created with ordinary tags enabled.

Workaround:

Unknown

Platforms:

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

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

bug.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021865094255127866607
  • Upwork Job ID: 1865094255127866607
  • Last Price Increase: 2024-12-06
  • Automatic offers:
    • abzokhattab | Contributor | 105256689
Issue OwnerCurrent Issue Owner: @CortneyOfstad
@vincdargento vincdargento added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Dec 3, 2024
Copy link

melvin-bot bot commented Dec 3, 2024

Triggered auto assignment to @CortneyOfstad (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@abzokhattab
Copy link
Contributor

abzokhattab commented Dec 3, 2024

Proposal

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

Inconsistency in the tag field between the split report preview and the split confirm and details

What is the root cause of that problem?

this inconsistency occurs because in the split confirm page we dont show the tag if the split is not an expense report chat however we dont check that in the split preview:

const shouldShowTags = useMemo(() => isPolicyExpenseChat && TagsOptionsListUtils.hasEnabledTags(policyTagLists), [isPolicyExpenseChat, policyTagLists]);

const shouldShowCategoryOrTag = !!tag || !!category;

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

we should add a check to validate that the current report is isPolicyExpenseChatso we should change this to

    const shouldShowTag = !!tag && isPolicyExpenseChat;
    const shouldShowCategoryOrTag = shouldShowTag || !!category;

and here we should use shouldShowTag instead of the tag

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

N/A

What alternative solutions did you explore? (Optional)

another solution is to prevent setting the tag in request transaction if the chat is not a isPolicyExpenseChat

if (updatedTagsString !== TransactionUtils.getTag(transaction) && updatedTagsString) {
IOU.setMoneyRequestTag(transactionID, updatedTagsString);
}

        if (updatedTagsString !== TransactionUtils.getTag(transaction) && updatedTagsString && isPolicyExpenseChat) {
            IOU.setMoneyRequestTag(transactionID, updatedTagsString);
        }

@melvin-bot melvin-bot bot added the Overdue label Dec 6, 2024
@CortneyOfstad CortneyOfstad added the External Added to denote the issue can be worked on by a contributor label Dec 6, 2024
Copy link

melvin-bot bot commented Dec 6, 2024

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

@melvin-bot melvin-bot bot changed the title Room - In room created with dependent tags enabled workspace, state tags shown in expense preview [$250] Room - In room created with dependent tags enabled workspace, state tags shown in expense preview Dec 6, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Dec 6, 2024
Copy link

melvin-bot bot commented Dec 6, 2024

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

@melvin-bot melvin-bot bot removed the Overdue label Dec 6, 2024
@CortneyOfstad
Copy link
Contributor

I was not able to reproduce this — going to have this retested!

@CortneyOfstad CortneyOfstad added the retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause label Dec 6, 2024
@jayeshmangwani
Copy link
Contributor

@abzokhattab 's Proposal looks good to me. We can add the isPolicyExpenseChat check for showing the tag on MoneyRequestPreviewContent. We're doing the same on the Split Details page, so it seems fine here too.

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Dec 9, 2024

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

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Dec 9, 2024
Copy link

melvin-bot bot commented Dec 9, 2024

📣 @abzokhattab 🎉 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 📖

@garrettmknight garrettmknight moved this to Bugs and Follow Up Issues in [#whatsnext] #expense Dec 10, 2024
@jayeshmangwani
Copy link
Contributor

@abzokhattab What's the ETA for the PR?

@abzokhattab
Copy link
Contributor

the pr is ready here #53973

@CortneyOfstad
Copy link
Contributor

Hey @jayeshmangwani and @abzokhattab — just a heads up that I will be OOO starting this afternoon (December 20th) and will be returning January 6th. A handful of folks on the BZ team will be online for a few days in between the 25th and the 1st, but we'll be operating with a skeleton crew. If there is any action needed from a BZ perspective, feel free to please post this issue in #expensify-open-source and someone on the team will jump in. Otherwise, I'll review when I'm back in office.

Thank you and Happy Holidays!

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Dec 23, 2024
@melvin-bot melvin-bot bot changed the title [$250] Room - In room created with dependent tags enabled workspace, state tags shown in expense preview [HOLD for payment 2024-12-30] [$250] Room - In room created with dependent tags enabled workspace, state tags shown in expense preview Dec 23, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Dec 23, 2024
Copy link

melvin-bot bot commented Dec 23, 2024

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

Copy link

melvin-bot bot commented Dec 23, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.77-6 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 2024-12-30. 🎊

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

Copy link

melvin-bot bot commented Dec 23, 2024

@jayeshmangwani @CortneyOfstad @jayeshmangwani The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@garrettmknight garrettmknight moved this from Bugs and Follow Up Issues to Hold for Payment in [#whatsnext] #expense Dec 23, 2024
@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Dec 30, 2024
@jayeshmangwani
Copy link
Contributor

BugZero Checklist:

  • [Contributor] Classify the bug:
Bug classification

Source of bug:

  • 1a. Result of the original design (eg. a case wasn't considered)
  • 1b. Mistake during implementation
  • 1c. Backend bug
  • 1z. Other:

Where bug was reported:

  • 2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
  • 2b. Reported on staging (eg. found during regression or PR testing)
  • 2d. Reported on a PR
  • 2z. Other:

Who reported the bug:

  • 3a. Expensify user
  • 3b. Expensify employee
  • 3c. Contributor
  • 3d. QA
  • 3z. Other:
  • [Contributor] 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/52758/files#r1900565905

  • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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

  • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

Regression Test Proposal

Prerequisites:

  • A workspace is created with dependent tags added in the OldDot.
  1. Go to workspace settings ( a workspace with dependent tags added in old dot)
  2. Tap Tags and note the dependent tags.
  3. Navigate to the LHN and create a room using the above workspace.
  4. Invite a member via mention.
  5. Create a split expense.
  6. Verify that the expense preview does not display the tag in the preview.

Do we agree 👍 or 👎

Copy link

melvin-bot bot commented Jan 2, 2025

@CortneyOfstad, @cristipaval, @jayeshmangwani, @abzokhattab Whoops! This issue is 2 days overdue. Let's get this updated quick!

@jayeshmangwani
Copy link
Contributor

Not Overdue; payment is due here, but @CortneyOfstad is OOO until January 6th, so we can wait until then.

Copy link

melvin-bot bot commented Jan 6, 2025

@CortneyOfstad, @cristipaval, @jayeshmangwani, @abzokhattab 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@jayeshmangwani
Copy link
Contributor

@CortneyOfstad Whenever you can, please add the payment summary here for this issue and close it too.

@CortneyOfstad
Copy link
Contributor

@jayeshmangwani — I sent you an offer in Upwork for the payment here — https://www.upwork.com/nx/wm/offer/105597059. Let me know once you accept and I'll get that paid ASAP. Thank you!

@melvin-bot melvin-bot bot removed the Overdue label Jan 7, 2025
@jayeshmangwani
Copy link
Contributor

jayeshmangwani commented Jan 7, 2025

@CortneyOfstad I paid via ND and @abzokhattab paid via Upwork

@CortneyOfstad
Copy link
Contributor

Sorry about that @jayeshmangwani — I don't see you on the list, so I will get that updated now internally, and I will cancel the offer and get the payment summary out ASAP.

@CortneyOfstad
Copy link
Contributor

Payment Summary

@jayeshmangwani — to be paid $250 via NewDot
@abzokhattab — to be paid $250 via NewDot

Regression Test

https://github.com/Expensify/Expensify/issues/458072

@github-project-automation github-project-automation bot moved this from Hold for Payment to Done in [#whatsnext] #expense Jan 7, 2025
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 retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause
Projects
Status: Done
Development

No branches or pull requests

5 participants