Policy room - Able to create room with same name and no error appears
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:
- Go to https://staging.new.expensify.com/
- Create room e.g. Fish
- 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:
Triggered auto assignment to @sketchydroide (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
@TomatoToaster it seems you edited this code not that long ago do you know if this has been fixed?
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.
@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?
Hmm it is weird it didn't show the error text though.
@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
.
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!
PR up for this badboy^ just need to test it