-
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
[HOLD for payment 2025-01-02] Debug Mode - "Create" button flash after creating a violation #53027
Comments
Triggered auto assignment to @blimpich ( |
Triggered auto assignment to @slafortune ( |
💬 A slack conversation has been started in #expensify-open-source |
👋 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:
|
This is a debug feature only so not a blocker. @DylanDylann @pac-guerreiro please follow up on this one from your PR cc @puneetlath in case you want to take over as a CME too cc @fabioh8010 |
Hi! I’m Pedro Guerreiro from Callstack - expert contributor group. I’d like to work on this task! |
@IuliiaHerets I wasn't able to reproduce this behaviour on latest main, can you test it again? 😄 Screen.Recording.2024-11-25.at.20.48.16.mp4 |
I still can reproduce this bug. @pac-guerreiro Could you please try again with some consecutive create? Screen.Recording.2024-11-26.at.09.52.37.mov |
Another bug I see on the debug feature:
we use the set method but we don't add the previous data. It caused when adding new report action, all previous report actions will be removed |
@pac-guerreiro Tester also can still reproduce the issue in the latest build Screen.Recording.2024-11-26.at.3.26.36.at.night.mp4 |
@DylanDylann nice catch! I think it should be addressed on a separate issue, can you create it? |
I'll try it again, but it's not an easy one 😅 Could you also try creating a report action to confirm if it also happens? |
Today I didn't have the time to test this again. Tomorrow I'll take another look at it! |
@pac-guerreiro Issue is reproducible, build v9.0.67-1 Screen.Recording.2024-11-27.at.1.20.29.at.night.mp4 |
@slafortune, @blimpich, @pac-guerreiro, @DylanDylann Eep! 4 days overdue now. Issues have feelings too... |
I tried reproducing this issue today and I wasn't able to get it to flash as clearly as it does on the demo, but I think that it flashed for a split second for me 2 or 3 times. I will be taking a look into the code to try to fix that but it might be difficult due to problems with reproduction. |
Today I tested a solution which gets rid of the ScrollView that wrapped the FlatList with My plan for the further investigation is to check how this component is rendered in DebugTransactionPage and look for the source of this bug there. |
ProposalPlease re-state the problem that we are trying to solve in this issue."Create" button is flashing after creating a new transaction violation in debug mode. What is the root cause of that problem?According to my investigation, this is caused by FlatList. Even replacing it with FlashList doesn't help. To me, it looked like FlashList made it occur less often, but I might be wrong, and it doesn't really matter as the bug still reproduces. What changes do you think we should make in order to solve the problem?As the contains a ScrollView that wraps a FlatList with What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A What alternative solutions did you explore? (Optional)
As mentioned above, I tried replacing
This component is quite a small one, and it has a FlatList with
I thought this flashing effect might be caused by some unnecessary rerender caused by some prop/param update, so I wrapped the renderItem method with useCallback. It also didn't help, the flash was still happening. |
Weird bug. I'm good with the above solution if we make sure to add a comment explaining why we made the changes we did. Seems like a bug that wouldn't really be able to be prevented with a unit test and also would be easy to forget about and have a regression come up later. |
The PR is ready for review! |
@DylanDylann @IuliiaHerets I'm back from my vacation, so I'll take it from here 😄 |
I'm able to reproduce this issue on track/submit expense flow as well: Screen.Recording.2024-12-12.at.14.47.05.mp4I suspect this issue is caused by |
Last friday (12/13/24)
Today:
|
Yesterday I addressed the eslint errors on the PR but it seems that they still persist 😅 I'll address them in a moment and let you know! |
All remaining issues addressed! Now waiting on @DylanDylann to do his magic 🪄 |
Today I resolved all conflicts in the PR 😄 |
Today I fixed the app crash reported by @DylanDylann! I'll be away until January 2nd but someone should take care of my work 😄 Happy holidays! 🎉 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.78-6 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 2025-01-02. 🎊 For reference, here are some details about the assignees on this issue:
|
@DylanDylann @slafortune @DylanDylann The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
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: v9.0.66-0
Reproducible in staging?: Y
Reproducible in production?: Can't check as no
Debug Mode
on productionEmail or phone of affected tester (no customers): dave0123seife@gmail.com
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
"Create" button does not flash after creating a violation
Actual Result:
"Create" button flash after creating a violation
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6673733_1732322393345.Screen_Recording_2024-11-23_at_3.31.20_at_night.mp4
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @slafortuneThe text was updated successfully, but these errors were encountered: