Skip to content

[Awaiting payment 21-12-23] [$1000] Duplicate room name error doesn't appear if you aren't a member of the original room #21747

Closed

Description

@kbecciv

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Go to staging.new.expensify.com
  2. Create a workspace
  3. Now create a New room and choose the workspace you created
  4. Click the room header and leave the room
  5. Now create a New room again using the same name of the room you just left and the same workspace you selected for the first room

Expected Result:

The room name field should have an in-line error message upon losing focus of that field

Actual Result:

You're allowed to proceed to create the room and run into an error after the creation attempt. We suspect this has something to do with the check for a duplicate room existing being limited to rooms you are a member of, not the workspace you are trying to create the room on.

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.32-5
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

green-2023-06-25_13.46.19.1.mp4
Recording.919.mp4

Expensify/Expensify Issue URL:
Issue reported by: @priya-zha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687680050819699

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01cbde78f15d909ff4
  • Upwork Job ID: 1675822342302105600
  • Last Price Increase: 2023-07-10
  • Automatic offers:
    • esh-g | Contributor | 27774680
    • priya-zha | Reporter | 27774681
Issue OwnerCurrent Issue Owner: @jasperhuangg

Activity

  1. dukenv0307 commented on Jun 27, 2023

    @dukenv0307
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    Settings doesn't work on a room that has an error of 'previously created'

    What is the root cause of that problem?

    In ReportDetailPage, we don't have any check to hide setting item if report has an error

    if (isPolicyExpenseChat || isChatRoom || isThread) {
    items.push({
    key: CONST.REPORT_DETAILS_MENU_ITEM.SETTINGS,
    translationKey: 'common.settings',
    icon: Expensicons.Gear,

    What changes do you think we should make in order to solve the problem?

    We can add a check here not to show setting item if report has an error

    const addWorkspaceRoomOrChatErrors = lodashGet(props.report, 'errorFields.addWorkspaceRoom') || lodashGet(props.report, 'errorFields.createChat');
    if ((isPolicyExpenseChat || isChatRoom || isThread) && !addWorkspaceRoomOrChatErrors) {
    

    onPress={() => ReportUtils.navigateToDetailsPage(props.report)}

    What alternative solutions did you explore? (Optional)

  2. added
    Daily
    Bug
    on Jun 27, 2023
  3. melvin-bot commented on Jun 27, 2023

    @melvin-bot

    Triggered auto assignment to @trjExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  4. melvin-bot commented on Jun 27, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  5. trjExpensify commented on Jun 30, 2023

    @trjExpensify
    Contributor

    Okay, so I actually don't think the user should be getting this far in the flow if the room name is a dupe. When you're still a member of a room, we show an in-line error:
    image (7)

    But here, when you leave the room AND then try and create a new room with the same name, we don't do that. We let you continue on and error out on creation. So I think we should be showing a error message in-line the room name field if the room has a dupe name on the workspace you've selected. That would avoid this scenario. It seems like our check for if a room already exists takes into account rooms you are a member of, which in this case, you aren't a member of the room.

  6. changed the title [-]Web - Settings doesn't work on a room that has an error of 'previously created'[/-] [+]Duplicate room name error doesn't appear if you aren't a member of the original room[/+] on Jul 3, 2023
  7. trjExpensify commented on Jul 3, 2023

    @trjExpensify
    Contributor

    Okay, updated the OP following the discussion in thread.

    CC: @MitchExpensify

  8. added
    External
    on Jul 3, 2023
  9. changed the title [-]Duplicate room name error doesn't appear if you aren't a member of the original room[/-] [+][$1000] Duplicate room name error doesn't appear if you aren't a member of the original room[/+] on Jul 3, 2023
  10. melvin-bot commented on Jul 3, 2023

    @melvin-bot
  11. added
    Help Wanted
    on Jul 3, 2023
  12. 148 remaining items

  13. melvin-bot commented on Nov 21, 2023

    @melvin-bot

    📣 @esh-g 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

    Offer link
    Upwork job
    Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
    Keep in mind: Code of Conduct | Contributing 📖

  14. melvin-bot commented on Nov 21, 2023

    @melvin-bot

    📣 @priya-zha 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app!

    Offer link
    Upwork job

  15. melvin-bot commented on Nov 21, 2023

    @melvin-bot

    📣 @allroundexperts Please request via NewDot manual requests for the Reviewer role ($1000)

  16. jasperhuangg commented on Nov 21, 2023

    @jasperhuangg
    Contributor

    @esh-g awesome, let's move forward with your proposal! thanks :)

  17. added
    Reviewing
    Weekly
    and removed
    Daily
    on Nov 21, 2023
  18. esh-g commented on Nov 21, 2023

    @esh-g
    Contributor
  19. jasperhuangg commented on Nov 29, 2023

    @jasperhuangg
    Contributor

    @allroundexperts bump on the review, thanks!

  20. esh-g commented on Dec 21, 2023

    @esh-g
    Contributor

    @trjExpensify @jasperhuangg Could we get the payment for this processed before the holidays? Thanks!
    Seems like since this is still marked as hold so the payment automation date didn't happen...

  21. changed the title [-][HOLD E/E #290783] [$1000] Duplicate room name error doesn't appear if you aren't a member of the original room[/-] [+][Awaiting payment 21-12-23] [$1000] Duplicate room name error doesn't appear if you aren't a member of the original room[/+] on Dec 21, 2023
  22. trjExpensify commented on Dec 21, 2023

    @trjExpensify
    Contributor

    Confirming payments:

    Settled up with @esh-g and @priya-zha. @allroundexperts you can request. Closing!

  23. JmillsExpensify commented on Jan 24, 2024

    @JmillsExpensify
    Contributor

    $1,000 payment to @allroundexperts based on comment above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugEngineeringExternalReviewingWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions