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 2024-11-18] [Workspace Chats for All] Default QAB to primary workspace if no value #50728

Closed
puneetlath opened this issue Oct 14, 2024 · 23 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 NewFeature Something to build that is a new item.

Comments

@puneetlath
Copy link
Contributor

puneetlath commented Oct 14, 2024

In #49344 we are going to make it possible to submit to any workspace, even if you don't have the workspace chat locally.

We also want to make it so that any user that is a member of a policy has a default value for their QAB. So what we should do is update the QAB behavior so that if the nvp doesn't have any data set, and the user is on any group policies, then we set the default value for the QAB to be to submit to their primary group policy, which is stored in nvp_expensify_activePolicyID.

Slack discussion: https://expensify.slack.com/archives/C07NMDKEFMH/p1728585368177889?thread_ts=1728418936.029729&cid=C07NMDKEFMH

Issue OwnerCurrent Issue Owner: @puneetlath
@puneetlath puneetlath added Weekly KSv2 NewFeature Something to build that is a new item. labels Oct 14, 2024
Copy link

melvin-bot bot commented Oct 14, 2024

Triggered auto assignment to @mallenexpensify (NewFeature), see https://stackoverflowteams.com/c/expensify/questions/14418#:~:text=BugZero%20process%20steps%20for%20feature%20requests for more details. Please add this Feature request to a GH project, as outlined in the SO.

Copy link

melvin-bot bot commented Oct 14, 2024

⚠️ It looks like this issue is labelled as a New Feature but not tied to any GitHub Project. Keep in mind that all new features should be tied to GitHub Projects in order to properly track external CAP software time ⚠️

Copy link

melvin-bot bot commented Oct 14, 2024

Triggered auto assignment to Design team member for new feature review - @shawnborton (NewFeature)

@ishpaul777
Copy link
Contributor

👋 I'll take this after #49344

@flaviadefaria flaviadefaria changed the title [HOLD #49344] Default QAB to primary workspace if no value [Workspace Chats for All] [HOLD #49344] Default QAB to primary workspace if no value Oct 21, 2024
@puneetlath puneetlath changed the title [Workspace Chats for All] [HOLD #49344] Default QAB to primary workspace if no value [Workspace Chats for All] Default QAB to primary workspace if no value Oct 21, 2024
@puneetlath
Copy link
Contributor Author

@ishpaul777 taking this off hold now.

@puneetlath puneetlath added Daily KSv2 and removed Weekly KSv2 labels Oct 21, 2024
@melvin-bot melvin-bot bot added the Overdue label Oct 23, 2024
@puneetlath puneetlath added Weekly KSv2 and removed Daily KSv2 labels Oct 23, 2024
@melvin-bot melvin-bot bot removed the Overdue label Oct 23, 2024
@puneetlath
Copy link
Contributor Author

Back to weekly. We had to revert the previous PR.

@puneetlath puneetlath changed the title [Workspace Chats for All] Default QAB to primary workspace if no value [Workspace Chats for All][HOLD #49344] Default QAB to primary workspace if no value Oct 23, 2024
@trjExpensify
Copy link
Contributor

trjExpensify commented Oct 29, 2024

We also want to make it so that any user that is a member of a policy has a default value for their QAB. So what we should do is update the QAB behavior so that if the nvp doesn't have any data set, and the user is on any group policies, then we set the default value for the QAB to be to submit to their primary group policy, which is stored in nvp_expensify_activePolicyID

Confirming we'll set this to submitScan on the primary workspace if no value, right?

@puneetlath puneetlath changed the title [Workspace Chats for All][HOLD #49344] Default QAB to primary workspace if no value [Workspace Chats for All] Default QAB to primary workspace if no value Oct 31, 2024
@puneetlath
Copy link
Contributor Author

Ok, after discussion, we're going to take a slightly different direction here. Let's only default the QAB if the user:

  • has a group workspace as their primary policy
  • that workspace has isPolicyExpenseChatEnabled=true
  • does not already have a QAB NVP value

Given that. I have taken this off hold and we can go ahead and implement it.

@flaviadefaria
Copy link
Contributor

flaviadefaria commented Oct 31, 2024

@puneetlath, what about setting it to submitScan on the primary workspace if there is no value as @trjExpensify mentioned above? Also should we make this a daily?

@puneetlath
Copy link
Contributor Author

Ah yes, that's what I meant to convey with what I said. We will set it to submitScan on the primary workspace if the primary user meets the criteria in the list:

  • user has a group workspace as their primary policy
  • that workspace has isPolicyExpenseChatEnabled=true
  • user does not already have a QAB NVP value

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Weekly KSv2 labels Nov 1, 2024
@dukenv0307
Copy link
Contributor

@puneetlath Can you assign me to this issue? Thanks

@flaviadefaria flaviadefaria added Daily KSv2 and removed Weekly KSv2 labels Nov 11, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Nov 11, 2024
@melvin-bot melvin-bot bot changed the title [Workspace Chats for All] Default QAB to primary workspace if no value [HOLD for payment 2024-11-18] [Workspace Chats for All] Default QAB to primary workspace if no value Nov 11, 2024
Copy link

melvin-bot bot commented Nov 11, 2024

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Nov 11, 2024
Copy link

melvin-bot bot commented Nov 11, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.59-3 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 2024-11-18. 🎊

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

  • @ishpaul777 requires payment (Needs manual offer from BZ)
  • @dukenv0307 requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Nov 11, 2024

BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@ishpaul777 / @dukenv0307] Please propose regression test steps to ensure the new feature will work correctly on production in further releases.
  • [@puneetlath] Link the GH issue for creating/updating the regression test once above steps have been agreed upon.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Nov 18, 2024
Copy link

melvin-bot bot commented Nov 18, 2024

Payment Summary

Upwork Job

BugZero Checklist (@puneetlath)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@puneetlath
Copy link
Contributor Author

@dukenv0307 what do you think about adding a regression test here?

@puneetlath
Copy link
Contributor Author

@ishpaul777 offer here: https://www.upwork.com/nx/wm/offer/104952640
@dukenv0307 offer here: https://www.upwork.com/nx/wm/offer/104952651

Please ping me on this issue when you've accepted them.

@ishpaul777
Copy link
Contributor

Accepted Thanks!

@puneetlath
Copy link
Contributor Author

@ishpaul777 has been paid.

@dukenv0307
Copy link
Contributor

BugZero Checklist:

  • [Contributor] Classify the bug:
Bug classification

Source of bug:

  • 1a. Result of the original design (eg. a case wasn't considered)
  • 1b. Mistake during implementation
  • 1c. Backend bug
  • 1z. Other: New feature

Where bug was reported:

  • 2a. Reported on production
  • 2b. Reported on staging (deploy blocker)
  • 2c. Reported on a PR
  • 2z. Other:

Who reported the bug:

  • 3a. Expensify user
  • 3b. Expensify employee
  • 3c. Contributor
  • 3d. QA
  • 3z. Other:
  • [Contributor] 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: This is the new feature

  • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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.

    Link to discussion: N/A

  • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again. Yes

Regression Test Proposal Template
  • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

    Link to issue:

Regression Test Proposal

Test:

  1. Sign up with a new account and complete the onboarding process
  2. Create a new workspace
  3. Open FAB "+" menu, Verify that the Scan receipt QAB is shown

Do we agree 👍 or 👎

@dukenv0307
Copy link
Contributor

@dukenv0307 offer here: https://www.upwork.com/nx/wm/offer/104952651

@puneetlath I will request payment in NewDot, thanks.

@puneetlath
Copy link
Contributor Author

Regression test issue: https://github.com/Expensify/Expensify/issues/446312

Payment summary:

Thanks everyone!

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 Daily KSv2 NewFeature Something to build that is a new item.
Projects
Development

No branches or pull requests

8 participants