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] Update UpdatePolicyConnectionConfiguration to be 1:1:1 - Part 4 #47522

Open
dangrous opened this issue Aug 15, 2024 · 23 comments
Open

[$250] Update UpdatePolicyConnectionConfiguration to be 1:1:1 - Part 4 #47522

dangrous opened this issue Aug 15, 2024 · 23 comments
Assignees
Labels
External Added to denote the issue can be worked on by a contributor Monthly KSv2 Reviewing Has a PR in review

Comments

@dangrous
Copy link
Contributor

dangrous commented Aug 15, 2024

Problem

Our UpdatePolicyConnectionConfiguration API command is not 1:1:1 - it is the same API call for all related user actions, when it should be split up for each connection (QBO, Xero, etc.) and configuration setting (autoSyncVendor, enableNewCategories, etc.). At the end of this we should not call that function anywhere.

This is polish for the Collect QBO project.

Solution

When we created the NetSuite commands, we followed the correct pattern, and so need to do so here too.

This requires backend and frontend work in tandem (to create the commands and then to use them), so we're looking for a contributor(s) to handle the frontend. You can see an example PR here - there is some extra prep work there that you can ignore, but adjusting all calls like this is what we're going for:

- Connections.updatePolicyConnectionConfig(policyID, CONST.POLICY.CONNECTIONS.NAME.QBO, CONST.QUICK_BOOKS_CONFIG.REIMBURSABLE_EXPENSES_ACCOUNT, row.value);
+ QuickbooksOnline.updateQuickbooksOnlineReimbursableExpensesAccount(policyID, row.value);

Here is a list of the commands handled in this issue:

  • UpdateQuickbooksOnlineAutoSync
  • UpdateQuickbooksOnlineSyncPeople
  • UpdateQuickbooksOnlineReimbursementAccountID
  • UpdateQuickbooksOnlineExport - We will need to split up this one even further, one for each piece of the object that it is updating. We can discuss this on the PRs.

If there are others that follow the same pattern as UpdateQuickbooksOnlineExport (same object, different keys) we will need to split those as well.

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01eef0bc66034bca70
  • Upwork Job ID: 1825578317140040932
  • Last Price Increase: 2024-08-19
  • Automatic offers:
    • shubham1206agra | Contributor | 103590186
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @shubham1206agra
@dangrous dangrous added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Aug 15, 2024
Copy link

melvin-bot bot commented Aug 15, 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.

@dangrous
Copy link
Contributor Author

Sorry @zanyrenney forgot to remove Bug from this one - you can ignore until we're ready for a payment

@zanyrenney
Copy link
Contributor

Sounds good, thanks for the update @dangrous

@dangrous dangrous self-assigned this Aug 16, 2024
@melvin-bot melvin-bot bot added the Overdue label Aug 19, 2024
@dangrous
Copy link
Contributor Author

@shubham1206agra @rushatgabhane can you comment here so I can assign you? Thanks!

@melvin-bot melvin-bot bot removed the Overdue label Aug 19, 2024
@rushatgabhane
Copy link
Member

@dangrous fyi, we don't need to comment for getting assigned as we're on exfy org in GitHub

@shubham1206agra
Copy link
Contributor

Here

@dangrous
Copy link
Contributor Author

oh whoops! sorry about that.

@dangrous dangrous added the External Added to denote the issue can be worked on by a contributor label Aug 19, 2024
Copy link

melvin-bot bot commented Aug 19, 2024

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

@melvin-bot melvin-bot bot changed the title Update UpdatePolicyConnectionConfiguration to be 1:1:1 - Part 4 [$250] Update UpdatePolicyConnectionConfiguration to be 1:1:1 - Part 4 Aug 19, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 19, 2024
Copy link

melvin-bot bot commented Aug 19, 2024

Current assignee @rushatgabhane is eligible for the External 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 Aug 19, 2024
Copy link

melvin-bot bot commented Aug 19, 2024

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

@melvin-bot melvin-bot bot added the Overdue label Aug 21, 2024
@zanyrenney
Copy link
Contributor

any update here please @shubham1206agra

@shubham1206agra
Copy link
Contributor

I am done with the code. I just figuring out a way to test this flow.

@melvin-bot melvin-bot bot removed the Overdue label Aug 22, 2024
@zanyrenney
Copy link
Contributor

cool!

@dangrous
Copy link
Contributor Author

fyi backend pr is deployed now so should be able to test the new commands!

@shubham1206agra
Copy link
Contributor

@dangrous, I am getting 404 here. Can you please check this?

@dangrous
Copy link
Contributor Author

Noted in Slack but for the GitHub record - QBO backend PR not yet on staging, should be there today!

@dangrous
Copy link
Contributor Author

back end PR is up on staging!

Copy link

melvin-bot bot commented Aug 28, 2024

@dangrous, @rushatgabhane, @zanyrenney, @shubham1206agra Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added Overdue Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 Overdue labels Aug 28, 2024
@shubham1206agra
Copy link
Contributor

The PR has pending review from @rushatgabhane

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

melvin-bot bot commented Sep 24, 2024

This issue has not been updated in over 15 days. @dangrous, @rushatgabhane, @zanyrenney, @shubham1206agra 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!

@dangrous
Copy link
Contributor Author

Shush Melvin this was just merged!

Copy link

melvin-bot bot commented Sep 26, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@dangrous
Copy link
Contributor Author

Why no automationnnnnnn - went to prod 3 days ago according to the comment on the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
External Added to denote the issue can be worked on by a contributor Monthly KSv2 Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

4 participants