Repository navigation
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] |
| /** Collections of form field errors */ | ||
| errorFields?: OnyxCommon.ErrorFields; | ||
| }, | ||
| 'exporter' |
There was a problem hiding this comment.
Can you explain these changes?
There was a problem hiding this comment.
As u can see here
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.
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
@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 |
| /** Collections of form field errors */ | ||
| errorFields?: OnyxCommon.ErrorFields; | ||
| }, | ||
| 'exporter' |
There was a problem hiding this comment.
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
|
@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 |
|
✋ 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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.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