Repository navigation
Description
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: 9.1.12-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y
Issue reported by: Applause - Internal Team
Action Performed:
- Open the staging.new.expensify.com website
- Sign up with a new account
- Turn off internet connection
- Tap on FAB and select "Create Expense"
- Complete the creation flow and submit the expense to Self Dm
- Tap on "Share with my accountant" on the system message below the expense
- Send the expense to the new created workspace
- Once redirected to chat, dismiss the RHP and return to Self DM
- Tap on the "+" button and create a second track expense
- Tap on "Share with my accountant" and send this second expense to the same workspace as the first one
- Dismiss the RHP and turn on internet connection
- Note that now, the second expense is displayed in small size in chat, and is also displayed inside expense report with the first one created
Expected Result:
Track expenses moved to a workspace while offline, should be displayed only once when recoveing internet connection
Actual Result:
Second track expense submitted to new workspace while offline, is displayed duplicated when turning internet connection on. The expense preview is displayed in a smaller size in chat, and is also displayed inside expense report with the first submitted expense
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
- Android: Standalone
- Android: HybridApp
- Android: mWeb Chrome
- iOS: Standalone
- iOS: HybridApp
- iOS: mWeb Safari
- MacOS: Chrome / Safari
- MacOS: Desktop
Screenshots/Videos
Add any screenshot/video evidence
Bug6768909_1741802912661.Duplicated.mp4
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~021902287746223369014
- Upwork Job ID: 1902287746223369014
- Last Price Increase: 2025-06-11
Issue Owner
Current Issue Owner: @dominictbMetadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
melvin-bot commentedon Mar 12, 2025
Triggered auto assignment to @JmillsExpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.bernhardoj commentedon Mar 13, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
When sharing track expense while offline, 2 expense report is created, but after going online, the report is merged.
What is the root cause of that problem?
When we share the track expense, it will create a new expense report if the expense only contains non-reimbursable transaction as defined below.
App/src/libs/ReportUtils.ts
Lines 2158 to 2160 in c3aa5d6
It was added in #44612. But looks like the BE now keep the expenses in one expense report.
What changes do you think we should make in order to solve the problem?
It could be a BE problem and if it's, then we need to fix it on the BE. If the BE is intentional, then we need to remove this condition.
App/src/libs/ReportUtils.ts
Lines 2158 to 2160 in c3aa5d6
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
We can create a unit test for
canAddTransactionand assert that it returns true for expense report with only non-reimbursable transaciton.melvin-bot commentedon Mar 18, 2025
@JmillsExpensify Eep! 4 days overdue now. Issues have feelings too...
[-]Expense - Second track expense submitted to ws while offline, is displayed duplicated[/-][+][$250] Expense - Second track expense submitted to ws while offline, is displayed duplicated[/+]melvin-bot commentedon Mar 19, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021902287746223369014
melvin-bot commentedon Mar 19, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @dominictb (
External)JmillsExpensify commentedon Mar 19, 2025
Opened up to the community.
37 remaining items
melvin-bot commentedon Apr 30, 2025
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
melvin-bot commentedon May 7, 2025
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
dominictb commentedon May 9, 2025
@youssef-lr is handling this.
JmillsExpensify commentedon May 12, 2025
Still a monthly
melvin-bot commentedon May 14, 2025
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
melvin-bot commentedon May 21, 2025
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
melvin-bot commentedon May 28, 2025
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
melvin-bot commentedon Jun 4, 2025
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
melvin-bot commentedon Jun 11, 2025
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
mvtglobally commentedon Jun 16, 2025
Issue not reproducible during KI retests. (First week)
JmillsExpensify commentedon Jun 18, 2025
@youssef-lr going to close though please reopen if you or anyone else can reproduce.