-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Fix - Sage Intacct - Preferred exporter remains the same after changing the role of admin to member #57430
Fix - Sage Intacct - Preferred exporter remains the same after changing the role of admin to member #57430
Conversation
@dominictb 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] |
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.
Let's make sure code changes are super concise.
src/types/onyx/Policy.ts
Outdated
/** Collections of form field errors */ | ||
errorFields?: OnyxCommon.ErrorFields; | ||
}, | ||
'exporter' |
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 you explain these changes?
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.
As u can see here
Line 92 in dfd9dae
pendingAction={PolicyUtils.settingsPendingAction([CONST.QUICKBOOKS_DESKTOP_CONFIG.EXPORTER], qbdConfig?.pendingFields)} |
we are using
pendingField.exporter
for QBD but the type doesn't have it, so I am adding it.
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.
To align with other connections' config type, let's extract the QBDExportConfig
and use it as keys for pending action. For example:
Line 1347 in dae7718
SageIntacctOfflineStateKeys | keyof SageIntacctSyncConfig | keyof SageIntacctAutoSyncConfig | keyof SageIntacctExportConfig |
@dominictb we are updating roles of multiple users, so the only condition we can avoid calling resetAccountingPreferredExporter is when the new role is admin in other cases there can be users in accountIDs list that are admins so it will be handled inside the function. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-03-06.at.01.56.00.movScreen.Recording.2025-03-06.at.01.53.45-compressed.movAndroid: mWeb ChromeScreen.Recording.2025-03-06.at.02.01.12.movScreen.Recording.2025-03-06.at.01.59.00.moviOS: NativeScreen.Recording.2025-03-06.at.01.35.19.moviOS: mWeb SafariScreen.Recording.2025-03-06.at.01.48.36.movMacOS: Chrome / SafariScreen.Recording.2025-03-06.at.00.32.34.movScreen.Recording.2025-03-06.at.00.34.27.movMacOS: DesktopScreen.Recording.2025-03-06.at.01.23.04.movScreen.Recording.2025-03-06.at.01.22.32.mov |
src/types/onyx/Policy.ts
Outdated
/** Collections of form field errors */ | ||
errorFields?: OnyxCommon.ErrorFields; | ||
}, | ||
'exporter' |
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.
To align with other connections' config type, let's extract the QBDExportConfig
and use it as keys for pending action. For example:
Line 1347 in dae7718
SageIntacctOfflineStateKeys | keyof SageIntacctSyncConfig | keyof SageIntacctAutoSyncConfig | keyof SageIntacctExportConfig |
@FitseTLT
Screen.Recording.2025-03-06.at.00.35.48.mov |
@dominictb this is not directly linked to this issue but do you still think we should filter-out pending delete admin employees from the list here? |
@FitseTLT Please help fix it & add corresponding test steps. |
Done |
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 🎀👀🎀
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/yuwenmemon in version: 9.1.10-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.10-6 🚀
|
Details
Fixed Issues
$ #55729
PROPOSAL: #55729 (comment)
Tests
Prerequisite
An account with a workspace connected to an Accounting Software: this test should be done for all 5 accounting integrations
Offline tests
Same as above
QA Steps
Same as above
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label 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
aa.mp4
Android: mWeb Chrome
aww.mp4
iOS: Native
ii.mp4
iOS: mWeb Safari
iww.mp4
MacOS: Chrome / Safari
ww.mp4
MacOS: Desktop
2025-02-25.23-39-49.mp4