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-10-04][$250] Dupe detect - Invited user is not able to see the receipt placeholder on the confirmation page #47903

Closed
6 tasks done
IuliiaHerets opened this issue Aug 23, 2024 · 29 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

@IuliiaHerets
Copy link

IuliiaHerets commented Aug 23, 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: v9.0.24-0
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Create a workspace.
  3. Submit two same expenses to the workspace chat.
  4. Go to transaction thread (any).
  5. Click Review duplicates > Keep this one (any).
  6. Proceed to confirmation page.
  7. Note that there is a receipt placeholder on the confirmation page.
  8. As another user, invite the current user to a workspace.
  9. As the invited user, go to workspace chat.
  10. Repeat Step 3 to 6.
  11. Notet hat there is no receipt placeholder on the confirmation page.

Expected Result:

In Step 11, the invited user should be able to see the receipt placeholder on the confirmation page.

Actual Result:

In Step 11, the invited user is unable to see the receipt placeholder on the confirmation page.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6580073_1724396847575.20240823_145830.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01741cd4c1fe7a4231
  • Upwork Job ID: 1828132802801480968
  • Last Price Increase: 2024-08-26
Issue OwnerCurrent Issue Owner: @zanyrenney
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Aug 23, 2024
Copy link

melvin-bot bot commented Aug 23, 2024

Triggered auto assignment to @zanyrenney (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.

Copy link

melvin-bot bot commented Aug 23, 2024

Triggered auto assignment to @iwiznia (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@melvin-bot melvin-bot bot added the Daily KSv2 label Aug 23, 2024
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Aug 23, 2024
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.

@IuliiaHerets
Copy link
Author

We think that this bug might be related to #wave-control

@daledah
Copy link
Contributor

daledah commented Aug 23, 2024

Proposal

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

In Step 11, the invited user is unable to see the receipt placeholder on the confirmation page.

What is the root cause of that problem?

when canEditReceipt=false, we only show Receipt empty state to admin and Approver in here

const shouldShowReceiptEmptyState =
isReceiptAllowed && !hasReceipt && !isApproved && !isSettled && (canEditReceipt || isAdmin || isApprover) && (canEditReceipt || ReportUtils.isPaidGroupPolicy(report));

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

We should show Receipt empty state to requestor too like we did here

  1. Calculate isRequestor based on currentUserPersonalDetails and parentReportAction
    const currentUserPersonalDetails = useCurrentUserPersonalDetails();
    const isRequestor = currentUserPersonalDetails.accountID === parentReportAction?.actorAccountID;
  1. Update logic shouldShowReceiptEmptyState here
    const shouldShowReceiptEmptyState =
        isReceiptAllowed && !hasReceipt && !isApproved && !isSettled && (canEditReceipt || isAdmin || isApprover || isRequestor) && (canEditReceipt || ReportUtils.isPaidGroupPolicy(report));

What alternative solutions did you explore? (Optional)

@iwiznia iwiznia added DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Aug 23, 2024
Copy link

melvin-bot bot commented Aug 23, 2024

Current assignee @iwiznia is eligible for the DeployBlockerCash assigner, not assigning anyone new.

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.

@iwiznia
Copy link
Contributor

iwiznia commented Aug 23, 2024

Update logic shouldShowReceiptEmptyState here

Let's make this a method that we use in both places instead of duplicating the logic.

Calculate isRequestor based on currentUserPersonalDetails and parentReportAction

I see your code has parentReportAction?.actorAccountID in what case there's no parentReportAction and how will we determine who is the requestor in that case? Also what exactly is this parent report action? What type is it? When is it added? Are we sure it will match the requestor of the report?

@zanyrenney
Copy link
Contributor

I am heading OOO so please reapply the bug label if this needs payment i the next 7 days, otherwise i'll pay on return!

@daledah
Copy link
Contributor

daledah commented Aug 25, 2024

@iwiznia

Let's make this a method that we use in both places instead of duplicating the logic.

I think this problem will be resolved during PR.

I see your code has parentReportAction?.actorAccountID in what case there's no parentReportAction and how will we determine who is the requestor in that case? Also what exactly is this parent report action? What type is it? When is it added? Are we sure it will match the requestor of the report?

When we create a new expense, the parentReportAction when we open the duplicate confirmation page is the report action created by that expense. Therefore, the actorAccountID in the parentReportAction is requestor.

@melvin-bot melvin-bot bot added the Overdue label Aug 25, 2024
@melvin-bot melvin-bot bot removed the Overdue label Aug 26, 2024
@puneetlath puneetlath added Overdue DeployBlockerCash This issue or pull request should block deployment and removed DeployBlockerCash This issue or pull request should block deployment labels Aug 26, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Sep 5, 2024
@daledah
Copy link
Contributor

daledah commented Sep 5, 2024

@allroundexperts PR is ready for review.

@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels Sep 30, 2024
Copy link

melvin-bot bot commented Sep 30, 2024

This issue has not been updated in over 15 days. @allroundexperts, @roryabraham, @zanyrenney, @daledah eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@roryabraham
Copy link
Contributor

The PR for this was deployed to prod on 2024-09-27. Setting payout timer manually.

side-note: working on fixing the automation in #49963

@roryabraham roryabraham added Awaiting Payment Auto-added when associated PR is deployed to production Weekly KSv2 and removed Reviewing Has a PR in review Monthly KSv2 labels Oct 1, 2024
@roryabraham roryabraham changed the title [$250] Dupe detect - Invited user is not able to see the receipt placeholder on the confirmation page [HOLD for payment 2024-10-04][$250] Dupe detect - Invited user is not able to see the receipt placeholder on the confirmation page Oct 1, 2024
@zanyrenney zanyrenney removed their assignment Oct 2, 2024
@zanyrenney zanyrenney added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Oct 2, 2024
Copy link

melvin-bot bot commented Oct 2, 2024

Triggered auto assignment to @OfstadC (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.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Oct 2, 2024
@zanyrenney
Copy link
Contributor

Hi! I am going OOO tomorrow when this payment is due, back on 7th October. Could you please handle the payment? I would be happy to take it back if there are any blockers when I am back. Thanks!

@zanyrenney zanyrenney self-assigned this Oct 2, 2024
@OfstadC
Copy link
Contributor

OfstadC commented Oct 4, 2024

Old job post expired - new one here

@daledah - Could you please accept this offer? Thank you! 😃

@daledah
Copy link
Contributor

daledah commented Oct 4, 2024

@OfstadC accepted 🙏

@melvin-bot melvin-bot bot added the Overdue label Oct 4, 2024
@OfstadC
Copy link
Contributor

OfstadC commented Oct 4, 2024

Payment Summary

@OfstadC OfstadC closed this as completed Oct 4, 2024
@melvin-bot melvin-bot bot removed the Overdue label Oct 4, 2024
@JmillsExpensify
Copy link

$250 approved for @allroundexperts

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

9 participants