App icon indicating copy to clipboard operation
App copied to clipboard

Policy room - Able to create room with same name and no error appears

Open kavimuru opened this issue 4 years ago • 8 comments

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Issue found when executing #7227

Action Performed:

  1. Go to https://staging.new.expensify.com/
  2. Create room e.g. Fish
  3. Create second room with same name Fish

Expected Result:

Error appears if you try to use the same name as an existing policy room in that same workspace.

Actual Result:

Able to create room with same name and no error appears

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: v1.1.30-0 Reproducible in staging?: Yes Reproducible in production?: Yes Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos:

https://user-images.githubusercontent.com/43996225/149634061-bf9184bc-0666-4fd4-b73e-8fe3567c6956.mp4

Expensify/Expensify Issue URL: Issue reported by: Applause Slack conversation:

View all open jobs on GitHub

kavimuru avatar Jan 15 '22 18:01 kavimuru

Triggered auto assignment to @sketchydroide (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

MelvinBot avatar Jan 15 '22 18:01 MelvinBot

@TomatoToaster it seems you edited this code not that long ago do you know if this has been fixed?

sketchydroide avatar Jan 17 '22 12:01 sketchydroide

Ah I guess we should be surfacing an error. But actually I don't think this is a bug. A second room doesn't get created right, it just seems like it brings you back to the existing room which seems to be working as intended.

TomatoToaster avatar Jan 18 '22 16:01 TomatoToaster

@kavimuru could you verify that when you enter a message into that room and then try to create another room it doesn't try to give you a new one?

TomatoToaster avatar Jan 18 '22 16:01 TomatoToaster

Hmm it is weird it didn't show the error text though.

TomatoToaster avatar Jan 18 '22 17:01 TomatoToaster

@TomatoToaster It takes me to the same existing room when I enter a message and create another room. But no error message displayed

https://user-images.githubusercontent.com/43996225/150439387-7dbe6589-3330-4ebc-82fd-16fe3ae09fa9.mp4

.

kavimuru avatar Jan 20 '22 23:01 kavimuru

Ahhh I see, the error isn't showing in the create room modal. Thanks for that clarification!

Hmm it is weird that the room is loaded, and you can see it even in the left hand nav, but it seems like the create a room modal is not comparing its title properly to know its a duplicate (only seems to happen right after creation too). Cool I think I have a lead on how to fix this bug, thanks!

TomatoToaster avatar Jan 21 '22 18:01 TomatoToaster

PR up for this badboy^ just need to test it

TomatoToaster avatar Jan 27 '22 15:01 TomatoToaster