-
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
[HOLD for payment 2024-12-05] [$250] Tags - State field is not auto selected when there is only one tag #52137
Comments
Triggered auto assignment to @strepanier03 ( |
Triggered auto assignment to @danieldoglas ( |
💬 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:
|
@IuliiaHerets can you please post the video for it working in production as well? Thanks! |
@danieldoglas Can you please check the added video? it includes the prod behavior too |
Oh, I think I got confused because you downloaded both from test flight. Thanks for confirming |
Edited by proposal-police: This proposal was edited at 2024-11-11 11:05:40 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
so the useEffect is not called again once the transaction data is available. What changes do you think we should make in order to solve the problem?
we can introduce a new variable to check whether we are loading transaction data:
and then pass down this variable to its child.
What alternative solutions did you explore? (Optional)
we can introduce a new variable to check whether we are loading transaction data:
Also, this is our common solution when migrating withOnyx to useOnyx. |
Hey @danieldoglas I decided not to block on this as this is very easy for users to figure out -- simply select it manually as the violation suggests. I think it can be made external to speed up the fix, we have a decent proposal already. We will also need to locate the regression though. I'm unsubscribing so please tag me if you need me 👋 |
Job added to Upwork: https://www.upwork.com/jobs/~021854535982635221591 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Tag is not auto-selected on submit expense when the workspace has enabled required tags. What is the root cause of that problem?Initially, the component renders with App/src/components/MoneyRequestConfirmationList.tsx Lines 692 to 694 in ef76462
As a consequence you can find on Onyx this key transactionsDraft_-1 which holds only the tag in the value:{tag: 'tst'}
What changes do you think we should make in order to solve the problem?We need to update this useEffect dependencies to add the
And to avoid creating the onyx entry for the -1 id we should add an early return in the useEffect:
What alternative solutions did you explore? (Optional) |
Thanks for your proposals. @truph01 @klajdipaja does anyone know why it only happens in native apps? It works for me in Web |
After considering proposals, I think @truph01's proposal looks good to me. Showing a loading indicator seems to fix this issue and other similar issues properly. Link to proposal #52137 (comment) 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @francoisl, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
📣 @truph01 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@francoisl, @danieldoglas, @hoangzinh, @strepanier03, @truph01 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
PR is ready |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.67-9 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 2024-12-05. 🎊 For reference, here are some details about the assignees on this issue:
|
@hoangzinh @strepanier03 @hoangzinh 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] |
@strepanier03 I think this is ready for payment |
@francoisl, @danieldoglas, @hoangzinh, @strepanier03, @truph01 Eep! 4 days overdue now. Issues have feelings too... |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
|
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: 9.0.58-1
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5188086
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Precondition:
Expected Result:
State field will be auto selected with the only one tag because "Members must tag all expenses" in Tags settings is enabled. (It is auto selected on staging web and production hybrid).
Actual Result:
State field is not auto selected with the only one tag even when "Members must tag all expenses" in Tags settings is enabled.
This issue only happens on Android and iOS app (both hybrid and standalone).
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6656808_1730914735568.ScreenRecording_11-07-2024_01-33-18_1.mp4
Bug6656808_1730914735568!Dependent_-_Multi_Level_tags_NEW.csv
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @strepanier03The text was updated successfully, but these errors were encountered: