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-06-06] [$250] IOU - "Members" appears in IOU details page and then disappears after a few seconds #41832

Closed
2 of 6 tasks
m-natarajan opened this issue May 8, 2024 · 28 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

@m-natarajan
Copy link

m-natarajan commented May 8, 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.71-0
Reproducible in staging?: Yes
Reproducible in production?: No
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. Login as user A to staging.new.expensify.com
  2. Submit two expenses to B
  3. Press IOU preview to open transaction page
  4. Select any IOU request
  5. Press header to open the details page

Expected Result:

Only settings is seen in details page of IOU request.

Actual Result:

"Members" is seen briefly and then disappears

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

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

Bug6474284_1715117859768.1715101165176_41639_iOS_.mp4
Bug6474284_1715117859768.41639_Web_.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~012a67c3a384fec2d0
  • Upwork Job ID: 1788211386365521920
  • Last Price Increase: 2024-05-08
  • Automatic offers:
    • Pujan92 | Reviewer | 0
    • nkdengineer | Contributor | 0
Issue OwnerCurrent Issue Owner: @trjExpensify
@m-natarajan m-natarajan added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. DeployBlocker Indicates it should block deploying the API labels May 8, 2024
Copy link

melvin-bot bot commented May 8, 2024

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

Copy link

melvin-bot bot commented May 8, 2024

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open Staging deploy checklist to see the list of PRs included in this release, then work quickly on the following:

  1. If you find which PR caused the issue/bug, you can reassign it to the person responsible for it.
    • If the author is OOO or won’t get online before the daily deploy is due, you are responsible for finding the best fix/path forward. Don’t hesitate to ask for help!
  2. Try to reproduce the issue, if the bug is on production, remove the DeployBlocker label but stay assigned to fix it (or find out which PR broke it to get help from the author).
    • You can adjust the urgency of the issue to better represent the gravity of the bug.
    • If the issue is super low priority, feel free to un-assign yourself.
    • Be careful with PHP warnings, sometimes it is more complex than just adding a null coalescing operator as they might be uncovering some bigger bug.
    • If it was a one-off issue that requires no action (for example, Bedrock was down or it is a duplicated issue), you can close it.

Remember rule #2: Never un-assign yourself from a real DeployBlocker unless you are 100% sure someone else is assigned and will take care of it.

Copy link

melvin-bot bot commented May 8, 2024

Triggered auto assignment to @trjExpensify (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 removed the Hourly KSv2 label May 8, 2024
@github-actions github-actions bot added Hourly KSv2 and removed Daily KSv2 labels May 8, 2024
Copy link
Contributor

github-actions bot commented May 8, 2024

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

@m-natarajan
Copy link
Author

@rlinoz FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@trjExpensify
Copy link
Contributor

I can reproduce this reliably:

  • iouReport details: Members not shown
  • iouTransaction details: Members shown briefly and then disappears

@rlinoz I'll be curious to follow the git blame to see where we made the changes to not show Members in iouReport/iouTransaction details.

@rlinoz
Copy link
Contributor

rlinoz commented May 8, 2024

So, I am not sure the header on iou transactions should be clickable at all, at least it is not clickable in prod, trying to find where we changed that.

@rlinoz
Copy link
Contributor

rlinoz commented May 8, 2024

oh, that was considered a bug, and we enabled the tap now.

@rlinoz
Copy link
Contributor

rlinoz commented May 8, 2024

Ok, so I think this is a problem that we had before, it just wasn't possible to click on.

I'll be curious to follow the git blame to see where we made the changes to not show Members in iouReport/iouTransaction details.

That is hard to follow, we changed how participants work a lot recently, but I don't know if we should have ever shown members here, since the notification preference for transactions is hidden. Now we are actively filtering out hidden members, so that is why it is not showing the members section.

The problem of showing then hiding is happening because we are optimistically setting the members as not hidden for this types of reports. We get the participants here and always set them as hidden:false here.

@trjExpensify but I am curious, do you think we should bypass the notification preference here and show the participants?

@trjExpensify
Copy link
Contributor

The problem of showing then hiding is happening because we are optimistically setting the members as not hidden for this types of reports. We get the participants here and always set them as hidden:false here.

Ahh, gotcha. So until the report is unhidden, members don't show. Gotcha! That makes sense, I guess. 👍

@rlinoz
Copy link
Contributor

rlinoz commented May 8, 2024

Nice, I will remove the deploy blocker label as this problem and the members section being hidden is the correct behavior, and open it up for proposals.

@rlinoz rlinoz added 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 and removed DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels May 8, 2024
@melvin-bot melvin-bot bot changed the title IOU - "Members" appears in IOU details page and then disappears after a few seconds [$250] IOU - "Members" appears in IOU details page and then disappears after a few seconds May 8, 2024
Copy link

melvin-bot bot commented May 8, 2024

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

@rlinoz rlinoz added the Daily KSv2 label May 8, 2024
@Pujan92
Copy link
Contributor

Pujan92 commented May 9, 2024

@rlinoz To confirm, for all transaction threads hidden will be true from the backend? Bcoz if that is the case then we should update the optimistic value specifically for the transaction threads in the front end to make it consistent.

@rlinoz
Copy link
Contributor

rlinoz commented May 9, 2024

Yes, for every new transaction thread every member will be hidden until they perform some action on it.

@Pujan92
Copy link
Contributor

Pujan92 commented May 9, 2024

Thanks @rlinoz.

@GandalfGwaihir and @cretadn22's main solution proposed to update the condition inside the ReportDetailsPage component, but I think it's better to update optimistic data for the transaction threads correctly which will be consistent with backend.

I prefer to move with @nkdengineer's proposal where for any of the transaction threads we should set hidden to true for participants.

🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented May 9, 2024

Current assignee @rlinoz is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

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

melvin-bot bot commented May 10, 2024

📣 @Pujan92 🎉 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 May 10, 2024

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

@nkdengineer
Copy link
Contributor

@Pujan92 The PR is here.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels May 30, 2024
@melvin-bot melvin-bot bot changed the title [$250] IOU - "Members" appears in IOU details page and then disappears after a few seconds [HOLD for payment 2024-06-06] [$250] IOU - "Members" appears in IOU details page and then disappears after a few seconds May 30, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label May 30, 2024
Copy link

melvin-bot bot commented May 30, 2024

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

Copy link

melvin-bot bot commented May 30, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.77-11 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-06-06. 🎊

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

Copy link

melvin-bot bot commented May 30, 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:

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

@Pujan92
Copy link
Contributor

Pujan92 commented Jun 6, 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:

  • [@Pujan92] The PR that introduced the bug has been identified. Link to the PR: Create Group Chats + Splits. #37458
  • [@Pujan92] 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/37458/files#r1629616409
  • [@Pujan92] 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: NA
  • [@Pujan92] Determine if we should create a regression test for this bug. No
  • [@Pujan92] 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.

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Jun 6, 2024
@trjExpensify
Copy link
Contributor

Payment summary as follows:

Paid!

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

7 participants