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

[HOLD for payment 2025-02-04] [$250] Report fields - Feature can be enabled in collect workspace #50472

Open
2 of 6 tasks
IuliiaHerets opened this issue Oct 8, 2024 · 86 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 External Added to denote the issue can be worked on by a contributor Internal Requires API changes or must be handled by Expensify staff Overdue

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Oct 8, 2024

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: v9.0.46-1
Reproducible in staging?: Y
Reproducible in production?: Y
Issue reported by: Applause Internal Team

Action Performed:

Precondition: user has Collect workspace.

  1. Go ws settings > More features
  2. Enable Accounting
  3. Go to Accounting > Connect QBO integration
  4. Disconnect QBO integration

Expected Result:

Report fields, as feature, available in Control workspace, disappeared from LHN.

Actual Result:

Report fields stays in LHN. User can access tab and add report filed to a collect workspace.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6628080_1728376180366.report_fields.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021844128989949063152
  • Upwork Job ID: 1844128989949063152
  • Last Price Increase: 2024-10-23
  • Automatic offers:
    • allgandalf | Reviewer | 104633600
    • mkzie2 | Contributor | 104633601
Issue OwnerCurrent Issue Owner: @slafortune
@IuliiaHerets IuliiaHerets added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 8, 2024
Copy link

melvin-bot bot commented Oct 8, 2024

Triggered auto assignment to @slafortune (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
Copy link
Author

We think that this bug might be related to #wave-control

@IuliiaHerets
Copy link
Author

@slafortune 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

@mkzie2
Copy link
Contributor

mkzie2 commented Oct 8, 2024

Edited by proposal-police: This proposal was edited at 2024-10-09 21:40:29 UTC.

Proposal

Please re-state the problem that we are trying to solve in this issue.

  • Report fields stays in LHN. User can access tab and add report filed to a collect workspace.

What is the root cause of that problem?

  • When removing any connection, we didn't turn off report field feature if it is not control policy:

function removePolicyConnection(policyID: string, connectionName: PolicyConnectionName) {

What changes do you think we should make in order to solve the problem?

  • Add an additional logic to line:
const isCollectWorkspace = policy.type === 'team';
    if (isCollectWorkspace && ['quickbooksOnline', 'xero', 'quickbooksDesktop'].includes(connectionName)) {
        optimisticData.push({
            onyxMethod: Onyx.METHOD.MERGE,
            key: `${ONYXKEYS.COLLECTION.POLICY}${policyID}`,
            value: {
                areReportFieldsEnabled: false,
                pendingFields: {
                    areReportFieldsEnabled: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE,
                },
            },
        });

        successData.push({
            onyxMethod: Onyx.METHOD.MERGE,
            key: `${ONYXKEYS.COLLECTION.POLICY}${policyID}`,
            value: {
                pendingFields: {
                    areReportFieldsEnabled: null,
                },
            },
        });

        failureData.push({
            onyxMethod: Onyx.METHOD.MERGE,
            key: `${ONYXKEYS.COLLECTION.POLICY}${policyID}`,
            value: {
                areReportFieldsEnabled: policy?.areReportFieldsEnabled,
                pendingFields: {
                    areReportFieldsEnabled: null,
                },
            },
        });
    }
  • BE should fix it as well. In detail, when we disconnect, BE needs to turn off report field feature as well.

@slafortune slafortune added the External Added to denote the issue can be worked on by a contributor label Oct 9, 2024
Copy link

melvin-bot bot commented Oct 9, 2024

Job added to Upwork: https://www.upwork.com/jobs/~021844128989949063152

@melvin-bot melvin-bot bot changed the title Report fields - Feature can be enabled in collect workspace [$250] Report fields - Feature can be enabled in collect workspace Oct 9, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 9, 2024
Copy link

melvin-bot bot commented Oct 9, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @allgandalf (External)

@allgandalf
Copy link
Contributor

allgandalf commented Oct 10, 2024

@slafortune , a thought:

  • We should never allow the toggle of report fields unless the workspace itself in on a control plan, it's a control plan only feature, can you take it to our slack #expense channel and tag me there? the expected result doesn't seem right, please tag me there too

Copy link

melvin-bot bot commented Oct 15, 2024

@slafortune, @allgandalf Eep! 4 days overdue now. Issues have feelings too...

@melvin-bot melvin-bot bot added the Overdue label Oct 15, 2024
@allgandalf
Copy link
Contributor

bump on ^ @slafortune

@melvin-bot melvin-bot bot removed the Overdue label Oct 16, 2024
@trjExpensify
Copy link
Contributor

Report fields are a control feature, moving this to #expense.

@slafortune
Copy link
Contributor

slafortune commented Oct 16, 2024

Perfect since everything Collect or Control is going to the Expenses Project

Sorry for my delay @allgandalf

We should never allow the toggle of report fields unless the workspace itself in on a control plan, it's a control plan only feature, can you take it to our slack #expense channel and tag me there? the expected result doesn't seem right, please tag me there too

Report fields unrelated to any accounting integrations are not supported on the Collect workspace
This bug had been related to the Collect workspace project since the QBO connection is allowed on the Collect workspace - which allows for report fields.

if connected to an accounting integration that is allowed on the collect workspace - report fields are enabled. When disconnecting - report fields should be removed.

@github-project-automation github-project-automation bot moved this from Polish to Done in [#whatsnext] #expense Oct 16, 2024
@slafortune slafortune reopened this Oct 16, 2024
@slafortune
Copy link
Contributor

Sorry - some keyboard shortcut closed that 😱

@slafortune slafortune moved this from Done to Polish in [#whatsnext] #expense Oct 16, 2024
@dangrous
Copy link
Contributor

Backend fix is on staging! I think you can hopefully move forward with testing the FE PR.

@allgandalf
Copy link
Contributor

Thanks a lot !, @mkzie2 please open the PR for review, also merge main

@melvin-bot melvin-bot bot added the Overdue label Dec 23, 2024
@allgandalf
Copy link
Contributor

lets prioritize this one @mkzie2

@mkzie2
Copy link
Contributor

mkzie2 commented Dec 24, 2024

On my list today.

Copy link

melvin-bot bot commented Dec 24, 2024

@dangrous, @slafortune, @allgandalf, @mkzie2 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 Overdue labels Dec 25, 2024
@slafortune
Copy link
Contributor

@mkzie2 when will you be able to get to this?

@mkzie2
Copy link
Contributor

mkzie2 commented Dec 30, 2024

@slafortune The PR was opened a long time ago #51717 and is under review now.

@dangrous
Copy link
Contributor

Anything y'all need to get that PR pushed along? Let me know! Would love to get this merged this week.

@allgandalf
Copy link
Contributor

Hopeful to get this one merged in a day or two....

@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels Jan 23, 2025
Copy link

melvin-bot bot commented Jan 23, 2025

This issue has not been updated in over 15 days. @dangrous, @slafortune, @allgandalf, @mkzie2 eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@mkzie2
Copy link
Contributor

mkzie2 commented Jan 23, 2025

PR was merged.

@dangrous
Copy link
Contributor

looks like this is on staging now!

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Monthly KSv2 labels Jan 28, 2025
@melvin-bot melvin-bot bot changed the title [$250] Report fields - Feature can be enabled in collect workspace [HOLD for payment 2025-02-04] [$250] Report fields - Feature can be enabled in collect workspace Jan 28, 2025
Copy link

melvin-bot bot commented Jan 28, 2025

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jan 28, 2025
Copy link

melvin-bot bot commented Jan 28, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.89-8 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-02-04. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Jan 28, 2025

@allgandalf @slafortune @allgandalf 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]

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Feb 3, 2025
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 External Added to denote the issue can be worked on by a contributor Internal Requires API changes or must be handled by Expensify staff Overdue
Projects
Status: LOW
Development

No branches or pull requests

9 participants