Skip to content
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

[Awaiting Payment May 16th] [QBO] Ensure the actions to Add or Delete are not allowed on all imported coding pages #41274

Closed
6 tasks done
trjExpensify opened this issue Apr 30, 2024 · 23 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2

Comments

@trjExpensify
Copy link
Contributor

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: v1.4.68-0
Reproducible in staging?: Y
Reproducible in production?:
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @trjExpensify
Slack conversation: https://expensify.slack.com/archives/C036QM0SLJK/p1714438462878199?thread_ts=1714400674.229349&cid=C036QM0SLJK

Action Performed:

  1. Create a workspace on NewDot
  2. Go to More Features > Tags > Enable (you need this step for now because otherwise Tags won't show in the LHN after you connect to QBO to see the imported coding, apparently that's going to be worked on here)
  3. Enable Accounting in More Features as well
  4. Go to Accounting in the workspace settings LHN
  5. Connect to QBO
  6. Go to Categories
  7. Select a couple of category in the table
  8. Click the [2 selected v] button in the page header
  9. Observe the Delete categories button that shouldn't be there
  10. Close the RHP modal
  11. Click on a category in the table
  12. Observe the three dot overflow menu in the category settings page in the RHP that shouldn't be there
  13. Click the overflow menu
  14. Observe the Delete category menu item that shouldn't be there.
  15. Close the modal
  16. Go to the Tags page
  17. Observe the Add tag button in the page header that shouldn't be there
  18. Repeat steps 7-14 above and observe that the admin can also delete imported tag values

Expected Result:

When coding features (Categories, Tags, Taxes) are imported from QBO, you shouldn't be able to Add or Delete the imported values. As such:

  • The green Add X button should be hidden in the page header
  • The Delete X menu item should be hidden in the bulk selection menu, only Disable X || Enable X should be shown.
  • The overflow menu in the category setting page should be hidden as the only menu item within it is to Delete x which shouldn't be allowed

Note: Untested but likely true given the above so please check on dev, and make sure we apply the same fix to Taxes imported to the workspace as well.

Actual Result:

Admins can Add and Delete imported coding values when connected to QBO

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
N/A

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

2024-04-30_01-44-14.mp4

View all open jobs on GitHub

@trjExpensify trjExpensify added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 30, 2024
Copy link

melvin-bot bot commented Apr 30, 2024

Current assignee @trjExpensify is eligible for the Bug assigner, not assigning anyone new.

@trjExpensify
Copy link
Contributor Author

@hayata-suenaga
Copy link
Contributor

we need to fetch connections data on those pages. Let me create a custom hook to do that. We cannot use the existing HOC as that is going to break the offline pattern on those pages.

@trjExpensify
Copy link
Contributor Author

we need to fetch connections data on those pages. Let me create a custom hook to do that. We cannot use the existing HOC as that is going to break the offline pattern on those pages.

Out of curiosity, how are we hiding the Add category button already when connected to QBO? 🤔

image image

@hayata-suenaga
Copy link
Contributor

Out of curiosity, how are we hiding the Add category button already when connected to QBO? 🤔

because we're already fetching the connections data with HOC. But we decided to remove this HOC as it breaks the offline pattern on Categories and Tags pages.

I'm creating the custom hook so that we don't have to block the screen when the user is offline.

anyway, I can work on this issue while waiting for that PR to be merged.

@trjExpensify
Copy link
Contributor Author

Sounds good!

@trjExpensify
Copy link
Contributor Author

@hayata-suenaga did your PR also take care of imported tax rates as well?

@hayata-suenaga
Copy link
Contributor

hayata-suenaga commented May 7, 2024

My PR doesn't prevent the user form deleting taxes

@SzymczakJ is working on the PR linked above. @SzymczakJ can you handle the prevention of tax deletion when there is QBO connection (QBO connection and the country is not US) (i.e. there is QBO connection and tax import is enabled) both logic works

@trjExpensify
Copy link
Contributor Author

My PR doesn't prevent the user form deleting taxes

What about adding tax values manually as well?

@hayata-suenaga
Copy link
Contributor

hayata-suenaga commented May 8, 2024

My PR doesn't prevent the user form deleting taxes

What about adding tax values manually as well?

That's also something we have to do. Thank you for reminding me of that 🙇
commented on the PR

@trjExpensify
Copy link
Contributor Author

Couple of things to close this out, Melv:

@melvin-bot melvin-bot bot removed the Overdue label May 10, 2024
Copy link

melvin-bot bot commented May 10, 2024

@trjExpensify, @s77rt Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@hayata-suenaga
Copy link
Contributor

A PR follow-up from Hayata for removing Add tags when connected to an accounting solution

@trjExpensify, hiding Add tags button when there is an accounting connection is going to be handled in this PR

@melvin-bot melvin-bot bot added the Overdue label May 13, 2024
@trjExpensify
Copy link
Contributor Author

Hm, oh really? @SzymczakJ can you confirm?

@melvin-bot melvin-bot bot removed the Overdue label May 13, 2024
@hayata-suenaga
Copy link
Contributor

@trjExpensify, the following change from the linked PR makes the Add tags button hidden when there is an accounting connection 😄

Screenshot 2024-05-13 at 1 00 49 PM

@SzymczakJ can double confirm

@SzymczakJ
Copy link
Contributor

@SzymczakJ can you confirm?

I'm confirming 😃. I'll reopen that PR tomorrow morning

Copy link

melvin-bot bot commented May 14, 2024

@trjExpensify @s77rt this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@hayata-suenaga
Copy link
Contributor

@SzymczakJ can you confirm?

I'm confirming 😃. I'll reopen that PR tomorrow morning

@SzymczakJ, do you mean this PR that was closed? I took the screenshots above from the PR.

@melvin-bot melvin-bot bot added the Overdue label May 15, 2024
@trjExpensify
Copy link
Contributor Author

Yep, we're working through this PR now: #42192

The merge free branch getting merged closed the original one.

@melvin-bot melvin-bot bot removed the Overdue label May 15, 2024
@trjExpensify trjExpensify changed the title [QBO] Ensure the actions to Add or Delete are not allowed on all imported coding pages [Awaiting Payment May 16th] [QBO] Ensure the actions to Add or Delete are not allowed on all imported coding pages May 15, 2024
@trjExpensify trjExpensify added the Awaiting Payment Auto-added when associated PR is deployed to production label May 15, 2024
@trjExpensify
Copy link
Contributor Author

The PR for this issue was deployed and the taxes follow-up is being taken care of in Xero, so we're good to pay this tomorrow and close it out.

@melvin-bot melvin-bot bot added the Overdue label May 20, 2024
@trjExpensify
Copy link
Contributor Author

Alright, so payment summary:

I've sent an offer.

@melvin-bot melvin-bot bot removed the Overdue label May 20, 2024
@s77rt
Copy link
Contributor

s77rt commented May 20, 2024

@trjExpensify Accepted! Thanks!

@trjExpensify
Copy link
Contributor Author

Paid!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2
Projects
Archived in project
Development

No branches or pull requests

4 participants