Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.33k stars 2.76k forks source link

[$250] Android - Room - For new user, invited member is shown with email but removed user shown as hidden #48577

Open lanitochka17 opened 1 week ago

lanitochka17 commented 1 week ago

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.0.29 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Issue reported by: Applause - Internal Team

Action Performed:

  1. Launch app
  2. Tap on a room chat
  3. Tap header -- members -- invite
  4. Go offline
  5. Invite a new user with no expensify account eg : jaihanumanblog+festi@gmail.com
  6. Then remove the user
  7. Go online
  8. Navigate to room conversation

Expected Result:

For new user, invited member is shown with email ig but removed user must not be shown as hidden.

Actual Result:

For new user, invited member is shown with email id but removed user shown as hidden

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

Screenshots/Videos

Add any screenshot/video evidence

https://github.com/user-attachments/assets/8726e780-f633-4638-8c55-ff653a59c24b

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021834201133902466392
  • Upwork Job ID: 1834201133902466392
  • Last Price Increase: 2024-09-12
Issue OwnerCurrent Issue Owner: @aimane-chnaif
melvin-bot[bot] commented 1 week ago

Triggered auto assignment to @kevinksullivan (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 commented 1 week ago

Proposal

Please re-state the problem that we are trying to solve in this issue.

The removed member system message shows Hidden.

What is the root cause of that problem?

When we invite an unknown user, we generate a random accountID for that user and if we add and delete it while offline, we send the random accountID to the delete request. The BE will eventually invite the user and return a newly created accountID for that user. We basically trying to delete the random accountID that doesn't exist on the BE, so the new member will show again on the list and the system message show Hidden because personal detail data for the random accountID is already cleared.

What changes do you think we should make in order to solve the problem?

We need to disable the item when it's an optimistic user, just like we did in https://github.com/Expensify/App/issues/47686. https://github.com/Expensify/App/blob/c885f96f66f4c552308fafb81b6251daf1fb4136/src/pages/RoomMembersPage.tsx#L183-L187

|| details.isOptimisticPersonalDetail

We can apply the same fix on other pages if exist.

melvin-bot[bot] commented 6 days ago

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

melvin-bot[bot] commented 4 days ago

@kevinksullivan 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

melvin-bot[bot] commented 3 days ago

Job added to Upwork: https://www.upwork.com/jobs/~021834201133902466392

melvin-bot[bot] commented 3 days ago

Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif (External)

kevinksullivan commented 3 days ago

Moving forward for proposal review and looping in another BZ as I'm going OOO

melvin-bot[bot] commented 3 days ago

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

aimane-chnaif commented 3 days ago

@bernhardoj's proposal looks good to me. 🎀👀🎀 C+ reviewed

melvin-bot[bot] commented 3 days ago

Triggered auto assignment to @arosiclair, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

bernhardoj commented 2 days ago

PR is ready

cc: @aimane-chnaif