-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Refactor UpdatePolicyConnectionConfiguration to be 1:1:1 (Part 1) #46234
Refactor UpdatePolicyConnectionConfiguration to be 1:1:1 (Part 1) #46234
Conversation
import CONST from '@src/CONST'; | ||
import ONYXKEYS from '@src/ONYXKEYS'; | ||
|
||
function getQuickbooksOnlineSetupLink(policyID: string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getQuickbooksOnlineSetupLink
is the same function as it was before - I renamed the file to match spelling; haven't changed this piece at all.
}); | ||
return commandURL + new URLSearchParams(params).toString(); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From here down is new
@ Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2024-08-13.at.1.28.40.PM.movMacOS: Desktop |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and tested well
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Hello 👋 I found this PR today, while merging conflicts with mine. |
Hey @zfurtak! So, unfortunately, our 1:1:1 (1 user action, 1 api call from JS to PHP, 1 api call from PHP to C++) philosophy means that we can't use a generic function here. It's the first @aldo-expensify and I also kind of agree that this is... not helpful. But we need to stick to the pattern we've decided on, which means individual requests. You can see this pattern was already worked on for NetSuite, not sure about the other integrations. Would it be possible to make sort of a wrapper/helper function around the API call that handles the errors, maybe? like within the new Sorry for the trouble, happy to discuss solutions here or in Slack! (that thread link also didn't work for me because it went to the swm slack not ours) |
Hi @dangrous 😊 okay, I see your point! I hope my PR will be merged soon, it will be much easier to do it in this order 🤓 |
I guess that will have to be refactored 🤮 x 1000 |
🚀 Deployed to staging by https://github.com/aldo-expensify in version: 9.0.21-0 🚀
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.0.21-4 🚀
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.0.21-4 🚀
|
@aldo-expensify
Details
There should be no user facing changes with this PR, it is only changing the API commands.
I also updated the spelling of
Quickbooks
to be consistent in the code (lowercase b), even though that's not how it is officially in user-facing stuff.Fixed Issues
https://github.com/Expensify/Expensify/issues/398335
Tests
Same as QA
Offline tests
Same as QA
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop