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] [HOLD for payment 2023-12-20] IOU - An employee cannot cancel a selected category when creating an IOU #32872

Closed
6 tasks done
lanitochka17 opened this issue Dec 11, 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 Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@lanitochka17
Copy link

lanitochka17 commented Dec 11, 2023

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: 1.4.11-1
Reproducible in staging?: Y
Reproducible in production?: N
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:

Preconditions:
In OldDot under admin, create a group policy, enable categories and add multiple categories, add an employee to the policy.

  1. Open New Expensify app
  2. Log in to the employee's account
  3. Tap on the green plus button (FAB)
  4. Select Request money
  5. Select any currency and amount
  6. Click next
  7. Choose a group policy room
  8. Click on "Show more"
  9. In the category section, select any category
  10. Navigate to the categories section again and click on the selected category marked with a green checkmark

Expected Result:

Employee must be able to override the selected category when creating an IOU

Actual Result:

An employee cannot cancel a selected category when creating an IOU

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

Add any screenshot/video evidence

Bug6309688_1702331245473.Recording__919.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01a8ca6c08fbc8290c
  • Upwork Job ID: 1743060606199652352
  • Last Price Increase: 2024-01-05
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Dec 11, 2023
Copy link
Contributor

👋 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.

Copy link

melvin-bot bot commented Dec 11, 2023

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

@mkhutornyi
Copy link
Contributor

Proposal

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

IOU - An employee cannot cancel a selected category when creating an IOU

What is the root cause of that problem?

There's no clearing logic when select already selected category

const updateCategory = (category) => {
IOU.setMoneyRequestCategory_temporaryForRefactor(transactionID, category.searchText);
navigateBack();
};

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

deselect by clearing transaction category when select category which is already selected

        IOU.setMoneyRequestCategory_temporaryForRefactor(transactionID, transaction.category === category.searchText ? '' : category.searchText);

@luacmartins
Copy link
Contributor

Proposal looks good. Gonna assign @mkhutornyi to the issue

@shubham1206agra
Copy link
Contributor

Please assign me here as C+

@Julesssss
Copy link
Contributor

Cherry-picked to staging

@luacmartins luacmartins removed the DeployBlockerCash This issue or pull request should block deployment label Dec 12, 2023
@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 13, 2023
@melvin-bot melvin-bot bot changed the title IOU - An employee cannot cancel a selected category when creating an IOU [HOLD for payment 2023-12-20] IOU - An employee cannot cancel a selected category when creating an IOU Dec 13, 2023
Copy link

melvin-bot bot commented Dec 13, 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 Dec 13, 2023
Copy link

melvin-bot bot commented Dec 13, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.11-25 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-12-20. 🎊

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:

@shubham1206agra
Copy link
Contributor

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:

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

melvin-bot bot commented Dec 26, 2023

@deetergp, @luacmartins, @shubham1206agra, @mkhutornyi Eep! 4 days overdue now. Issues have feelings too...

@deetergp
Copy link
Contributor

Did this get paid out?

@melvin-bot melvin-bot bot removed the Overdue label Dec 27, 2023
@shubham1206agra
Copy link
Contributor

Nope

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

melvin-bot bot commented Jan 1, 2024

@deetergp, @luacmartins, @shubham1206agra, @mkhutornyi Eep! 4 days overdue now. Issues have feelings too...

1 similar comment
Copy link

melvin-bot bot commented Jan 1, 2024

@deetergp, @luacmartins, @shubham1206agra, @mkhutornyi Eep! 4 days overdue now. Issues have feelings too...

@deetergp
Copy link
Contributor

deetergp commented Jan 3, 2024

@mallenexpensify I added you because I wasn't sure which label kicks off the BZ auto assigner 😅

@mallenexpensify mallenexpensify added the Bug Something is broken. Auto assigns a BugZero manager. label Jan 5, 2024
Copy link

melvin-bot bot commented Jan 5, 2024

Current assignee @mallenexpensify is eligible for the Bug assigner, not assigning anyone new.

Copy link

melvin-bot bot commented Jan 5, 2024

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

@mallenexpensify mallenexpensify added the External Added to denote the issue can be worked on by a contributor label Jan 5, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-12-20] IOU - An employee cannot cancel a selected category when creating an IOU [$500] [HOLD for payment 2023-12-20] IOU - An employee cannot cancel a selected category when creating an IOU Jan 5, 2024
Copy link

melvin-bot bot commented Jan 5, 2024

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 5, 2024
Copy link

melvin-bot bot commented Jan 5, 2024

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

@mallenexpensify
Copy link
Contributor

@shubham1206agra @mkhutornyi can you please accept the job and reply here once you have?
https://www.upwork.com/jobs/~01a8ca6c08fbc8290c

@shubham1206agra
Copy link
Contributor

Done

@melvin-bot melvin-bot bot added the Overdue label Jan 8, 2024
@luacmartins
Copy link
Contributor

Just pending payment

@melvin-bot melvin-bot bot removed the Overdue label Jan 8, 2024
@mallenexpensify
Copy link
Contributor

Contributor: @mkhutornyi paid $500 via Upwork
Contributor+: @shubham1206agra paid $500 via Upwork.

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.

@shubham1206agra is there any reason we wouldn't want to create a regression test for this?

@shubham1206agra
Copy link
Contributor

@mallenexpensify This is a deploy blocker and the applause already has this test in their flow already

@mallenexpensify
Copy link
Contributor

Thanks @shubham1206agra

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

No branches or pull requests

7 participants