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-03-26] [HOLD on E/E #347391][$500] [HIGH] for Collect: Show "Unapprove" report action in NewDot #36023

Closed
Beamanator opened this issue Feb 7, 2024 · 26 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@Beamanator
Copy link
Contributor

Beamanator commented Feb 7, 2024

Related to https://github.com/Expensify/Expensify/issues/364085

Flow:

Pre-testing steps

  1. Create a new collect policy on OldDot and;
    1. Enable scheduled submit with a frequency of Instant (this should happen by default with Expensify accounts, or accounts on paidPolicyInstantSubmit beta)
    2. Make sure the approval mode is "Submit & Approve"
    3. Invite an additional user to the policy to play the member role in these testing flows
  2. Run the following script in the chrome console (in OldDot, when the workspace Settings page is open) to enable the policy for workspace creation for a paid plan.
    p = Policy.getCurrent();
    p.policy.isPolicyExpenseChatEnabled = "true";
    p.save();
    

Test steps

  1. In OldDot: As submitter, make sure ^ new workspace is your "Active" / default workspace
  2. In OldDot: As submitter, create a report and add an expense
  3. In OldDot: As Admin, approve the report - then Unapprove the report
  4. In NewDot: As both accounts, view the expense report & verify you can see both of these report actions:
    1. <admin> final approved this report
    2. <admin> unapproved this report

Currently we're blocked on 4 ^ - the <admin> unapproved this report report action does not appear, even though the report action exists in Onyx

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~012cccf392c943b52d
  • Upwork Job ID: 1755224934075211776
  • Last Price Increase: 2024-02-07
@Beamanator Beamanator added External Added to denote the issue can be worked on by a contributor Daily KSv2 Help Wanted Apply this label when an issue is open to proposals by contributors labels Feb 7, 2024
@Beamanator Beamanator self-assigned this Feb 7, 2024
@melvin-bot melvin-bot bot changed the title [HIGH] Instant Submit for Collect: Show Report "Unapprove" report action in NewDot [$500] [HIGH] Instant Submit for Collect: Show Report "Unapprove" report action in NewDot Feb 7, 2024
Copy link

melvin-bot bot commented Feb 7, 2024

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

Copy link

melvin-bot bot commented Feb 7, 2024

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

@Beamanator Beamanator changed the title [$500] [HIGH] Instant Submit for Collect: Show Report "Unapprove" report action in NewDot [$500] [HIGH] Instant Submit for Collect: Show "Unapprove" report action in NewDot Feb 7, 2024
@Beamanator
Copy link
Contributor Author

Getting some feedback in slack first - internal channel - https://expensify.slack.com/archives/C02NZ2HGJAZ/p1707314650284219

@rojiphil
Copy link
Contributor

rojiphil commented Feb 7, 2024

Proposal

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

The UNAPPROVED action is not currently shown in the collect workspace in NEWDOT when an APPROVED report is unapproved.

What is the root cause of that problem?

Here we filter the type of actions that needs to be displayed. Currently, we only include APPROVED and SUBMITTED. Since we have not included UNAPPROVED action, this is not displayed.

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

We can solve this problem by adding another constant here for UNAPPROVED and update the line here like this to include UNAPPROVED action.

const isApprovedOrSubmittedReportAction = [CONST.REPORT.ACTIONS.TYPE.UNAPPROVED, CONST.REPORT.ACTIONS.TYPE.APPROVED, CONST.REPORT.ACTIONS.TYPE.SUBMITTED].some((type) => type === action.actionName);

We may also want to change the usage of variable isApprovedOrSubmittedReportAction to something more generic than specific.

What alternative solutions did you explore? (Optional)

@Beamanator
Copy link
Contributor Author

So far I like this plan ^ but I'm also waiting on a few internal discussions to wrap up before we move forward here

@Beamanator Beamanator removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 12, 2024
@melvin-bot melvin-bot bot added the Overdue label Feb 12, 2024
@Beamanator
Copy link
Contributor Author

(Removing Help Wanted while we wait - sorry this is taking a while)

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Feb 12, 2024
@Beamanator
Copy link
Contributor Author

still waiting

@melvin-bot melvin-bot bot removed the Overdue label Feb 15, 2024
@twisterdotcom twisterdotcom self-assigned this Feb 15, 2024
@twisterdotcom twisterdotcom changed the title [$500] [HIGH] Instant Submit for Collect: Show "Unapprove" report action in NewDot [HOLD on E/E #347391][$500] [HIGH] Instant Submit for Collect: Show "Unapprove" report action in NewDot Feb 15, 2024
@melvin-bot melvin-bot bot added the Overdue label Feb 19, 2024
@Beamanator
Copy link
Contributor Author

Hey @twisterdotcom , any chance you could take a look at this one today? 🙏

@melvin-bot melvin-bot bot removed the Overdue label Feb 19, 2024
@Beamanator
Copy link
Contributor Author

Oh now I see this is on hold for a wave8 issue - maybe we should update the project & make this a Weekly?

@twisterdotcom twisterdotcom added Weekly KSv2 and removed Daily KSv2 labels Feb 19, 2024
@melvin-bot melvin-bot bot added the Overdue label Feb 27, 2024
@twisterdotcom
Copy link
Contributor

Yup, sorry, we had those discussions and currently landed on the solution in the PR which is slightly different. I was trying to do this myself, but I reached out to a C+ for some help finishing it off.

@eh2077
Copy link
Contributor

eh2077 commented Mar 11, 2024

@twisterdotcom I followed the test steps #36023 (comment) but it seems my account has to be added into paidPolicyInstantSubmit beta to be able to approve or unapprove the expense instantly. Can you help to add my account ericwdev001+0311@gmail.com to the beta feature?

image image

@melvin-bot melvin-bot bot removed the Overdue label Mar 11, 2024
@twisterdotcom
Copy link
Contributor

Nice, added you! Might take up to an hour to show.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Mar 12, 2024
@hoangzinh
Copy link
Contributor

@twisterdotcom could you help to add me toiyeucuocsong99+ws@gmail.com to beta access as well? Thanks.

@twisterdotcom
Copy link
Contributor

Done! Again, could take an hour to show.

@Beamanator Beamanator changed the title [HOLD on E/E #347391][$500] [HIGH] [Instant Submit] for Collect: Show "Unapprove" report action in NewDot [HOLD on E/E #347391][$500] [HIGH] for Collect: Show "Unapprove" report action in NewDot Mar 15, 2024
Copy link

melvin-bot bot commented Mar 19, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Mar 19, 2024
@melvin-bot melvin-bot bot changed the title [HOLD on E/E #347391][$500] [HIGH] for Collect: Show "Unapprove" report action in NewDot [HOLD for payment 2024-03-26] [HOLD on E/E #347391][$500] [HIGH] for Collect: Show "Unapprove" report action in NewDot Mar 19, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Mar 19, 2024
Copy link

melvin-bot bot commented Mar 19, 2024

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

Copy link

melvin-bot bot commented Mar 19, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.54-4 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-03-26. 🎊

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

  • @hoangzinh requires payment (Needs manual offer from BZ)
  • @eh2077 requires payment (Needs manual offer from BZ)

@twisterdotcom
Copy link
Contributor

Payment Summary:

@github-project-automation github-project-automation bot moved this from Release 1: Spring 2024 (May) to Done in [#whatsnext] #wave-collect Mar 27, 2024
@eh2077
Copy link
Contributor

eh2077 commented Mar 28, 2024

@twisterdotcom I accepted the offer. Can you help to approve the payment please? Thanks.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Weekly KSv2 labels May 16, 2024
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 External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Projects
No open projects
Development

No branches or pull requests

5 participants