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

[$250] [HOLD for payment 2024-02-20] Implement Client-side Violations when updating money requests #31093

Closed
cead22 opened this issue Nov 9, 2023 · 33 comments
Assignees
Labels
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 Help Wanted Apply this label when an issue is open to proposals by contributors Improvement Item broken or needs improvement.

Comments

@cead22
Copy link
Contributor

cead22 commented Nov 9, 2023

  • Design Doc
  • The following should only apply to users in the violations beta
  • Let's connect EditRequestPage to the POLICY, and TRANSACTION_VIOLATIONS Onyx collections so we can get
    • requiresTag, requiresCategory, hasMultipleTagLists, and isTaxTrackingEnabled from the policy, and
    • The transaction violations from Onyx
  • In src/pages/EditRequestPage.js let's pass policyID to editMoneyRequest, and in there pass it to IOU.updateDistanceRequest and IOU.editMoneyRequest
  • Let's update src/libs/actions/IOU.js
    • In editMoneyRequest above where we set optimisticData, call ViolationUtils.getViolationsOnyxData(transactionChanges, transactionViolations, policyRequiresTags, policyTags, policyRequiresCategories, policyCategories), and add the return value to the optimisticData
    • Similarly in updateDistanceRequest after the last call to optimisticData.push, we call ViolationUtils.getViolationsOnyxData(transactionChanges, transactionViolations, policyRequiresTags, policyTags, policyRequiresCategories, policyCategories) and push the return value to optimisticData
  • We can set the value of failure data to an object like in the snippet below, where transactionViolations has the data from Onyx
  • Once the request is submitted, violations will be calculated on the server in EditMoneyRequest API command and pushed down to the client, but nothing about the violations that are calculated on the client should change
{
    onyxMethod: Onyx.METHOD.MERGE,
    key: `${ONYXKEYS.COLLECTION.TRANSACTION_VIOLATIONS}${transactionID}`,
    value: transactionViolations,
}
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~019149143c50ac6f4d
  • Upwork Job ID: 1811196753636588997
  • Last Price Increase: 2024-07-11
Issue OwnerCurrent Issue Owner: @mkhutornyi
@cead22 cead22 added Engineering Daily KSv2 Improvement Item broken or needs improvement. labels Nov 9, 2023
Copy link

melvin-bot bot commented Nov 14, 2023

Huh... This is 4 days overdue. Who can take care of this?

@melvin-bot melvin-bot bot added the Overdue label Nov 14, 2023
Copy link

melvin-bot bot commented Nov 20, 2023

10 days overdue. Is anyone even seeing these? Hello?

Copy link

melvin-bot bot commented Nov 22, 2023

12 days overdue now... This issue's end is nigh!

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Nov 27, 2023
Copy link

melvin-bot bot commented Nov 27, 2023

This issue has not been updated in over 14 days. eroding to Weekly issue.

@melvin-bot melvin-bot bot removed the Overdue label Nov 27, 2023
@cead22 cead22 changed the title [HOLD 31083] Implement Client-side Violations when updating money requests Implement Client-side Violations when updating money requests Dec 4, 2023
@cead22
Copy link
Contributor Author

cead22 commented Dec 4, 2023

Off hold

@cead22
Copy link
Contributor Author

cead22 commented Dec 6, 2023

@lindboe @cdanwards @trevor-coleman can you please comment here so I can assign you?

@cead22 cead22 self-assigned this Dec 6, 2023
@cdanwards
Copy link
Contributor

Commenting for assignment

@trevor-coleman
Copy link
Contributor

🚀

Copy link

melvin-bot bot commented Dec 6, 2023

📣 @trevor-coleman! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@trevor-coleman
Copy link
Contributor

Contributor details
Your Expensify account email: trevor@infinite.red
Upwork Profile Link: N/A

Copy link

melvin-bot bot commented Dec 7, 2023

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@melvin-bot melvin-bot bot added the Overdue label Dec 18, 2023
@cead22

This comment was marked as off-topic.

@melvin-bot melvin-bot bot removed the Overdue label Dec 18, 2023
@melvin-bot melvin-bot bot added the Overdue label Dec 27, 2023
@cead22

This comment was marked as off-topic.

@melvin-bot melvin-bot bot removed the Overdue label Dec 27, 2023
@melvin-bot melvin-bot bot added the Overdue label Jan 4, 2024
@cead22
Copy link
Contributor Author

cead22 commented Jan 5, 2024

We prioritized client side violations when creating money request. This one comes next

Copy link

melvin-bot bot commented Feb 13, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.40-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-02-20. 🎊

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

@parasharrajat
Copy link
Member

parasharrajat commented Jul 10, 2024

Looks like I was never got paid for PR review #34402. @cead22 Could you please reopen and assign a BZ to finalize the checklist?

@cead22 cead22 reopened this Jul 11, 2024
@cead22 cead22 added the External Added to denote the issue can be worked on by a contributor label Jul 11, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-02-20] Implement Client-side Violations when updating money requests [$250] [HOLD for payment 2024-02-20] Implement Client-side Violations when updating money requests Jul 11, 2024
Copy link

melvin-bot bot commented Jul 11, 2024

Job added to Upwork: https://www.upwork.com/jobs/~019149143c50ac6f4d

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

melvin-bot bot commented Jul 11, 2024

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 11, 2024
@cead22 cead22 added External Added to denote the issue can be worked on by a contributor and removed 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 Awaiting Payment Auto-added when associated PR is deployed to production labels Jul 11, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 11, 2024
Copy link

melvin-bot bot commented Jul 11, 2024

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

@cead22
Copy link
Contributor Author

cead22 commented Jul 11, 2024

@mananjadhav @mkhutornyi sorry for the auto assignment, I'm trying to trigger some other automation

@puneetlath puneetlath added the Bug Something is broken. Auto assigns a BugZero manager. label Jul 11, 2024
Copy link

melvin-bot bot commented Jul 11, 2024

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

@cead22
Copy link
Contributor Author

cead22 commented Jul 11, 2024

@sonialiap can you please handle payment for @parasharrajat for the PR review, and undo this #31093 (comment), I'm guessing by closing the upwork job? Thanks

@parasharrajat
Copy link
Member

Note the price here would be 500.

@sonialiap
Copy link
Contributor

Payment summary

Upwork job closed

@parasharrajat
Copy link
Member

Payment requested as per #31093 (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
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 Help Wanted Apply this label when an issue is open to proposals by contributors Improvement Item broken or needs improvement.
Projects
None yet
Development

No branches or pull requests

10 participants