-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$500] mWeb/Chrome - Chat – Deleted message appears briefly when navigate via IOU link after re-login. #33144
Comments
Job added to Upwork: https://www.upwork.com/jobs/~010bcca99fc0ffe3ae |
Triggered auto assignment to @NicMendonca ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.[Delete message] shows in the money request detail header after login. What is the root cause of that problem?The header should show the transaction name if it is working correctly. Lines 2261 to 2263 in 8bef4bb
But the Line 2276 in 8bef4bb
Even when the report loading is complete, the What changes do you think we should make in order to solve the problem?If the report has a The code will look like this:
|
ProposalPlease re-state the problem that we are trying to solve in this issue.[Delete message] shows in the money request detail header after login. What is the root cause of that problem?Report actions is slowly loaded than reports. Line 2262 in 4592a7c
But returned here because parentReportAction is empty Line 2276 in 4592a7c
What changes do you think we should make in order to solve the problem?We need to check all actions is loaded before returning.
We need to add this code before return delete title. Line 2276 in 4592a7c
when we return '', header will be shown as loading. What alternative solutions did you explore? (Optional)Screen.Recording.2023-12-15.at.1.06.23.PM.mov |
@NicMendonca, @fedirjh Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@bernhardoj Thanks for the proposal.
Where this code should be placed ? |
@yh-0218 Thanks for the proposal.
What does it means slowly loaded in this case ?
Can you elaborate more on this point ? How to check if all actions are loaded ? |
I got Line 2276 in 648c000
Because of |
Line 2259 in 648c000
We get parentReportAction to get title, but above code is available when allReportActions of ReportActionsUtils has value.So I checked that value. |
@yh-0218 you get |
@fedirjh we will put it in HeaderView and ReportScreen. App/src/pages/home/HeaderView.js Lines 199 to 209 in aa1d87c
App/src/pages/home/ReportScreen.js Line 190 in aa1d87c
App/src/pages/home/ReportScreen.js Line 467 in aa1d87c
|
const allReportActions = ReportActionsUtils.getAllReportActions(report.reportID);
if(!parentReportActionMessage && isEmptyObject(allReportActions)) {
return '';
} Sorry @fedirjh |
@NicMendonca, @fedirjh Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@fedirjh proposals for you! ^ |
@NicMendonca, @fedirjh Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@NicMendonca, @fedirjh Huh... This is 4 days overdue. Who can take care of this? |
@NicMendonca @fedirjh 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! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@bernhardoj @yh-0218 Why the skeleton is not diplayed when the |
@fedirjh you mean you still didn't see the skeleton after applying the solution? If yes, I don't know if it gonna help but can you try to subscribe to the parentReportActions onyx?
Then, you can do this to get the specific parent report action.
theoritically, you should see the skeleton without the above code, but we still need to apply the above code at the end |
@bernhardoj Not really, what I meant is that if the data is in loading state then why So the problem is within this line : Line 2276 in 4592a7c
we assume that empty |
@NicMendonca, @fedirjh Whoops! This issue is 2 days overdue. Let's get this updated quick! |
This is quite tricky. @bernhardoj , I believe your solution may not be correct. I suspect it could fail in the case of a deleted parent report action, which would result in the skeleton being displayed indefinitely. I think we should also check whether the @yh-0218, your solution makes sense, but the code does not appear to be correct. As @bernhardoj mentioned, we should verify whether the report contains both a |
@fedirjh I think this is good way. if(report?.parentReportID && report?.parentReportActionID && isEmptyObject(parentReportAction)) {
return '';
} |
^ I am not sure how common of a practice this is going to be for end-users. So with that, I am going to close this based on this -- https://expensify.slack.com/archives/C01GTK53T8Q/p1702496349813859 Since this is not directly related to a roadmap feature. Appreciate the discussion so far! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: v1.4.13-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
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team
Slack conversation: @
Action Performed:
Expected Result:
IOU link opens.
Actual Result:
Deleted message appears briefly in a chat when navigate via IOU link after re-login.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6314216_1702630093991.Deleted_message.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: