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-30] De-dupe OpenReport requests #51072

Closed
mountiny opened this issue Oct 18, 2024 · 13 comments
Closed

[HOLD for payment 2024-10-30] De-dupe OpenReport requests #51072

mountiny opened this issue Oct 18, 2024 · 13 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

Comments

@mountiny
Copy link
Contributor

mountiny commented Oct 18, 2024

similarly to this issue for OpenApp #50076

Problem

We are seeing some scenarios where multiple OpenReport requests are serialized in a row. When multiple such requests are sent, it's redundant, slows down the app, and contributes to server traffic.

Solution

De-dupe OpenReport requests for the same reportId such that only one can be serialized at a time.

Issue OwnerCurrent Issue Owner: @strepanier03
@mountiny mountiny added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 18, 2024
@mountiny mountiny self-assigned this Oct 18, 2024
Copy link

melvin-bot bot commented Oct 18, 2024

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

@gedu
Copy link
Contributor

gedu commented Oct 18, 2024

Hey, I'm Edu from Callstack, I can work on it

@muttmuure muttmuure moved this to CRITICAL in [#whatsnext] #quality Oct 18, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Oct 18, 2024
@eh2077
Copy link
Contributor

eh2077 commented Oct 21, 2024

@mountiny Can I get assigned here? So we can track the payment, thanks!

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Oct 23, 2024
@melvin-bot melvin-bot bot changed the title De-dupe OpenReport requests [HOLD for payment 2024-10-30] De-dupe OpenReport requests Oct 23, 2024
Copy link

melvin-bot bot commented Oct 23, 2024

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Oct 23, 2024
Copy link

melvin-bot bot commented Oct 23, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.52-5 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-10-30. 🎊

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

  • @gedu does not require payment (Contractor)
  • @eh2077 requires payment through NewDot Manual Requests

Copy link

melvin-bot bot commented Oct 23, 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:

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

@mountiny
Copy link
Contributor Author

@eh2077 can you please complete the checklist? I think we do not need regression tests for this as we added unit tests

@eh2077
Copy link
Contributor

eh2077 commented Oct 27, 2024

Checklist

  • [@eh2077] The PR that introduced the bug has been identified. Link to the PR: This is an improvement, so there isn't a PR causes this bug.

TL;DR
Digging into the commit history, we have pursued this improvement for some time. Below are the timeline

  1. A de-dupe logic was first introduced to solve this issue Create generic network layer logic for conflicting write requests #39024
  2. The de-dupe logic was reverted Remove all request de-duping logic #40180 to pursue better solution
  3. Then De-dupe ReconnectApp in the persisted requests queue #47913 was merged
  4. This PR can be considered as a follow-up PR of De-dupe ReconnectApp in the persisted requests queue #47913
  • [@eh2077] 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: N/A
  • [@eh2077] 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
  • [@eh2077] Determine if we should create a regression test for this bug. No, because this improvement is implicit and doesn't impact the flow to use the App.

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

melvin-bot bot commented Oct 30, 2024

Payment Summary

Upwork Job

  • Contributor: @gedu is from an agency-contributor and not due payment
  • Reviewer: @eh2077 owed $250 via NewDot

BugZero Checklist (@strepanier03)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@strepanier03
Copy link
Contributor

strepanier03 commented Oct 30, 2024

Payment Summary

  • @gedu does not require payment (Contractor)
  • $250 - @eh2077 via payment through NewDot Manual Requests

@strepanier03
Copy link
Contributor

@eh2077 - feel free to request payment now. Cheers!

@github-project-automation github-project-automation bot moved this from CRITICAL to Done in [#whatsnext] #quality Oct 30, 2024
@eh2077
Copy link
Contributor

eh2077 commented Oct 31, 2024

Requested in NewDot

@JmillsExpensify
Copy link

$250 approved for @eh2077

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

No branches or pull requests

5 participants