-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[HOLD for payment 2023-07-20] [$1000] [Attachment] shows in LHN even after close error message #19913
Comments
Triggered auto assignment to @isabelastisser ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The last message in the LHN doesn't get updated when a report action is removed by the user due to an error. What is the root cause of that problem?The reason for this is that we are not updating the report's App/src/libs/actions/ReportActions.js Lines 6 to 31 in 06192ac
What changes do you think we should make in order to solve the problem?To resolve this issue, we simply update the /**
* @param {String} reportID
* @param {Object} reportAction
*/
function clearReportActionErrors(reportID, reportAction) {
if (reportAction.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD) {
// Delete the optimistic action
const optimisticReportAction = {
[reportAction.reportActionID]: null,
};
// Update the report's last message
const optimisticReport = {
lastMessageText: '',
lastVisibleActionCreated: '',
};
const lastMessageText = ReportActionsUtils.getLastVisibleMessageText(reportID, optimisticReportAction);
if (lastMessageText.length > 0) {
const lastVisibleActionCreated = ReportActionsUtils.getLastVisibleAction(reportID, optimisticReportAction).created;
optimisticReport.lastMessageText = lastMessageText;
optimisticReport.lastVisibleActionCreated = lastVisibleActionCreated;
}
Onyx.merge(`${ONYXKEYS.COLLECTION.REPORT}${reportID}`, optimisticReport);
Onyx.merge(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${reportID}`, optimisticReportAction);
// If there's a linked transaction, delete that too
const linkedTransactionID = ReportActionsUtils.getLinkedTransactionID(reportID, reportAction.reportActionID);
if (linkedTransactionID) {
Onyx.set(`${ONYXKEYS.COLLECTION.TRANSACTION}${linkedTransactionID}`, null);
}
return;
}
Onyx.merge(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${reportID}`, {
[reportAction.reportActionID]: {
errors: null,
},
});
}
What alternative solutions did you explore? (Optional)None. |
I tried to reproduce it with multiple corrupt files and couldn't reproduce it. @kavimuru @mananjadhav, can you please attach the corrupt file you used to this issue? I would like to try it before dismissing the |
@isabelastisser you can find it in the slack discussion, here's the link to the file. I'm still able to reproduce this in staging. |
Thanks and yep, I can reproduce it! |
Job added to Upwork: https://www.upwork.com/jobs/~01da8eae4fb504ea71 |
Current assignee @isabelastisser is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
Triggered auto assignment to @tylerkaraszewski ( |
We have a same issue here with just a different set of reproduction step (I mentioned specifically about this one here) that gets closed because they can't reproduce it anymore, but I can. I have posted a proposal there which basically the same as @therealsujitk above. Is there any possibility my proposal take precedence over the others? 😄 coincidentally the C+ is the same |
Not overdue! |
ProposalPlease re-state the problem that we are trying to solve in this issue.[Attachment] is shown in LHN even when the uploading of attachment has failed. In case of failure, the LHN should have shown the last successful message. What is the root cause of that problem?The root cause of the problem is that we are not updating the message with the last successful one if there is failure in adding a new attachment to the report. If this is taken care of, the LHN will show the last successful message. What changes do you think we should make in order to solve the problem?The proposal is to add We can fix this by updating the
The changes in file here also shows the above changes. Test Result Video 19913_attachment_in_lhn.mp4What alternative solutions did you explore? (Optional) |
@isabelastisser I have also updated the proposal with a test video for the fix. Kindly review. |
Summary: We are still receiving and reviewing proposals! I'm reassigning (SO) because I will be OOO until June 14. Thanks!
|
@rushatgabhane PR created here. Kindly review. Thanks. |
Thanks @rojiphil! @rushatgabhane, please review the PR when you can so we can move this along. Thanks! |
Bump @rushatgabhane ^ |
@isabelastisser The PR got reviewed and merged on Monday. |
@rojiphil was assigned on July 5 I need clarification because we didn't generate the automated message for the payment date. @rushatgabhane, can you please clarify when the payment should be issued? Could you confirm that this DOES NOT qualify for the 72 hours bonus? Thanks! |
@isabelastisser @rushatgabhane Wondering why this did not get triggered automatically. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.39-11 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 2023-07-20. 🎊 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:
|
Agree with @rojiphil #19913 (comment) that this qualifies for a bonus |
The offers were sent in Upwork, please accept, and I will process the payments. @rushatgabhane, please complete the BZ checklist asap and I will close this issue. Thanks! |
@isabelastisser offer accepted, thanks! |
@isabelastisser Accepted Offer. Thanks. |
Payments were processed in Upwork. C+ payment will be made via NewDot upon BZ checklist completion. cc @rushatgabhane |
|
made a manual request on new dot https://staging.new.expensify.com/r/1523003362514356 |
https://github.com/Expensify/Expensify/issues/302488 all set! |
@isabelastisser Can you please summarize the appropriate individual payments for all parties involved in this issue? This is holding up @rushatgabhane's NewDot payments. More information on this compliance process in Slack. |
Payment summary: Issue reported by @gadhiyamanan - $250 |
Reviewed details for @rushatgabhane. These details are accurate based on summary from Business Reviewer and are now approved for payment in NewDot. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
should not show [Attachment] in LHN
Actual Result:
in LHN still shows [Attachment] even after close error message
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.21-2
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
Screen.Recording.2023-05-29.at.11.51.42.AM.mov
Recording.826.mp4
Expensify/Expensify Issue URL:
Issue reported by: @gadhiyamanan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1685341334486499
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: