You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-02-07] [$500] Split - Selected category and tag do not appear in split view when created offline #34988
Version Number: 1.4.30-0 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:
changed the title [-]Split - Selected category and tag do not appear in split view when created offline[/-][+][$500] Split - Selected category and tag do not appear in split view when created offline[/+]on Jan 23, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.33-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this 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:
[@eVoloshchak] The PR that introduced the bug has been identified. Link to the PR:
[@eVoloshchak] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@eVoloshchak] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@eVoloshchak] Determine if we should create a regression test for this bug.
[@eVoloshchak] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@kevinksullivan] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: I don't think an additional discussion is needed, we already have the following item in PR reviewer checklist: I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
Activity
[-]Split - Selected category and tag do not appear in split view when created offline[/-][+][$500] Split - Selected category and tag do not appear in split view when created offline[/+]melvin-bot commentedon Jan 23, 2024
Job added to Upwork: https://www.upwork.com/jobs/~015fecc4fa91f637f5
melvin-bot commentedon Jan 23, 2024
Triggered auto assignment to @kevinksullivan (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jan 23, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak (
External)lanitochka17 commentedon Jan 23, 2024
We think that this bug might be related to #wave6.
CC @greg-schroeder
paultsimura commentedon Jan 23, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
The scan split created offline has no category & tag
What is the root cause of that problem?
When creating a split scan request, we call this function:
App/src/pages/iou/request/step/IOURequestStepConfirmation.js
Lines 220 to 229 in 4c225f2
And inside it, when creating the optimistic split transaction, we do not pass the category & tag:
App/src/libs/actions/IOU.js
Lines 1800 to 1811 in bb86e24
What changes do you think we should make in order to solve the problem?
We should pass the category & tag as parameters to
TransactionUtils.buildOptimisticTransactionas well:const splitTransaction = TransactionUtils.buildOptimisticTransaction( 0, CONST.CURRENCY.USD, CONST.REPORT.SPLIT_REPORTID, comment, '', '', '', CONST.TRANSACTION.PARTIAL_TRANSACTION_MERCHANT, receiptObject, filename, + undefined, + category, + tag );Similar to how we pass it here:
App/src/libs/actions/IOU.js
Lines 1366 to 1380 in bb86e24
What alternative solutions did you explore? (Optional)
eVoloshchak commentedon Jan 24, 2024
@paultsimura's proposal looks good to me, the fix is pretty straightforward
🎀👀🎀 C+ reviewed!
melvin-bot commentedon Jan 24, 2024
Triggered auto assignment to @luacmartins, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
13 remaining items
melvin-bot commentedon Jan 31, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.33-5 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-02-07. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jan 31, 2024
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:
kevinksullivan commentedon Feb 8, 2024
@eVoloshchak can you complete the checklist above please?
eVoloshchak commentedon Feb 8, 2024
I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)eVoloshchak commentedon Feb 8, 2024
Regression Test Proposal
Preconditions:
Do we agree 👍 or 👎
melvin-bot commentedon Feb 12, 2024
@eVoloshchak, @paultsimura, @luacmartins, @kevinksullivan Whoops! This issue is 2 days overdue. Let's get this updated quick!
kevinksullivan commentedon Feb 12, 2024
Paid @paultsimura . @eVoloshchak offer sent your way, let me know here when you accept.
eVoloshchak commentedon Feb 14, 2024
@kevinksullivan, no need for Upwork, I get paid via NewDot
Could you post a payment summary here please?
kevinksullivan commentedon Feb 14, 2024
Payment summary:
JmillsExpensify commentedon Feb 21, 2024
$500 approved for @eVoloshchak based on summary above.