Open lanitochka17 opened 1 month ago
Triggered auto assignment to @danieldoglas (DeployBlockerCash
), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.
:wave: Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
@danieldoglas 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
We think that this bug might be related to #vip-vsp
RBR doesn't disappear from LHN after removing error message
Here we call clearPolicyRoomNameErrors
https://github.com/Expensify/App/blob/53f9e576808a7e6839c4d1f70a86242e4fcb9f10/src/pages/settings/Report/ReportSettingsPage.tsx#L76
and in clearPolicyRoomNameErrors
we only clear errorFields but not errors
https://github.com/Expensify/App/blob/c244fa19b0c53f99042281660d2275f17b07003c/src/libs/actions/Report.ts#L2220-L2229
and here when we fail we set errors
to common.genericErrorMessage
https://github.com/Expensify/App/blob/169a3aa3af1bc6f9b01976bb6132246fb892c87d/src/libs/actions/Report.ts#L665-L667
So the RCA is when "x" is pressed we clear errorFields but not errors
Solution 1 Instead of setting errors here set "errorFields" error to invalid Name https://github.com/Expensify/App/blob/169a3aa3af1bc6f9b01976bb6132246fb892c87d/src/libs/actions/Report.ts#L665-L667
Note:we can keep errors here too.
In clearPolicyRoomNameErrors
also clear errors or create a new function to use here
https://github.com/Expensify/App/blob/c244fa19b0c53f99042281660d2275f17b07003c/src/libs/actions/Report.ts#L2220-L2229
errors: {
reportName: 'null',
},
Doesn't seem blocker-worthy to me. Let's treat as a regular bug.
Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue.
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rojiphil (External
)
Triggered auto assignment to @muttmuure (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.
Catching up from OOO
Not overdue
@rojiphil bump
Will review tomorrow my day and share update
Instead of setting errors here set "errorFields" error to invalid Name
@Nodebrute Can you please explain why the errorFields
need to be explicitly set? Wouldn't this be set by BE?
@rojiphil, @danieldoglas, @muttmuure Eep! 4 days overdue now. Issues have feelings too...
@rojiphil @danieldoglas @muttmuure 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!
@rojiphil The backend is setting errorFields
In optimisticData we are setting errorFields
to null
https://github.com/Expensify/App/blob/d1d9dfa305c0eec107566cfef3a7d794ac146819/src/libs/actions/Report.ts#L632-L634
and even in clearPolicyRoomNameErrors
we are setting errorFields
to null
https://github.com/Expensify/App/blob/d1d9dfa305c0eec107566cfef3a7d794ac146819/src/libs/actions/Report.ts#L2228-L2230
but here in failure data we are setting errors
https://github.com/Expensify/App/blob/d1d9dfa305c0eec107566cfef3a7d794ac146819/src/libs/actions/Report.ts#L656-L658
So when we press 'x' clearPolicyRoomNameErrors
is called. It sets the errorFields
to null but errors
stays there. So in below code block we should also set errorFields
instead of errors
https://github.com/Expensify/App/blob/169a3aa3af1bc6f9b01976bb6132246fb892c87d/src/libs/actions/Report.ts#L665-L667
Thanks for the details and the proposal.
Your alternate solution (i.e. clearing errors
on clearPolicyRoomNameErrors
) is good enough to resolve the problem.
@Nodebrute proposal LGTM
🎀👀🎀 C+ reviewed
Current assignee @danieldoglas is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.
Assigned
Assigning @mountiny to see the end of this while I'm OOO
This issue has not been updated in over 15 days. @rojiphil, @danieldoglas, @mountiny, @muttmuure, @Nodebrute eroding to Monthly issue.
P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!
@Nodebrute @rojiphil lets try to wrap the PR up
Waiting for @rojiphil's response.
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.77-0 Reproducible in staging?: Y Reproducible in production?: N If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Issue reported by: Applause - Internal Team
Issue found when executing PR https://github.com/Expensify/App/pull/41826
Action Performed:
Expected Result:
RBR on LHN gets removed from LHN as well
Actual Result:
RBR stays on LHN even after removing error message
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/6e75cea5-a83b-4fde-b247-7bb71a228f5d
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @Nodebrute