-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[QBO] [$250] Workspace settings – “Members must tag all spend” is enabled when all tags are disabled #41309
Comments
Triggered auto assignment to @johncschuster ( |
We think this issue might be related to the #collect project. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Changes in “Members must tag all spend” and “Members must categorise all spend”. What is the root cause of that problem?New change based on this comment. In WorkspaceCategoriesSettingsPage,
Below is the code in WorkspaceTagsSettingsPage App/src/pages/workspace/tags/WorkspaceTagsSettingsPage.tsx Lines 63 to 68 in e0c12a5
What changes do you think we should make in order to solve the problem?Update isActive condition in WorkspaceCategoriesSettingsPage:
disabled condition:
Instead of this, add the below block to use ToggleSettingOptionRow:
If we want to have a check on whethere at least one tag is enabled, then we can defined hasEnabledOptions like this:
And then pass it to disabled:
Similarly, if we want, this logic can be kept in categories settings also (it is already available there). |
ProposalPlease re-state the problem that we are trying to solve in this issue."Members must tag all spend” is enabled when all tags are disabled" What is the root cause of that problem?We don't disable the tag switch if there are no enabled options: App/src/pages/workspace/tags/WorkspaceTagsSettingsPage.tsx Lines 64 to 68 in e0c12a5
What changes do you think we should make in order to solve the problem?We will add a check for enabled options here: <Switch
...
disabled={!policy?.areTagsEnabled || !hasEnabledOptions}
/> |
Proposal |
@johncschuster Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@johncschuster Still overdue 6 days?! Let's take care of this! |
Job added to Upwork: https://www.upwork.com/jobs/~01074744206851fea7 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
Hm, the bug here seems to be that we've toggled and locked required categories when the workspace is not connected to an accounting integration. @hayata-suenaga, do you agree the below is the expected behaviour? Categories
Tags
Required categories are enforced with an accounting integration because we have to have a category added to the expense to be able to export the expense to a corresponding account. |
@trjExpensify Would these be independent of whether there's at least one enabled tag/category or not? |
Yeah, enabling/disabling imported category/tag values don't inform the "members must categories/tag all spend" toggle. |
Proposal |
@ShridharGoel, this is not necessary as |
yes the requirements seem to be correct 😄
I wonder this is actually a bug 🤔 The switch for requiring categorization should be off when there is no active category to be used. Otherwise, submitters cannot submit expense reports (they are required to categorize expenses but there is no categories to select from). I think the bug description that @neonbhai provided seems to be correct. We're not disabling requiring tags when all tags are non-active. @trjExpensify, I think the issue in the context of the QBO project is that the user can disable call categories even when connected to QBO. So I believe there are two issues here:
Do you agree that these are the issues we should address? |
They can submit an expense still I believe, it just shows a violation that categories are required and they haven't added one. But cool, I'm fine with disabling the required toggle if all values have been disabled. So I think we can just address this one:
I think this is okay to allow them to do, otherwise it's super difficult to achieve the below which is very common for a QBO admin setting up the workspace:
If we prevented them from being able to bulk select > disable all of their category values, they'd have to individually click through 100s of accounts to turn them off. |
nice! then let's address this issue here
Because the change is small, I opened a PR myself based on @neonbhai's proposal. @rushatgabhane, please review this PR when you have time. 🙇 |
Issue not reproducible during KI retests. (First week) |
@mvtglobally, I was able to reproduce this on staging. Could you test it again, please? 😄 Screen.Recording.2024-05-13.at.1.08.36.PM.mov |
Issue is reproducible on build 1.4.73.1 Recording.475.mp4 |
issue still reproducible in PR |
Oh, the PR linked isn't fixing it? |
yes unless I'm doing something wrong - #42004 (comment) |
@rushatgabhane, I commented on the PR 😄 |
@rushatgabhane for C+ for this PR |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Payment Summary:Contributor+: @rushatgabhane $250 - paid via Manual Request |
@johncschuster hi, I may be eligible for compensation here as the PR was based on the proposal as mentioned here. Please take a look 🙇 |
$250 approved for @rushatgabhane |
@johncschuster, @rushatgabhane Eep! 4 days overdue now. Issues have feelings too... |
not overdue |
just waiting for payment? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
are we waiting for payment here or has the payment been issued? 😄 |
all done, issue can be closed |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: v1.4.68-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4524619
Email or phone of affected tester (no customers): [email protected]
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
Set up as required is locked when all tags and categories are disabled.
Actual Result:
Inconsistency between tags and categories settings. “Members must tag all spend” is enabled when all tags are disabled, but in categories setting “Members must categorize all spend” is locked when all categories are disabled.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6466258_1714458601941.Members_must_tag_all_spend.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @rushatgabhaneThe text was updated successfully, but these errors were encountered: