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

Fix broken duplicate name error in User Created Policy Rooms #7446

Merged
merged 12 commits into from
Feb 3, 2022

Conversation

TomatoToaster
Copy link
Contributor

@TomatoToaster TomatoToaster commented Jan 27, 2022

@pecanoro, please review when you get the chance.

Details

Fixes the bug where we don't show an error if you try to create a policy room with the same name as one just created. What was happening was that we weren't checking for duplicates after a policy was selected - we were only doing it when the room name's text changed. This will fix that and show the error in the WorkspaceNew component.

Fixed Issues

$ #7260

Tests/WebQA

  1. Go to https://staging.new.expensify.com/

  2. Create room e.g. "fish" (Use Green + on the bottom left. You need to have a workspace also)

  3. Create second room with same name "fish". First type the name fish in and THEN select a workspace.
    image
    image

  4. An error should show up after you select the workspace and it should prevent you from clicking "Create Room"
    image
    image

  • Verify that no errors appear in the JS console

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

@TomatoToaster TomatoToaster self-assigned this Jan 27, 2022
@TomatoToaster TomatoToaster changed the title Amal ucpr name duplicate Include UCPR title in report name to avoid duplicates Jan 27, 2022
@TomatoToaster TomatoToaster changed the title Include UCPR title in report name to avoid duplicates Fix broken duplicate name error in User Created Policy Rooms Jan 31, 2022
@TomatoToaster TomatoToaster marked this pull request as ready for review January 31, 2022 23:33
@TomatoToaster TomatoToaster requested a review from a team as a code owner January 31, 2022 23:33
@MelvinBot MelvinBot requested review from pecanoro and removed request for a team January 31, 2022 23:33
@TomatoToaster
Copy link
Contributor Author

Rerunning ios I don't think the failing test is related.

@TomatoToaster
Copy link
Contributor Author

Friendly bump on this @pecanoro when you get the time!

@pecanoro
Copy link
Contributor

pecanoro commented Feb 3, 2022

I really thought I had reviewed this lol Let me take a look now

@pecanoro pecanoro merged commit 73fa211 into main Feb 3, 2022
@pecanoro pecanoro deleted the amal-ucpr-name-duplicate branch February 3, 2022 16:32
@OSBotify
Copy link
Contributor

OSBotify commented Feb 3, 2022

✋ 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
Copy link
Contributor

OSBotify commented Feb 4, 2022

🚀 Deployed to staging by @pecanoro in version: 1.1.36-0 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@OSBotify
Copy link
Contributor

OSBotify commented Feb 7, 2022

🚀 Deployed to production by @roryabraham in version: 1.1.36-0 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants