Skip to content

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

Merged
pecanoro merged 12 commits into
mainfrom
amal-ucpr-name-duplicate
Feb 3, 2022
Merged

Fix broken duplicate name error in User Created Policy Rooms#7446
pecanoro merged 12 commits into
mainfrom
amal-ucpr-name-duplicate

Conversation

@TomatoToaster

@TomatoToaster TomatoToaster commented Jan 27, 2022

Copy link
Copy Markdown
Contributor

@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
Copy Markdown
Contributor Author

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

@TomatoToaster

Copy link
Copy Markdown
Contributor Author

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

@pecanoro

pecanoro commented Feb 3, 2022

Copy link
Copy Markdown
Contributor

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

OSBotify commented Feb 3, 2022

Copy link
Copy Markdown
Contributor

✋ 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

OSBotify commented Feb 4, 2022

Copy link
Copy Markdown
Contributor

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

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

@OSBotify

OSBotify commented Feb 7, 2022

Copy link
Copy Markdown
Contributor

🚀 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