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
2.97k stars 2.48k forks source link

Perform mention report search only in policy rooms #40867

Closed rlinoz closed 1 week ago

rlinoz commented 1 week ago

Details

Fixed Issues

$ https://github.com/Expensify/Expensify/issues/390367 PROPOSAL:

Tests

  1. Open the developer tools and watch the network tab
  2. In a DM/Group chat start typing # and verify that no request is made to SearchForRoomsToMention and no auto complete widget pops up
  3. In a policy room start typing # and continue typing until there are less than 5 results, verify that a call to SearchForRoomsToMention is made

Offline tests

QA Steps

  1. Open the developer tools and watch the network tab
  2. [User A] In a DM/Group chat start typing # and verify that no auto complete widget pops up, also verify that no call to SearchForRoomsToMention is made in the network tab
  3. [User B] Create a new room
  4. [User A] In a policy room start typing # and continue typing to find the room created in the previous step, verify that the room shows up in the auto complete after a while, also verify there are few calls to SearchForRoomsToMention in the network tab

PR Author Checklist

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari https://github.com/Expensify/App/assets/5201282/68ff7fad-58e3-4bbc-8181-59f774f030b4 https://github.com/Expensify/App/assets/5201282/e26abcc7-743e-4af2-a47e-f271553c6032 https://github.com/Expensify/App/assets/5201282/32273345-83c1-482b-aa8f-4e1cf38485b2
MacOS: Desktop
melvin-bot[bot] commented 1 week ago

@s77rt Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

melvin-bot[bot] commented 1 week ago

@mananjadhav @ One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

pecanoro commented 1 week ago

Reviewer Checklist

Screenshots/Videos

image

image

Android: Native
Android: mWeb Chrome
iOS: Native ![image](https://github.com/Expensify/App/assets/6474442/ea10a947-c27d-4cd6-82c9-e3b28ba17e3a) ![image](https://github.com/Expensify/App/assets/6474442/941f41ca-c10c-4bba-85e8-f32126da1af8)
iOS: mWeb Safari
MacOS: Chrome / Safari ![image](https://github.com/Expensify/App/assets/6474442/f2bef314-ca91-4b87-a0f6-43394b1a4ea1) ![image](https://github.com/Expensify/App/assets/6474442/92c0bd09-31d6-411c-ad2a-24ad98f7cac6)
MacOS: Desktop ![image](https://github.com/Expensify/App/assets/6474442/9b2c7033-e4a9-426f-8fe7-29cb240186ef) ![image](https://github.com/Expensify/App/assets/6474442/5c1575b1-1d99-4d38-b863-ad7d96653786)
mananjadhav commented 1 week ago

@pecanoro @rlinoz Does this need C+ review?

pecanoro commented 1 week ago

@mananjadhav It's a simple change, I can test it, no worries!

pecanoro commented 1 week ago

@rlinoz I would also have Applause do the steps you listed in Tests with the network tab to make sure it is not being called.

rlinoz commented 1 week ago

Oh nice, I wasn't sure they did that kind of testing as well, let me update.

pecanoro commented 1 week ago

Compiling on the phone platforms takes forever, so I am going to merge it since I tested it on desktop and web.

Edit: tested on iOS though

OSBotify commented 1 week ago

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

OSBotify commented 1 week ago

πŸš€ Deployed to staging by https://github.com/pecanoro in version: 1.4.66-0 πŸš€

platform result
πŸ€– android πŸ€– success βœ…
πŸ–₯ desktop πŸ–₯ failure ❌
🍎 iOS 🍎 success βœ…
πŸ•Έ web πŸ•Έ success βœ…
OSBotify commented 1 week ago

πŸš€ Deployed to staging by https://github.com/pecanoro in version: 1.4.66-0 πŸš€

platform result
πŸ€– android πŸ€– success βœ…
πŸ–₯ desktop πŸ–₯ success βœ…
🍎 iOS 🍎 success βœ…
πŸ•Έ web πŸ•Έ success βœ…
OSBotify commented 1 week ago

πŸš€ Deployed to production by https://github.com/mountiny in version: 1.4.66-5 πŸš€

platform result
πŸ€– android πŸ€– success βœ…
πŸ–₯ desktop πŸ–₯ success βœ…
🍎 iOS 🍎 success βœ…
πŸ•Έ web πŸ•Έ success βœ