Open lanitochka17 opened 4 weeks ago
Triggered auto assignment to @sonialiap (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.
@sonialiap 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
[
{
"key": "policyID_${policyID}",
"onyxMethod": "merge",
"value": {
"harvesting": {
"enabled": false
},
"autoReporting": true,
"autoReportingFrequency": "immediate"
"pendingFields": {autoReporting: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE},
}
}
]
if the frequency is manual.
Workspace - "Delay submissions" turns of if the "Submission frequency" is set to "Manually"
The root cause of the problem is that when a user sets it to manual, the policy?.harvesting?.enabled
becomes false.
The policy?.harvesting?.enabled
is false because it checks whether the scheduled submission is enabled which won't be in this situation.
Hence, the condition that makes the isActive
in the WorkspaceWorkflowsPage
becomes false
when the auto-reporting frequency is manual.
Therefore, we must consider the autoReportingFrequency
if it is CONST.POLICY.AUTO_REPORTING_FREQUENCIES.MANUAL
.
Just like we did with the CONST.POLICY.AUTO_REPORTING_FREQUENCIES.INSTANT
.
So, let's change the isActive
logic to something simpler than the one below.
isActive: (((policy?.harvesting?.enabled && policy.autoReportingFrequency !== CONST.POLICY.AUTO_REPORTING_FREQUENCIES.INSTANT ) ?? (policy?.harvesting?.enabled && policy.autoReportingFrequency !== CONST.POLICY.AUTO_REPORTING_FREQUENCIES.MANUAL) ) && !hasDelayedSubmissionError) ?? false,
Job added to Upwork: https://www.upwork.com/jobs/~015bf509d8291c1690
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 (External
)
@sonialiap, @abdulrahuman5196 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
@abdulrahuman5196 what do you think of the above proposal?
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
Hi, I am back now since I was OOO for couple of days as posted in slack. Will work on review today.
checking now
Hi all, I dont see the Delay submissions option in the workflow? Do I need to be part of some beta or any specific type of workspace?
@sonialiap @abdulrahuman5196 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!
@abdulrahuman5196 You need to set canUseAllBetas: true.
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
@sonialiap, @abdulrahuman5196 Huh... This is 4 days overdue. Who can take care of this?
Hi @sonialiap Sorry for the delay, I have limited availability at the moment. So unassigning myself. Kindly reassign another C+ for review.
I can take this one @sonialiap
@sonialiap Huh... This is 4 days overdue. Who can take care of this?
❌ There was an error making the offer to @dukenv0307 for the Contributor role. The BZ member will need to manually hire the contributor.
@dukenv0307 added you as the C+
@Tony-MK @dominictb After choosing Manual
option, harvesting.enable
is false and frequency is immediate
. Do you think it's BE bug? If not, why don't we just remove the manual option, since we can toggle the delay submission instead of choosing Manual
?
@sonialiap Can you check this comment?
I think we need another internal member
🎀👀🎀 C+ reviewed
Triggered auto assignment to @roryabraham, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
@roryabraham Can you check my comment above? Thanks
@sonialiap @roryabraham @dukenv0307 this issue is now 4 weeks old, please consider:
Thanks!
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.80-1 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
"Delay submissions" should remain on
Actual Result:
"Delay submissions" turns of if the "Submission frequency" is set to "Manually"
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/Expensify/App/assets/78819774/a9771da7-3b1b-4576-b9fb-acc208f2f8c2
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @abdulrahuman5196