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 2023-10-18] [Wave 6: Drafts] Add the autoreporting and submitted state as const to the App #28759

Closed
mountiny opened this issue Oct 3, 2023 · 13 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Internal Requires API changes or must be handled by Expensify staff NewFeature Something to build that is a new item.

Comments

@mountiny
Copy link
Contributor

mountiny commented Oct 3, 2023

Part of https://github.com/Expensify/Expensify/issues/308213

Coming from the doc here, we have couple of constants which will need to be added to the App to support the drafts and its functionality.

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01e2c7ac503d38cdb4
  • Upwork Job ID: 1709977346141700096
  • Last Price Increase: 2023-10-05
@mountiny mountiny added the Weekly KSv2 label Oct 3, 2023
@mountiny mountiny self-assigned this Oct 3, 2023
@puneetlath puneetlath changed the title Wave6 - Drafts - Add the autoreporting and submitted state as const to the App. [Wave 6: Drafts] Add the autoreporting and submitted state as const to the App. Oct 4, 2023
@rezkiy37
Copy link
Contributor

rezkiy37 commented Oct 5, 2023

Hi, I’m Michael (Mykhailo) from Callstack and I would like to work in this issue.

@rezkiy37
Copy link
Contributor

rezkiy37 commented Oct 5, 2023

@mountiny, I assume that we need to extend:

  1. Policy.ts with AUTO_REPORTING_FREQUENCIES. So, how the backend call this key in a policy object?
  2. OriginalMessage.ts with a new type -OriginalMessageSubmitted. Am I right? What properties does OriginalMessageSubmitted have?

Either it is a part of - #28758?

@mountiny
Copy link
Contributor Author

mountiny commented Oct 5, 2023

Those sounds correct yeah, catching up with other things now, will tyr to get back to this asap

@puneetlath puneetlath added Internal Requires API changes or must be handled by Expensify staff NewFeature Something to build that is a new item. labels Oct 5, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 5, 2023

Current assignee @puneetlath is eligible for the NewFeature assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Oct 5, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 5, 2023

Triggered auto assignment to Contributor Plus for review of internal employee PR - @mollfpr (Internal)

@rezkiy37
Copy link
Contributor

rezkiy37 commented Oct 6, 2023

Also, looks like @waterim is adding the submitted state within his PR - #28947.

@mountiny
Copy link
Contributor Author

mountiny commented Oct 6, 2023

actionName of the report action is SUBMITTED needs to be added to report.action.type here

App/src/CONST.ts

Lines 476 to 493 in cbb069c

ACTIONS: {
LIMIT: 50,
TYPE: {
APPROVED: 'APPROVED',
ADDCOMMENT: 'ADDCOMMENT',
CLOSED: 'CLOSED',
CREATED: 'CREATED',
TASKEDITED: 'TASKEDITED',
TASKCANCELLED: 'TASKCANCELLED',
IOU: 'IOU',
MODIFIEDEXPENSE: 'MODIFIEDEXPENSE',
REIMBURSEMENTQUEUED: 'REIMBURSEMENTQUEUED',
RENAMED: 'RENAMED',
CHRONOSOOOLIST: 'CHRONOSOOOLIST',
TASKCOMPLETED: 'TASKCOMPLETED',
TASKREOPENED: 'TASKREOPENED',
REPORTPREVIEW: 'REPORTPREVIEW',
POLICYCHANGELOG: {

As far as the originalMessage type goes, I would keep it as unknown for now. I think there can be lots of different shapes depending on the particular policy set up

@mountiny
Copy link
Contributor Author

mountiny commented Oct 6, 2023

For the AUTO_REPORTING_FREQUENCIES, not sure if I understand your question.

We will have to add these two keys to the Policy type:

   'autoReporting' => $policyData['autoReporting'] ?? false,
   'autoReportingFrequency' => $policyData['autoReportingFrequency'] ?? 

And possibly create a new autoReportingFrequency enum using the options you see in the doc

@mountiny mountiny changed the title [Wave 6: Drafts] Add the autoreporting and submitted state as const to the App. [Wave 6: Drafts] Add the autoreporting and submitted state as const to the App Oct 6, 2023
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Oct 6, 2023
@melvin-bot melvin-bot bot changed the title [Wave 6: Drafts] Add the autoreporting and submitted state as const to the App [HOLD for payment 2023-10-18] [Wave 6: Drafts] Add the autoreporting and submitted state as const to the App Oct 11, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Oct 11, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 11, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 11, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.80-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 2023-10-18. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

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

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot melvin-bot bot removed the Weekly KSv2 label Oct 17, 2023
@melvin-bot melvin-bot bot added the Daily KSv2 label Oct 17, 2023
@mollfpr
Copy link
Contributor

mollfpr commented Oct 18, 2023

I'm not due any compensation here, so I'll un-assigning myself ✋

@mollfpr mollfpr removed their assignment Oct 18, 2023
@mountiny
Copy link
Contributor Author

Can be closed

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 Internal Requires API changes or must be handled by Expensify staff NewFeature Something to build that is a new item.
Projects
No open projects
Development

No branches or pull requests

4 participants