-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Due for payment 2025-05-28] [$250] Can't add expense to processing report with delay submissions #58287
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
Comments
Triggered auto assignment to @laurenreidexpensify ( |
🚨 Edited by proposal-police: This proposal was edited at 2025-03-19 07:18:21 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.You don't see an option to add an expense to a processing report with delay submissions. Option available on same report in OldDot What is the root cause of that problem?When checking if current report can add expense, we have a chain of logics: Lines 7669 to 7673 in eaf171e
Lines 7597 to 7600 in eaf171e
Lines 2135 to 2137 in 6286ab0
with Lines 457 to 459 in 6286ab0
If delayed submission is enabled and frequency is not "instant" the logics will return What changes do you think we should make in order to solve the problem?Create a util function in function isDelayedSubmissionsEnabled(policy: OnyxInputOrEntry<Policy>): boolean {
return policy?.autoReporting === true && getCorrectedAutoReportingFrequency(policy) !== CONST.POLICY.AUTO_REPORTING_FREQUENCIES.INSTANT;
} Then we can modify the logics to return Lines 2135 to 2137 in eaf171e
if (isReportInGroupPolicy(moneyRequestReport) && isProcessingReport(moneyRequestReport) && isDelayedSubmissionsEnabled(getPolicy(moneyRequestReport?.policyID))) {
return true;
} Tested locally and I think BE already handled this case well so we don't need any changes What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?We can adđ more test cases considering delayed submissions to existing App/tests/unit/ReportUtilsTest.ts Line 638 in eaf171e
What alternative solutions did you explore? (Optional)Or we can delete this logic: Lines 2135 to 2137 in eaf171e
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
Added a note to the expected result section from this discussion. The changes here should only apply to an expense you manually attempt to add to a processing report with delayed submissions. A new expense you create outside of a report (either manually or by emailing in) should still not be auto-reported to a processing report with delayed submissions, same as now. |
Job added to Upwork: https://www.upwork.com/jobs/~021901586876650156357 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @DylanDylann ( |
@daledah Could you take a look at this requirement? |
I'm not sure if the option to email in expenses even exists in ND yet. With manually option, I interpret it as "Create expense using global create button", then we already handle the new expense would be auto-reported to any unsubmitted report or create new report if there are none. |
Yeah, it does. Forward a receipt to [email protected] and it'll get reported on your default workspace.
Yeah, creating an expense anywhere other than from the menu inside the |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@trjExpensify Can we test receipt forwarding using test accounts/test environments? If not, is there a way I can test this feature to update the proposal if needed? |
@DylanDylann Eep! 4 days overdue now. Issues have feelings too... |
I'm not sure, you can ask in #expensify-open-source. Minimally though, you should be able to test in dev the global create > create expense flow. Also, the workspace chat > create expense flow. |
@trjExpensify I tested with those flows and it should work fine without changes required. |
@laurenreidexpensify @DylanDylann this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
Cool, @DylanDylann you happy to move this on to a secondary review of the proposal? |
@DylanDylann Still overdue 6 days?! Let's take care of this! |
Checking again now |
@cristipaval While implementing the PR I discovered a BE bug, commented here More info on this Bug: Steps here:
In step 2, after create the expense, WS chat's In step 4, after submitting expense, WS chat's In step 5, after create a new expense in the processing report, BE sends In step 6, in small screen we don't call another We need a BE fix to return |
@daledah thanks for raising this issue. Does this bug block the current PR? I wonder if we could open a new issue and make it internal |
I think it does, because the bug is only reproduced within the PR changes, so it would be counted as a regression from my PR. cc @DylanDylann for second opinion here. |
ah, I see, I'll see if I can have a look today in the backend bug |
@cristipaval did you get to look at all here? |
No, the |
@daledah I investigated this, and what I found is that when the App hits the So, I think we should fix 2 things:
Could you please confirm? 🙏 |
@cristipaval Sorry for the delay, I believe these changes are correct to fix the issue. |
I have a WIP PR. I hope it will be ready for review today |
The PR is in review. |
@daledah, the backend should be fixed. Could you please test? |
@cristipaval The bug is fixed 👍 |
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. |
Hmm. I think the automation failed to apply the Reviewing label and add the payment summary because I forgot to make @daledah the issue's owner. Here's the current status:
|
@cristipaval I don't think it should be a regression, because IIRC the change reports feature come after this issue and PR is created. cc @DylanDylann |
ah yes, I agree 👍 it is also out of the original scope of the issue. If you don't mind, I'll keep you assigned to that issue anyway, given that you already have context. |
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.47-6 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-05-28. 🎊 For reference, here are some details about the assignees on this issue:
|
@DylanDylann @laurenreidexpensify @DylanDylann 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] |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test Proposal Template
Regression Test ProposalPrecondition:Test:Do we agree 👍 or 👎 |
Uh oh!
There was an error while loading. Please reload this page.
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: 9.1.12-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @joekaufmanexpensify
Slack conversation (hyperlinked to channel name): @Expensify Bugs
Action Performed:
Expected Result:
You should see the option to create an expense on the processing report. This is possible with delay submissions in OldDot.
Note: this should only apply to expenses you manually attempt to add to a specific report. If you create a new expense that is auto-reported (or email an expense in), it still should not be auto-reported to a processing report with delayed submit after these changes.
Actual Result:
You don't see an option to add an expense to a processing report with delay submissions. Option available on same report in OldDot
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
2025-03-12_09-26-36.mp4
Recording.1047.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @laurenreidexpensifyThe text was updated successfully, but these errors were encountered: