You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for Payment 2024-10-07][$250] Import categories - Import spreadsheet option is available when workspace is connected to QBO #48913
Version Number: 9.0.31-14 Reproducible in staging?: Y Reproducible in production?: Y Email or phone of affected tester (no customers):applausetester+kh010901@applause.expensifail.com Issue reported by: Applause Internal Team
Action Performed:
Precondition:
Workspace is connected to QBO.
Go to staging.new.expensify.com
Go to workspace settings > Categories.
Click 3-dot menu.
Click Import spreadsheet.
Expected Result:
Import spreadsheet option should be hidden when there is connection in the workspace, as the categories are imported from the connection.
Actual Result:
Import spreadsheet option is available when workspace is connected to QBO
@abekkala FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
If we already connected an accounting, we also need to display the not found page in ImportCategoriesPage and ImportedCategoriesPage page. We can display a helpful message that help user know that they already connected an accounting and cannot import category
What alternative solutions did you explore? (Optional)
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.
changed the title [-]Import categories - Import spreadsheet option is available when workspace is connected to QBO[/-][+][$250] Import categories - Import spreadsheet option is available when workspace is connected to QBO[/+]on Sep 12, 2024
📣 @Nodebrute 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!
Offer link Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻
Keep in mind: Code of Conduct | Contributing 📖
The production deploy automation failed: This should be on [HOLD for Payment 2024-10-07] according to #49855 production deploy checklist, confirmed in #49545 (comment)
changed the title [-][$250] Import categories - Import spreadsheet option is available when workspace is connected to QBO[/-][+][HOLD for Payment 2024-10-07][$250] Import categories - Import spreadsheet option is available when workspace is connected to QBO[/+]on Oct 4, 2024
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
[@thesahindia ] The PR that introduced the bug has been identified. Link to the PR:
[@thesahindia ] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@thesahindia ] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
[@thesahindia ] Determine if we should create a regression test for this bug.
[@thesahindia ] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@abekkala] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Activity
melvin-bot commentedon Sep 10, 2024
Triggered auto assignment to @abekkala (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.IuliiaHerets commentedon Sep 10, 2024
@abekkala FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
IuliiaHerets commentedon Sep 10, 2024
We think that this bug might be related to #wave-control
Nodebrute commentedon Sep 10, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Import spreadsheet option is available when workspace is connected to QBO
What is the root cause of that problem?
We are not adding any condition here to check this
App/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx
Lines 302 to 312 in 83865b6
What changes do you think we should make in order to solve the problem?
We can conditionally push this item only if !hasAccountingConnection
App/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx
Lines 302 to 312 in 83865b6
What alternative solutions did you explore? (Optional)
nkdengineer commentedon Sep 10, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
We always show the import sheet option without checking we connect an accounting or not
App/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx
Line 300 in f642361
What changes do you think we should make in order to solve the problem?
We should use the same way we display the add category button
App/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx
Line 248 in f642361
App/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx
Line 300 in f642361
If we already connected an accounting, we also need to display the not found page in
ImportCategoriesPageandImportedCategoriesPagepage. We can display a helpful message that help user know that they already connected an accounting and cannot import categoryWhat alternative solutions did you explore? (Optional)
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.
melvin-bot commentedon Sep 12, 2024
Job added to Upwork: https://www.upwork.com/jobs/~021834239004653240865
[-]Import categories - Import spreadsheet option is available when workspace is connected to QBO[/-][+][$250] Import categories - Import spreadsheet option is available when workspace is connected to QBO[/+]melvin-bot commentedon Sep 12, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia (
External)thesahindia commentedon Sep 13, 2024
@Nodebrute's proposal was first so I will prefer them!
🎀 👀 🎀 C+ reviewed
13 remaining items
melvin-bot commentedon Sep 18, 2024
📣 @Nodebrute 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!
Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻
Keep in mind: Code of Conduct | Contributing 📖
Nodebrute commentedon Sep 19, 2024
I’ll raise a PR in a few hours.
abekkala commentedon Sep 20, 2024
@Nodebrute can you link the PR please?
Nodebrute commentedon Sep 20, 2024
The PR is ready for review.
Nodebrute commentedon Oct 3, 2024
The production deploy automation failed: This should be on [HOLD for Payment 2024-10-07] according to #49855 production deploy checklist, confirmed in #49545 (comment)
[-][$250] Import categories - Import spreadsheet option is available when workspace is connected to QBO[/-][+][HOLD for Payment 2024-10-07][$250] Import categories - Import spreadsheet option is available when workspace is connected to QBO[/+]abekkala commentedon Oct 4, 2024
PAYMENT SUMMARY FOR OCT 07
abekkala commentedon Oct 4, 2024
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
thesahindia commentedon Oct 7, 2024
It was implemented like this. We probably forgot about this case.
We should add a test case. The steps are below:
Precondition: Workspace is connected to QBO.
abekkala commentedon Oct 7, 2024
PAYMENT SUMMARY FOR OCT 07
garrettmknight commentedon Oct 8, 2024
$250 approved for @thesahindia