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-07-22] [HOLD for payment 2024-07-17] [Collect approvers] [$500] Expense - Owner of submission message changes from admin to employee when admin submits it #35263

Closed
6 tasks done
lanitochka17 opened this issue Jan 26, 2024 · 83 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 Jan 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.32-2
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: Applause - Internal Team
Slack conversation:

Action Performed:

  1. [Employee] Go to workspace chat
  2. [Employee] Create a manual request and do not submit it
  3. [Admin] Go to the workspace chat with employee
  4. [Admin] Go to expense report
  5. [Admin] Click Submit

Expected Result:

The report submission message "You (on behalf of employee) submitted this report to you" is owned by the admin

Actual Result:

The report submission message "You (on behalf of employee) submitted this report to you" is owned by the admin first, then it quickly changes to become owned by the employee, when the message indicates "You" which means the admin

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

Bug6356005_1706287888756.bandicam_2024-01-24_21-27-41-417.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01b83478ffce02da03
  • Upwork Job ID: 1750959089237659648
  • Last Price Increase: 2024-01-26
Issue OwnerCurrent Issue Owner: @slafortune
@lanitochka17 lanitochka17 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 Jan 26, 2024
@melvin-bot melvin-bot bot changed the title Expense - Owner of submission message changes from admin to employee when admin submits it [$500] Expense - Owner of submission message changes from admin to employee when admin submits it Jan 26, 2024
Copy link

melvin-bot bot commented Jan 26, 2024

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

Copy link

melvin-bot bot commented Jan 26, 2024

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

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

melvin-bot bot commented Jan 26, 2024

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

@lanitochka17
Copy link
Author

We think that this bug might be related to #6.
CC @greg-schroeder

@greg-schroeder
Copy link
Contributor

I think probably Wave 8 as it seems mostly like an admin-side bug

Copy link

melvin-bot bot commented Jan 30, 2024

@slafortune, @parasharrajat Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@rezkiy37
Copy link
Contributor

rezkiy37 commented Feb 1, 2024

Hi, I’m Michael (Mykhailo) from Callstack and I would like to work on this issue.

@melvin-bot melvin-bot bot removed Help Wanted Apply this label when an issue is open to proposals by contributors Overdue labels Feb 1, 2024
@slafortune
Copy link
Contributor

Assigned you @rezkiy37

@rezkiy37
Copy link
Contributor

rezkiy37 commented Feb 2, 2024

So, I've investigated the bug. I can confirm that it still exists. I can say that it is a backend bug. The root cause that the backend attaches an incorrect actorAccountID to a submit action item. The app optimistically attaches a current (admin - 14859714) user actorAccountID, but the backend responses with another value (employee - 16218756). Looks like a request it correct:

Request

Response:

Response

Video:

Bug.mp4

@melvin-bot melvin-bot bot added the Overdue label Feb 5, 2024
@rezkiy37
Copy link
Contributor

rezkiy37 commented Feb 5, 2024

@slafortune and @parasharrajat, please take a look at a comment above.

@melvin-bot melvin-bot bot removed the Overdue label Feb 5, 2024
@zanyrenney
Copy link
Contributor

@slafortune I commented in Slack, but there seems more like collect approvers/wave seven. If you disagree, let me know!

@RachCHopkins
Copy link
Contributor

RachCHopkins commented Feb 6, 2024

This may be the same as #33819

Edit: No it is not, it just comes from a similar underlying behaviour.

Per @trjExpensify:

I don’t think we want to be recomputing and displaying that OldDot system message

The sys message should come “from” the admin that clicked Submit and read:

submitted %amount%

@melvin-bot melvin-bot bot added the Overdue label Feb 7, 2024
Copy link

melvin-bot bot commented Feb 8, 2024

@slafortune, @parasharrajat, @rezkiy37 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@slafortune slafortune added the Hot Pick Ready for an engineer to pick up and run with label Feb 8, 2024
@rezkiy37
Copy link
Contributor

@rezkiy37 are you able to get back at this now pending the mentioned PR?

We already merged a PR for the App. (#35263 (comment))

@marcochavezf
Copy link
Contributor

Backend PRs to fix remaining issues are in review #41040 (comment)

@parasharrajat
Copy link
Member

PR is waiting on changes.

@slafortune
Copy link
Contributor

I will be on vacation until June 4th, but I will not get another BZ assigned since no payment will need to be handled via Upworks.

It looks like we are still waiting on a PR. @marcochavezf, if something changes and you need a BZ member, please reply to the label.

@rezkiy37 is an expert contributor and is not due payment here
@parasharrajat will be paid $500 via New Dot for the C+ role

@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels Jun 7, 2024
Copy link

melvin-bot bot commented Jun 7, 2024

This issue has not been updated in over 15 days. @marcochavezf, @slafortune, @parasharrajat, @rezkiy37 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!

@parasharrajat
Copy link
Member

This is waiting on @marcochavezf

@slafortune
Copy link
Contributor

Still waiting on @marcochavezf

One of the backend PRs has been merged, I will post an update here once the remaining ones have been deployed. Meanwhile I will fix the conflicts

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Monthly KSv2 labels Jul 10, 2024
@melvin-bot melvin-bot bot changed the title [Collect approvers] [$500] Expense - Owner of submission message changes from admin to employee when admin submits it [HOLD for payment 2024-07-17] [Collect approvers] [$500] Expense - Owner of submission message changes from admin to employee when admin submits it Jul 10, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 10, 2024
Copy link

melvin-bot bot commented Jul 10, 2024

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

Copy link

melvin-bot bot commented Jul 10, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.5-13 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-07-17. 🎊

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

Copy link

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

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

@parasharrajat
Copy link
Member

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:

  • [@parasharrajat] The PR that introduced the bug has been identified. Link to the PR: Its a new change.
  • [@parasharrajat] 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: NA
  • [@parasharrajat] 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: Not needed
  • [@parasharrajat] Determine if we should create a regression test for this bug. Yes
  • [@parasharrajat] 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 Steps

  1. Create a workspace and invite a member
  2. Enable Delay submissions and set the frequency to Daily
  3. Enable Add approvals.
  4. [Member] Create a few expenses but don't submit them
  5. [Admin] Submit the expense report
  6. Verify the message submitted %amount% is displayed in both accounts

Do you agree 👍 or 👎 ?

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jul 15, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-07-17] [Collect approvers] [$500] Expense - Owner of submission message changes from admin to employee when admin submits it [HOLD for payment 2024-07-22] [HOLD for payment 2024-07-17] [Collect approvers] [$500] Expense - Owner of submission message changes from admin to employee when admin submits it Jul 15, 2024
Copy link

melvin-bot bot commented Jul 15, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.6-8 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-07-22. 🎊

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

Copy link

melvin-bot bot commented Jul 15, 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:

  • [@parasharrajat] The PR that introduced the bug has been identified. Link to the PR:
  • [@parasharrajat] 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:
  • [@parasharrajat] 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:
  • [@parasharrajat] Determine if we should create a regression test for this bug.
  • [@parasharrajat] 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.
  • [@slafortune] 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 and removed Weekly KSv2 labels Jul 16, 2024
@slafortune
Copy link
Contributor

@rezkiy37 is an expert contributor and not due payment here.
@parasharrajat Role C+ is due $500 via NewDot

@parasharrajat
Copy link
Member

Payment requested as per #35263 (comment)

@JmillsExpensify
Copy link

$500 approved for @parasharrajat

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
No open projects
Archived in project
Development

No branches or pull requests

10 participants