App icon indicating copy to clipboard operation
App copied to clipboard

Expense-Delete and replace options displayed for receipt in archived workspace offline

Open IuliiaHerets opened this issue 1 year ago • 31 comments

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.47-1 Reproducible in staging?: Y Reproducible in production?: Y Issue was found when executing this PR: https://github.com/Expensify/App/pull/50395 Issue reported by: Applause Internal Team

Action Performed:

  1. Open the app and log in
  2. Navigate to a workspace chat
  3. Disable internet connection
  4. Create an expense with a receipt
  5. Navigate to the list of workspaces and delete the workspace
  6. Open the archived workspace chat
  7. Select the expense > tap 3 dots

Expected Result:

The "Delete" and "Replace" options should not be present

Actual Result:

The "Delete" and "Replace" options are displayed when the workspace is deleted offline

Workaround:

Unknown

Platforms:

  • [x] Android: Native
  • [ ] Android: mWeb Chrome
  • [ ] iOS: Native
  • [ ] iOS: mWeb Safari
  • [ ] MacOS: Chrome / Safari
  • [ ] MacOS: Desktop

Screenshots/Videos

https://github.com/user-attachments/assets/ab81d261-f065-4c24-807a-176a8fecba71

View all open jobs on GitHub

IuliiaHerets avatar Oct 10 '24 11:10 IuliiaHerets

Triggered auto assignment to @dylanexpensify (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.

melvin-bot[bot] avatar Oct 10 '24 11:10 melvin-bot[bot]

We think that this bug might be related to #wave-collect - Release 1

IuliiaHerets avatar Oct 10 '24 11:10 IuliiaHerets

@dylanexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

IuliiaHerets avatar Oct 10 '24 11:10 IuliiaHerets

I will take a look very soon. It's related to my PR so we don't need proposals here.

Krishna2323 avatar Oct 10 '24 11:10 Krishna2323

Sorry, I completely missed this one. Will raise a PR tomorrow.

Krishna2323 avatar Oct 13 '24 16:10 Krishna2323

@dylanexpensify Huh... This is 4 days overdue. Who can take care of this?

melvin-bot[bot] avatar Oct 15 '24 18:10 melvin-bot[bot]

ongoing

dylanexpensify avatar Oct 16 '24 18:10 dylanexpensify

Triggered auto assignment to @johncschuster (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.

melvin-bot[bot] avatar Oct 17 '24 20:10 melvin-bot[bot]

Hey @johncschuster! I'm heading out on parental leave so reassigning this! TY! 🙇‍♂️

dylanexpensify avatar Oct 17 '24 20:10 dylanexpensify

@johncschuster, @Krishna2323 Whoops! This issue is 2 days overdue. Let's get this updated quick!

melvin-bot[bot] avatar Oct 21 '24 18:10 melvin-bot[bot]

@Krishna2323 how's this one going?

johncschuster avatar Oct 22 '24 02:10 johncschuster

Sorry for delay, I have couple of urgent PR's left to finish, I will probably finish this one tomorrow.

Krishna2323 avatar Oct 23 '24 00:10 Krishna2323

@johncschuster @Krishna2323 this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

melvin-bot[bot] avatar Oct 24 '24 18:10 melvin-bot[bot]

@Krishna2323 how's this one going? Were you able to get a PR up for this?

johncschuster avatar Oct 25 '24 21:10 johncschuster

I will be on it in few moments...sorry again for delay.

Krishna2323 avatar Oct 25 '24 21:10 Krishna2323

@johncschuster, I'm not sure about the expected behavior. In this PR, I made the change to not display the options because none of the fields of the expense were editable. When we were trying to replace the receipt, the "not here" page was shown. However, it looks like the behavior has changed, now we can replace the receipt and edit the fields of an expense in an archived workspace and it's also supported by the backend.

Offline behaviour

https://github.com/user-attachments/assets/63ae8e60-eca6-4897-9a24-8ca0ba64906a

Online behaviour

https://github.com/user-attachments/assets/eb26d417-6b26-458d-a4a3-38e4aeb7b1b0

cc: @suneox

Krishna2323 avatar Oct 27 '24 00:10 Krishna2323

Thanks for your comment, @Krishna2323! Let me review this with fresh eyes in the morning.

johncschuster avatar Oct 29 '24 22:10 johncschuster

@johncschuster, @Krishna2323 Huh... This is 4 days overdue. Who can take care of this?

melvin-bot[bot] avatar Nov 04 '24 18:11 melvin-bot[bot]

I didn't get to this one today. I will return to this comment tomorrow.

johncschuster avatar Nov 04 '24 20:11 johncschuster

No update today. Still catching up from a shorter week last week.

johncschuster avatar Nov 11 '24 22:11 johncschuster

@johncschuster, @Krishna2323 Whoops! This issue is 2 days overdue. Let's get this updated quick!

melvin-bot[bot] avatar Nov 15 '24 09:11 melvin-bot[bot]

Ok! I'm back. @Krishna2323 I'm not quite sure if it's intended to delete and replace the receipt image for an archived expense. I'll need to check on that on Monday.

johncschuster avatar Nov 15 '24 23:11 johncschuster

I didn't get to dig into this today. I should have some more time tomorrow!

johncschuster avatar Nov 18 '24 22:11 johncschuster

No update on this one. I'll need to push this one forward tomorrow.

johncschuster avatar Nov 21 '24 23:11 johncschuster

@johncschuster, @Krishna2323 Whoops! This issue is 2 days overdue. Let's get this updated quick!

melvin-bot[bot] avatar Nov 25 '24 09:11 melvin-bot[bot]

I'm working a shorter week this week and couldn't fit this in today

johncschuster avatar Nov 25 '24 23:11 johncschuster

@johncschuster, @Krishna2323 Whoops! This issue is 2 days overdue. Let's get this updated quick!

melvin-bot[bot] avatar Nov 29 '24 09:11 melvin-bot[bot]

I'm catching up from being OOO for the holiday last week. Will get this slotted in tomorrow.

johncschuster avatar Dec 02 '24 22:12 johncschuster

@johncschuster, @Krishna2323 Whoops! This issue is 2 days overdue. Let's get this updated quick!

melvin-bot[bot] avatar Dec 06 '24 09:12 melvin-bot[bot]

I couldn't action this today. I will check it out this weekend.

johncschuster avatar Dec 06 '24 23:12 johncschuster