Closed mvtglobally closed 1 year ago
Triggered auto assignment to @conorpendergrast (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details.
Platforms
in OP are β
)Yep, reproduced!
@thienlnam I think this should be over to you! I'll label it Internal to get the ball rolling, and will also then assign you too
Job added to Upwork: https://www.upwork.com/jobs/~012e1b763b4e7b70a1
If I'm wrong, let me know!
Triggered auto assignment to Contributor Plus for review of internal employee PR - @thesahindia (Internal
)
The error is with AuthenticatePusher, not sure why that is showing up. The EditTask command should now be on production and so that error shouldn't be happening anymore
I think we can have this external for someone to investigate
Triggered auto assignment to @laurenreidexpensify (External
), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
Current assignee @thesahindia is eligible for the External assigner, not assigning anyone new.
Current assignee @thienlnam is eligible for the External assigner, not assigning anyone new.
Assign task- 404 error in the console appears when create a task
404 error is come from this API to authorize Pusher when our App need to subscribe to a socket channel.
I suspect the API to create Task (+ report) is not finished yet, then we navigate to taskReport in this line The ReportScreen will load and it triggers this line to subscribe to private socket channels of the report https://github.com/Expensify/App/blob/737862677811acc2b05c68209a56ecd58bee59f3/src/pages/home/report/ReportActionsView.js#L230-L233 => Can cause 404 error because the create Task API is not finished yet (report is not created yet)
To solve this problem we need to ensure the taskReport is created successfully before subscribe to its private channels
More details:
We need to follow this condition:
https://github.com/Expensify/App/blob/737862677811acc2b05c68209a56ecd58bee59f3/src/pages/home/report/ReportActionsView.js#L225-L229
That means when build optimisticTaskReport data, we need to add pendingFields.createChat
with CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD
(and isOptimisticReport: true
so it won't trigger OpenReport API when it's not ready).
pendingFields: {
createChat: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD,
},
isOptimisticReport: true,
And reset those fields in successData
.
We used this trick in some other places:
Result:
Unassigning @laurenreidexpensify as I'm already assigned as BugZero
I don't think I will be able to review this today. I have too much on my plate at the moment. @conorpendergrast, can you please reassign?
π£ @aimane-chnaif You have been assigned to this job by @conorpendergrast! Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review π§βπ» Keep in mind: Code of Conduct | Contributing π
@phuchoang23 thanks for the detailed explanation. Proposal looks good to me. So task report is built separately from other reports and below line was easily missed while building optimistic data.
pendingFields: {
createChat: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD,
},
With this root cause, I found another bug of chat not blurred when created offline.
Before:
https://github.com/Expensify/App/assets/96077027/a6d6a8cc-51bd-4ca3-bfef-328efc7ec959
After:
We can fix them all together.
cc: @thienlnam π π π C+ reviewed
@thienlnam Over to you to review and confirm the proposal!
Awesome - looks great thanks!
π£ @phuchoang23 You have been assigned to this job by @thienlnam! Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review π§βπ» Keep in mind: Code of Conduct | Contributing π
PR will ready in a couple hour
@aimane-chnaif @thienlnam PR is ready to review
@aimane-chnaif @thienlnam Btw I have signed the CLA but I'm still getting this error
Checking that in our internal Slack channel
I think it will disappear after re-trigger
Agreed; re-running the test now
Yay
look fine now. Thanks for supporting
@aimane-chnaif @thienlnam bump for code review
PR reviewed and on Staging
Reviewing
label has been removed, please complete the "BugZero Checklist".
The solution for this issue has been :rocket: deployed to production :rocket: in version 1.3.19-7 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2023-06-05. :confetti_ball:
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.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
Argh, Upwork isn't letting me hire on the existing job. I'll have to create new ones - tomorrow!
Looks like this was merged in less than 3 business days, so adding a 50% urgency bonus for C and C+
@aimane-chnaif contract sent via Upwork @phuchoang23 Can you reply here with your Upwork profile URL please?
@conorpendergrast Here is my Upwork profile https://www.upwork.com/freelancers/~01ae621d43ddc5931a
@conorpendergrast Did you send contract to me via Upwork?
I will shortly send the contract, yes!
@aimane-chnaif paid @phuchoang23 contract sent!
@conorpendergrast I accepted the offer
@phuchoang23 Paid!
Alright, just the BugZero checklist here
@conorpendergrast Thanks π
@aimane-chnaif Bump on the BugZero checklist here please!
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
- [x] [@aimane-chnaif] The PR that introduced the bug has been identified. Link to the PR: https://github.com/Expensify/App/pull/17992
- [x] [@aimane-chnaif] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: https://github.com/Expensify/App/pull/17992/files#r1224672801
- [x] [@aimane-chnaif] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: N/A
- [x] [@aimane-chnaif] Determine if we should create a regression test for this bug.
- [x] [@aimane-chnaif] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
This bug was introduced while implementing new feature of create task. This should have been caught earlier in PR review if they tested offline case. As offline test is already in PR checklist, no further regression test step is needed.
Got it. Sounds like we're all done. Closing, thanks all!
If you havenβt already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
No errors in console
Actual Result:
404 error in the console appears
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: v1.3.15-4 Reproducible in staging?: Y Reproducible in production?: Y 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
https://github.com/Expensify/App/assets/44479856/5fb0d74a-b670-4f99-ae2b-4233ac98669d
Expensify/Expensify Issue URL: Issue reported by: Applause - Internal Team Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit