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-03-18] [$500] Still can access to Tag page when request money to DM 1:1 chat #37207

Closed
6 tasks done
m-natarajan opened this issue Feb 26, 2024 · 21 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

@m-natarajan
Copy link

m-natarajan commented Feb 26, 2024

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.4.43-15
Reproducible in staging?: y
Reproducible in production?: y
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: @DylanDylann
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1708850630563619

Action Performed:

  1. Request money
  2. Enter amount
  3. Select DM 1:1 chat
  4. Click on description page
  5. In the URL, change description to category or tag/1
    (on native app or desktop app, using deeplink)

Expected Result:

Should display Not Found Page

Actual Result:

Empty category/tag page display

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

Screen.Recording.2024-02-25.at.15.40.13.mov

View all open jobs on GitHub

Recording.2778.mp4
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~019d915d40b791c907
  • Upwork Job ID: 1762132134901731328
  • Last Price Increase: 2024-02-26
  • Automatic offers:
    • mkhutornyi | Reviewer | 0
    • DylanDylann | Contributor | 0
@m-natarajan m-natarajan added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 26, 2024
@melvin-bot melvin-bot bot changed the title Still can access to Tag page when request money to DM 1:1 chat [$500] Still can access to Tag page when request money to DM 1:1 chat Feb 26, 2024
Copy link

melvin-bot bot commented Feb 26, 2024

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

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

melvin-bot bot commented Feb 26, 2024

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

Copy link

melvin-bot bot commented Feb 26, 2024

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

@DylanDylann
Copy link
Contributor

DylanDylann commented Feb 26, 2024

Proposal

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

Still can access to Tag page when request money to DM 1:1 chat

What is the root cause of that problem?

In IOURequestStepTag we don't pass shouldShowNotFoundPage props to StepScreenWrapper

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

In IOURequestStepTag we should pass shouldShowNotFoundPage props to StepScreenWrapper

    const shouldShowNotFoundPage = !isPolicyExpenseChat || (!transactionTag && !OptionsListUtils.hasEnabledTags(policyTagLists)));

if (fieldToEdit === CONST.EDIT_REQUEST_FIELD.TAG && shouldShowTags) {

Like we did here
const shouldShowTags = useMemo(() => isPolicyExpenseChat && (transactionTag || OptionsListUtils.hasEnabledTags(policyTagLists)), [isPolicyExpenseChat, policyTagLists, transactionTag]);

What alternative solutions did you explore? (Optional)

@melvin-bot melvin-bot bot added the Overdue label Feb 28, 2024
@lschurr
Copy link
Contributor

lschurr commented Feb 28, 2024

Could you review this one @mkhutornyi?

@melvin-bot melvin-bot bot removed the Overdue label Feb 28, 2024
@mkhutornyi

This comment was marked as resolved.

@DylanDylann
Copy link
Contributor

DylanDylann commented Feb 28, 2024

@mkhutornyi For more information, recently we have 2 issues:

In issue 1, I am a C+ contributor and I see that the contributor forgot to migrate the logic to display Not Found Page here. Then the contributor fixed it and currently the logic in the category is correct. After that, I saw that the same problem still happens on the Tag Page. It is the reason why I report this bug

@mkhutornyi
Copy link
Contributor

Empty category/tag page display is not actual result right now.

The remaining bug to fix is make tag page same as category page when not found

@DylanDylann
Copy link
Contributor

DylanDylann commented Feb 28, 2024

@mkhutornyi Because this PR is deployed to staging, the behavior on category page is correct

The remaining bug to fix is make tag page same as category page when not found

Yes, we only need to fix this bug on Tag Page

@mkhutornyi
Copy link
Contributor

@DylanDylann's proposal looks good to me.
🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Feb 28, 2024

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

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

melvin-bot bot commented Mar 4, 2024

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

Offer link
Upwork job

Copy link

melvin-bot bot commented Mar 4, 2024

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

@melvin-bot melvin-bot bot removed the Overdue label Mar 4, 2024
@jasperhuangg
Copy link
Contributor

I agree that @DylanDylann's proposal looks good and they should be assigned to this issue!

@melvin-bot melvin-bot bot added the Reviewing Has a PR in review label Mar 5, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Mar 5, 2024
@DylanDylann
Copy link
Contributor

@mkhutornyi The PR is ready for review: #37747

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Mar 11, 2024
@melvin-bot melvin-bot bot changed the title [$500] Still can access to Tag page when request money to DM 1:1 chat [HOLD for payment 2024-03-18] [$500] Still can access to Tag page when request money to DM 1:1 chat Mar 11, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Mar 11, 2024
Copy link

melvin-bot bot commented Mar 11, 2024

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

Copy link

melvin-bot bot commented Mar 11, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.49-4 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-03-18. 🎊

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

Copy link

melvin-bot bot commented Mar 11, 2024

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:

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

@lschurr
Copy link
Contributor

lschurr commented Mar 14, 2024

Could you work on the checklist for this one @mkhutornyi?

@mkhutornyi
Copy link
Contributor

  1. The PR that introduced the bug has been identified. Link to the PR: Fix - An employee can access in a paid IOU the tag selection menu via a URL request #37176
  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/37176/files#r1525400140
  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
  4. 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. Yes
  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.

Regression Test Proposal:

  1. FAB > Request money
  2. Enter any amount
  3. Select DM 1:1 chat
  4. Click on description page
  5. In the URL, change description to category or tag/1
  6. Verify that not found page shows

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Mar 17, 2024
@lschurr
Copy link
Contributor

lschurr commented Mar 18, 2024

Payment summary:

@lschurr lschurr closed this as completed Mar 18, 2024
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

5 participants