You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$1000] [HOLD for payment 2023-08-08] Dev: Web - Console error on create new workspace #23638
Console error appears (Invalid prop reports.report_5370990936798009.writeCapability of value daily supplied to ReportScreenWrapper, expected one of ["all","admins"].
)
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number: Dev 1.3.45-8 Reproducible in staging?: no Reproducible in production?: no 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 Notes/Photos/Videos: Any additional supporting documentation
Please re-state the problem that we are trying to solve in this issue.
Web - Console error on create new workspace
What is the root cause of that problem?
We are missing writeCapability param when we call buildOptimisticChatReport here which makes CONST.REPORT.NOTIFICATION_PREFERENCE.DAILY becomes writeCapability param and that is an invalid value for writeCapability and then console error appear
Please re-state the problem that we are trying to solve in this issue.
Console error for new workspace, request money action & child report navigation
What is the root cause of that problem?
It is a regression from PR #21950 where we have added an extra param writeCapability for the function buildOptimisticChatReport but not passed from all required buildOptimisticChatReport called occurrences.
changed the title [-][HOLD for payment 2023-08-08] Dev: Web - Console error on create new workspace[/-][+][$1000] [HOLD for payment 2023-08-08] Dev: Web - Console error on create new workspace[/+]on Aug 8, 2023
Activity
melvin-bot commentedon Jul 26, 2023
Triggered auto assignment to @laurenreidexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jul 26, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)dukenv0307 commentedon Jul 26, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Web - Console error on create new workspace
What is the root cause of that problem?
We are missing
writeCapabilityparam when we callbuildOptimisticChatReporthere which makesCONST.REPORT.NOTIFICATION_PREFERENCE.DAILYbecomeswriteCapabilityparam and that is an invalid value forwriteCapabilityand then console error appearApp/src/libs/ReportUtils.js
Lines 2001 to 2013 in 1fac96b
What changes do you think we should make in order to solve the problem?
We should add
writeCapabilityparam asCONST.REPORT.WRITE_CAPABILITIES.ALLbefore this lineApp/src/libs/ReportUtils.js
Line 2013 in 1fac96b
What alternative solutions did you explore? (Optional)
Pujan92 commentedon Jul 26, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Console error for new workspace, request money action & child report navigation
What is the root cause of that problem?
It is a regression from PR #21950 where we have added an extra param
writeCapabilityfor the functionbuildOptimisticChatReportbut not passed from all requiredbuildOptimisticChatReportcalled occurrences.https://github.com/Expensify/App/pull/21950/files#diff-65c096044d5f69b35bcdec14c99c4fda4580759df9b1a7c36650d58eea276f1dR1763
App/src/libs/ReportUtils.js
Lines 2002 to 2014 in 1fac96b
App/src/components/ReportActionItem/MoneyRequestAction.js
Lines 100 to 115 in 1fac96b
App/src/libs/actions/Report.js
Lines 581 to 593 in 3d22f59
What changes do you think we should make in order to solve the problem?
We need to pass
writeCapabilityparam with the correct value in all 3 places.rezkiy37 commentedon Jul 28, 2023
Hi, I’m Michael (Mykhailo) from Callstack and I would like to work in this issue, because I am the author of the broken PR.
amyevans commentedon Jul 28, 2023
Self-assigning since this is a regression from #21456
19 remaining items
[-][HOLD for payment 2023-08-08] Dev: Web - Console error on create new workspace[/-][+][$1000] [HOLD for payment 2023-08-08] Dev: Web - Console error on create new workspace[/+]melvin-bot commentedon Aug 8, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01db31db71b4efd7d9
melvin-bot commentedon Aug 8, 2023
Current assignee @laurenreidexpensify is eligible for the External assigner, not assigning anyone new.
melvin-bot commentedon Aug 8, 2023
Current assignee @mananjadhav is eligible for the External assigner, not assigning anyone new.
laurenreidexpensify commentedon Aug 8, 2023
Payment Preparation Summary:
gadhiyamanan commentedon Aug 8, 2023
@laurenreidexpensify offer accepted, thanks
ayazhussain79 commentedon Aug 8, 2023
@laurenreidexpensify offer accepted, Thank you
mananjadhav commentedon Aug 8, 2023
@laurenreidexpensify there is no payment for me, this was a regression. Payment will be handled in the policy-admin issue.
laurenreidexpensify commentedon Aug 8, 2023
Payment Summary:
laurenreidexpensify commentedon Aug 8, 2023
Closing out as the regression testing will be handled in the original issue