Skip to content
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

[$1000] Fix navigating to workspace chat when a new invited user logs in #12041

Closed
luacmartins opened this issue Oct 20, 2022 · 52 comments
Closed
Assignees
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@luacmartins
Copy link
Contributor

luacmartins commented Oct 20, 2022

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Create a new workspace from an account that's on the policyExpenseChat beta (e.g @expensifail.com)
  2. Add a new member to the workspace via Manage Members > Invite
  3. CMD+F and search the member's name to navigate to their workspace chat
  4. Write a couple of messages in the member's workspace chat, then log-out of the admin account
  5. Validate the member account and log-in to NewDot
  6. Observe that you land in the Concierge DM and not the member's workspace chat

Expected Result:

User should be navigated to the correct chat

Actual Result:

User is not navigated to the correct chat

Workaround:

Manually navigate to the chat

Platform:

Where is this issue occurring?

  • iOS
  • Android

Version Number:
Reproducible in staging?:
Reproducible in production?:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
Issue reported by:
Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~012abff40d9e607123
  • Upwork Job ID: 1688926809469202432
  • Last Price Increase: 2023-08-22
@luacmartins
Copy link
Contributor Author

Coming from this comment, it seems like iOS and android are experiencing some quirk with react navigation.

@melvin-bot
Copy link

melvin-bot bot commented Oct 20, 2022

Looks like something related to react-navigation may have been mentioned in this issue discussion.

As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our DeprecatedCustomActions.js files should not be accepted.

Feel free to drop a note in #expensify-open-source with any questions.

@techievivek
Copy link
Contributor

Will look into it this week.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Oct 31, 2022
@techievivek
Copy link
Contributor

Not overdue.

@melvin-bot melvin-bot bot removed the Overdue label Oct 31, 2022
@melvin-bot melvin-bot bot added the Overdue label Nov 9, 2022
@techievivek
Copy link
Contributor

I think this might get fixed here

@melvin-bot melvin-bot bot removed the Overdue label Nov 9, 2022
@techievivek
Copy link
Contributor

I will follow the conversation there and see if that would also fix the navigation issue for this case or not.

@melvin-bot melvin-bot bot added the Overdue label Nov 18, 2022
@techievivek
Copy link
Contributor

I was ooo so looking into it today.

@melvin-bot melvin-bot bot removed the Overdue label Nov 23, 2022
@melvin-bot melvin-bot bot added the Overdue label Dec 1, 2022
@techievivek
Copy link
Contributor

techievivek commented Dec 1, 2022

Seems like the drawer is open and maybe that's why sometime users are not navigated to the workspace chat.

I just tested this and though the drawer state is open it did navigate me to the workspace chat.

Screenshot 2022-12-01 at 2 38 24 PM

I will test it a few more just to be sure and then I will add this issue on HOLD because with navigation refactor this will be automatically fixed as we are switching to stack-based navigation.

@melvin-bot melvin-bot bot removed the Overdue label Dec 1, 2022
@techievivek
Copy link
Contributor

Tested this couple of times and every time it navigated to workspace chat on Android though the drawer state was open.

Screenshot 2022-12-01 at 3 07 19 PM
Screenshot 2022-12-01 at 3 13 22 PM

@luacmartins Do you mind giving it a try just to see if this still happens? Thanks

@techievivek techievivek changed the title Fix navigation on Welcome event [HOLD Navigation refactor] Fix navigation on Welcome event Dec 1, 2022
@luacmartins
Copy link
Contributor Author

I just tested and it seems like this doesn't work at all anymore on any platform 😢 Looking at the logs, it seems like we are never setting ONYXKEYS.IS_LOADING_REPORT_DATA to false here. Am I missing something?

@techievivek
Copy link
Contributor

This is weird, it worked perfectly for me. This is what I did.

  1. Invited a new user to a workspace which created a chat between admin and newly invited user.
  2. Added some messages for the invited user in the workspace chat.
  3. Logged out from the admin account.
  4. Validated the invited user account and logged in to newDot.
  5. It right away took me to workspace chat.

I will a screen share recording tomorrow.

@techievivek
Copy link
Contributor

Sorry, I couldn't get time to look into it today. I will share a recording tomorrow for sure.

@techievivek
Copy link
Contributor

Here is a video of it.

Screen.Recording.2022-12-05.at.1.15.43.PM.mov

@techievivek
Copy link
Contributor

@luacmartins Can you please have a look at the video and try this once again.

@luacmartins
Copy link
Contributor Author

@techievivek it seems to be working for me now 😕

ios.mov

@melvin-bot
Copy link

melvin-bot bot commented Aug 8, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Aug 8, 2023

Current assignee @JmillsExpensify is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Aug 8, 2023

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

@melvin-bot melvin-bot bot added the Overdue label Aug 10, 2023
@Talha345
Copy link
Contributor

How can I get an policyExpenseChat beta (e.g @expensifail.com) account to reproduce this issue?

@trjExpensify
Copy link
Contributor

On Dev you should have access to all betas.

@techievivek
Copy link
Contributor

@Talha345 Please have a look at the working on beta features section here: https://github.com/Expensify/App/blob/main/contributingGuides/CONTRIBUTING.md#working-on-beta-features

@melvin-bot melvin-bot bot removed the Overdue label Aug 14, 2023
@luacmartins
Copy link
Contributor Author

luacmartins commented Aug 14, 2023

On Dev you should have access to all betas.

@trjExpensify I think that works for internal engineers only, since external contributors use the staging/production API.

@trjExpensify
Copy link
Contributor

Oh, hm.. it's in the contributing.md file though as @techievivek pointed out!

@luacmartins
Copy link
Contributor Author

Yea, that works to see the UI in the frontend or things that don't depend on the API, but in this case the API won't return the policyExpenseChat so the user won't be able to actually see them.

@Talha345
Copy link
Contributor

Yea, that works to see the UI in the frontend or things that don't depend on the API, but in this case the API won't return the policyExpenseChat so the user won't be able to actually see them.

@luacmartins How can I reproduce this issue then?

@luacmartins
Copy link
Contributor Author

We'd need to add your email to the beta.

@Talha345
Copy link
Contributor

@luacmartins Can you please add talha.97.mahmood+55@gmail.com?

@luacmartins
Copy link
Contributor Author

Done! Changes should be live in ~1h.

@Talha345
Copy link
Contributor

Thanks a lot!

@Talha345
Copy link
Contributor

@techievivek @luacmartins When I login using the member account, Concierge chat opens but I also cannot see the chat where the user who invited me sent messages.I can only see the default announce channel of the workspace.Also the drawer opens automatically.

image

What should be the expected behaviour in this case? Can you please clarify!

@luacmartins
Copy link
Contributor Author

I'll hand this back to @techievivek since my plate is quite full atm.

@melvin-bot
Copy link

melvin-bot bot commented Aug 15, 2023

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Aug 21, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 22, 2023

@JmillsExpensify, @Ollyws, @techievivek 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@techievivek
Copy link
Contributor

I tried reproducing this but it seems to work just fine for me.

Screen.Recording.2023-08-22.at.6.27.53.PM.mov
Screen.Recording.2023-08-22.at.6.26.30.PM.mov

I saw an another bug tho where the "request money" option appeared without interaction. Isn't that unexpected?

Screenshot 2023-08-22 at 6 31 38 PM

@melvin-bot melvin-bot bot removed the Overdue label Aug 22, 2023
@techievivek
Copy link
Contributor

Maybe the order in which these things matter? Let me try with admin inviting the user to the workspace first, and only then the user validates their account.

@techievivek
Copy link
Contributor

Seems to work the other way around as well.

Screen.Recording.2023-08-22.at.6.52.26.PM.mov

@trjExpensify I am unable to reproduce this on my end. 😕

@trjExpensify
Copy link
Contributor

Maybe the nav reboot fixed it then? The drawer should be open btw, so that's expected. I'm happy to close this out, we can circle back if we come across it again. Will leave that call to you and @JmillsExpensify assigned on the issue though!

@melvin-bot
Copy link

melvin-bot bot commented Aug 22, 2023

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@techievivek
Copy link
Contributor

Maybe the nav reboot fixed it then?

Jaons did point that out here #12041 (comment), going to close this. Feel free to re-open if this persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests

6 participants