-
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
[Due for payment 2025-03-17] [$250] Sage Intacct - Preferred exporter remains the same after changing the role of admin to member #55729
Comments
Triggered auto assignment to @lschurr ( |
🚨 Edited by proposal-police: This proposal was edited at 2025-01-24 21:04:07 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Sage Intacct - Preferred exporter remains the same after changing the role of admin to member What is the root cause of that problem?We are displaying exporter config without checking if it is an admin
but we don't see it selected in the list when opening preferred exporter page because we only include list of admins of the workspace App/src/pages/workspace/accounting/intacct/export/SageIntacctPreferredExporterPage.tsx Line 31 in fc199fa
What changes do you think we should make in order to solve the problem?In updateWorkspaceMembersRole we should check if it is the preferred exporter (
These problems also for the other accounting integrations so similar fix can be applied. Similarly, this changes can be applied for the case of the admin member removal from a workspace if the user was the preferred exporter. What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?We can create tests for updateWorkspaceMembersRole to assert it properly updates exporter when the default exporter is demoted from admin role. What alternative solutions did you explore? (Optional)If we don't want to change the exporter to the owner at least we have to avoid showing the exporter in SageIntacctExportPage if it is not an admin because it will not currently be displayed in SageIntacctPreferredExporterPage as we only include admins in the list. |
Job added to Upwork: https://www.upwork.com/jobs/~021882884778254645916 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @dominictb ( |
@lanitochka17, how can an external contributor test an accounting system connected to the workspace? |
ProposalPlease re-state the problem that we are trying to solve in this issue.The preferred exporter in What is the root cause of that problem?The issue is that SageIntacctPreferredExporterPage is using App/src/pages/workspace/accounting/intacct/export/SageIntacctPreferredExporterPage.tsx Line 25 in 7ae69ff
App/src/pages/workspace/withPolicy.tsx Lines 57 to 65 in 7ae69ff
This variable is defined by App/src/pages/workspace/withPolicyConnections.tsx Lines 15 to 17 in 7ae69ff
and is needed to trigger the connection data fetch when the role changes. Without this variable, the exporter doesn't update as expected. In contrast, all the other pages for the account systems use App/src/pages/workspace/accounting/xero/export/XeroPreferredExporterSelectPage.tsx Line 26 in 7ae69ff
App/src/pages/workspace/accounting/netsuite/export/NetSuiteTaxPostingAccountSelectPage.tsx Line 21 in 7ae69ff
Line 24 in 7ae69ff
App/src/pages/workspace/accounting/qbo/export/QuickbooksPreferredExporterConfigurationPage.tsx Line 24 in 7ae69ff
, which correctly includes this variable and ensures the update is triggered when the role changes. What changes do you think we should make in order to solve the problem?Change ...
import type {WithPolicyConnectionsProps} from '@pages/workspace/withPolicyConnections';
...
function SageIntacctPreferredExporterPage({policy}: WithPolicyConnectionsProps) {
... What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
What alternative solutions did you explore? (Optional)N/A Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
@lschurr, @dominictb Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@ugogiordano If you don't have access to Sage Intacct then you won't be able to check this. |
@lschurr, @dominictb Huh... This is 4 days overdue. Who can take care of this? |
Just able to reproduce. Reviewing. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@lschurr, @dominictb Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
I need confirmation on the expected behavior. Context: The integration's Preferred exporter should always be a workspace admin. If the current preferred exporter's role is no longer an Admin, or get removed from the workspace, what should happen?
🎀👀🎀 |
Triggered auto assignment to @cristipaval, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@yuwenmemon, I see you know about Sage Intacct integration in NewDot. Could you please manage this one? 🙏 Feel free to reassign it to me if you're full. |
@FitseTLT's proposal LGTM 🎀👀🎀. Let's fallback to the workspace owner optimistically in this case. We need BE changes for the And don't forget to address these points:
|
Current assignee @yuwenmemon is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
📣 @dominictb 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @FitseTLT 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@dominictb What makes you say we need backend changes? From what I can see in the code we send onyx updates for this change... (Linking for my own reference, you won't be able to see this code) I'm even seeing these updates queued locally in my logs:
Can you please double check that you're indeed not getting an onyx update for the updated exporter? |
Oh wait... I see it now. It's spelled wrong in our server code |
That's why it was only for this integration |
Have a fix for the BE up. |
@yuwenmemon, @lschurr, @FitseTLT, @dominictb Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@FitseTLT we don't need to wait till BE changes are done. |
BE has been deployed to production! |
Setting @FitseTLT as the starred assignee now |
Will create the PR tomorrow |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.10-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2025-03-17. 🎊 For reference, here are some details about the assignees on this issue:
|
@dominictb @lschurr @dominictb The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.89-2
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): htad26+ri@gmail.com
Issue reported by: Applause - Internal Team
Action Performed:
Prerequisite
An account with a workspace connected to Sage Intacct
Expected Result:
The preferred exporter is changed back to the owner/admin of the workspace since only admins can be selected as preferred exporter
Actual Result:
The non-admin member is still selected as the preferred exporter even if it is not listed in the preferred exporter page. User has to manually change the exporter
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6722779_1737727149465.2025-01-24_16_49_00.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @lschurrThe text was updated successfully, but these errors were encountered: