-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
CRITICAL: [Actionable Whispers] [$250] Converting Tracked Expense Hides All Previous ReportActions #40265
Comments
Triggered auto assignment to @adelekennedy ( |
added to vip-vsb for self dm |
@thienlnam can we make this external? |
Yeah let's do it - we're not entirely sure what causes this yet |
Job added to Upwork: https://www.upwork.com/jobs/~01e87700b7450abadb |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary ( |
I get no message from Concierge on submitting an expense. |
This is only on main right now - we just merged the actionable whisper PR |
@thienlnam since this is critical and we haven't gotten any proposals should we make this internal and get an engineer assigned? |
I've been working on it for the past 3 days and closing in on a solution. |
@james-tindal - Can you give an update on your progress? |
I expect to have a solution today. Root causeThe server sends a list of actions in the report. These are filtered so the remaining actions form a chain where When the actionable whisper moves the IOU to a workspace as a ReportPreview, it also adds another ReportPreview which breaks the chain between the converted IOU and previous messages. |
great @james-tindal - @ntdiary will you prioritize reviewing @james-tindal solution today? |
Ah, I should go to bed soon, will request another c+ on slack to tabke over this issue. :) |
@DylanDylann will take over it. 😄 |
@james-tindal Could you update your proposal following the guideline |
I didn't mean to imply I had a working solution. I have a hack fix only. Pretty sure I'll get it finished within 24 hours, then I'll update. |
Great, thanks! |
📣 @DylanDylann 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
There's a comment about a relevant conversation. Can someone share what has been said? |
ProposalPlease re-state the problem that we are trying to solve in this issue.All previous report actions are replaced by a loading skeleton when a tracked expense is moved to a workspace. What is the root cause of that problem?The displayed actions must form a chain linked by New action { id: A, previousActionId: undefined } The server responds with an identical action { id: B, previousActionId: P }
{ id: A, previousActionId: undefined }
{ id: P, previousActionId: Q }
{ id: Q, previousActionId: R }
{ id: R, previousActionId: "0" } So the chain is still broken after the server responds. What changes do you think we should make in order to solve the problem?The simplest solution to the problem of all previous reportActions being hidden, is to remove the optimistic data for this API request, until it is fixed. What alternative solutions did you explore?Keep optimistic UI and fix it.I have written code to add the correct previousActionId to the optimistic data. { id: B, previousActionId: P }
{ id: A, previousActionId: P }
{ id: P, previousActionId: Q }
{ id: Q, previousActionId: R }
{ id: R, previousActionId: "0" } The chain is still broken after the first action. If the server returned an action with the same ID as the optimistic one, it would replace it, but because it has a different ID, it is appending instead. I will keep working on finding a way to delete the optimistic reportAction. Fixing already broken reports
|
I'm curious if this is resolved now - we fixed a problem where the optimistic reportPreview reportAction was not stored in the database so we essentially had
So it kept searching for a reportAction that is not there |
I can no longer reproduce the bug. Can you link the pull request that fixed it? |
Neat, can we close this? |
This was a back-end fix |
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: N/A
Reproducible in staging?: N/A
Reproducible in production?: N/A
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:
Slack conversation:
Action Performed:
Note: This occurs as part of a feature from this PR
Break down in numbered steps
Expected Result:
You should see the new moneyRequestPreview action, along with the old chats
Actual Result:
You only see the new moneyRequestPreview action, and everything else remains "loading" or is gone from the chat
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?
Screenshots/Videos
Add any screenshot/video evidence
Screen.Recording.2024-04-15.at.7.24.58.PM.mov
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: