-
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
Add sync functionality in Xero connection #41562
Conversation
@mananjadhav 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] |
@ShridharGoel Can you fix the lint issues? |
@@ -124,4 +124,34 @@ function updatePolicyConnectionConfig<TConnectionName extends ConnectionName, TS | |||
API.write(WRITE_COMMANDS.UPDATE_POLICY_CONNECTION_CONFIG, parameters, {optimisticData, failureData, successData}); | |||
} | |||
|
|||
export {removePolicyConnection, updatePolicyConnectionConfig}; | |||
function syncConnection(policyID: string, connectionName: PolicyConnectionName | undefined) { |
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.
Can we add jsdocs here?
@ShridharGoel The PR for the Sync command on the backend is on staging. Can you please add the code for sync and finish the PR? Let me know once it's done and ready for review. |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-xero-sync-now.movAndroid: mWeb Chromemweb-chrome-xero-sync-now.moviOS: Nativeios-xero-sync-now.moviOS: mWeb Safarimweb-safari-xero-sync-now.movMacOS: Chrome / Safariweb-xero-sync-now.movMacOS: Desktopdesktop-xero-sync-now.mov |
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.
@ShridharGoel Can you please sync the xero-merge-freeze
in this branch.
just double checking, have Spanish translations been approved, right? |
idempotencyKey: string; | ||
}; | ||
|
||
export default SyncPolicyToIntegratedConnectionParams; |
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.
I'm a little bit confused about this because this is not a command that exists on the backend.
I see that we use this as the parameter type for both of the following commands
READ_COMMANDS.SYNC_POLICY_TO_QUICKBOOKS_ONLINE
READ_COMMANDS.SYNC_POLICY_TO_XERO
Are there other param types defined in the parameters
directly that is not part of the APIs?
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.
This is a common file for both since both would use the same list of parameters.
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.
should we create a separate file for each command? I think the pattern we use is a one type definition for each command. It's possible that the parameters for these commands to diverge in the future 😄
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.
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.
Updating this.
Reviewing shortly 👀 |
@hungvu193, I think this PR has been already been reviewed by another C+ 🤔 |
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.
🟢
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.
LGTM!
Screen.Recording.2024-05-16.at.06.33.24.mov
Screen.Recording.2024-05-16.at.06.32.51.mov
ah yeah, I only re-verify while Manan was out as we discuss here |
@ShridharGoel there are conflicts, please solve them when you can. Thanks. |
@lakchote Will update in a few hours. |
Any update? Thanks! |
33aeffc
@ShridharGoel I can see lint errors. Can you please fix them? Also while we might have the merge freeze? Can you check this thread on priority for potential merge conflicts? We're aiming to merge this asap as it is blocking some of our testing flows. |
@mananjadhav Sure. |
🚀 Deployed to staging by https://github.com/lakchote in version: 1.4.77-11 🚀
|
🚀 Deployed to staging by https://github.com/lakchote in version: 1.4.77-11 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.78-5 🚀
|
Details
Add sync functionality in Xero connection.
Fixed Issues
$ #41320
PROPOSAL: #41320 (comment)
Tests
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
Screenrecording_20240503_154025.mp4
iOS: Native
Screen.Recording.2024-05-03.at.2.44.39.PM.mov
iOS: mWeb Safari
Screen.Recording.2024-05-03.at.3.43.14.PM.mov
MacOS: Chrome / Safari
Screen.Recording.2024-05-03.at.2.41.27.PM.mov
MacOS: Desktop
Screen.Recording.2024-05-03.at.3.33.37.PM.mov