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

[HOLD for payment 2023-12-26] Room - Unable to leave public room #33010

Closed
6 tasks done
lanitochka17 opened this issue Dec 13, 2023 · 14 comments
Closed
6 tasks done

[HOLD for payment 2023-12-26] Room - Unable to leave public room #33010

lanitochka17 opened this issue Dec 13, 2023 · 14 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Dec 13, 2023

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


Version Number: 1.4.12-0
Reproducible in staging?: Y
Reproducible in production?: N
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Go to staging.new.expensify.com
  2. Click FAB > Start chat > Room
  3. Create a public room
  4. Go to the public room
  5. Click 3-dot menu > Leave
    Note that user is unable to leave the room

Expected Result:

User is able to leave the room

Actual Result:

User is unable to leave the room. The room changes to Archived and back to normal

Workaround:

Unknown

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6312080_1702492440997.public_room.mp4

View all open jobs on GitHub

@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Dec 13, 2023
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

Copy link

melvin-bot bot commented Dec 13, 2023

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

@hayata-suenaga
Copy link
Contributor

hayata-suenaga commented Dec 13, 2023

This is the response for the LeaveRoom command.

Screenshot 2023-12-13 at 12 35 58 PM

This is the response for the LeaveRoom command on production

Screenshot 2023-12-13 at 12 40 17 PM

There seems no difference between the two responses, so the issue probably stem from the front end code change.

Let me if the action code has recently been changed -> https://expensify.slack.com/archives/C0593T50UHG/p1702500582444429

@ishpaul777
Copy link
Contributor

this might be coming from to #28730, its a big PR so i am still trying to get to exact root cause

@hayata-suenaga
Copy link
Contributor

Yes I already pinged @blazejkustra. Meanwhile if you find a root cause, please feel free to make a fix PR for this @ishpaul777.

@dukenv0307
Copy link
Contributor

dukenv0307 commented Dec 14, 2023

Proposal

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

User is unable to leave the room. The room changes to Archived and back to normal

What is the root cause of that problem?

When we leave room, we don't set the reportName in optimistic data of report

reportID,

which makes reconnectToReport API is called and then the data of the report is restore.

if (report.reportID && report.reportName === undefined) {

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

  1. We should add reportName in the optimistic data of report here

reportID,

or we should use merge method, and only update statusNum and stateNum
2. To trigger navigating after leaving room, we should update statusNum, stateNum in successData

{
    ...Object.keys(report).reduce<Record<string, null>>((acc, key) => {
        acc[key] = null;
        return acc;
    }, {}),
    stateNum: CONST.REPORT.STATE_NUM.SUBMITTED,
    statusNum: CONST.REPORT.STATUS.CLOSED,
}

(prevOnyxReportID &&

Or we should remove this check from the condition because reportID still present in optimisticData

!onyxReportID &&

Or remove reportID from optimistic data here.

reportID,

What alternative solutions did you explore? (Optional)

For point 2 in my proposal, we can remove this case in ReportScreen and copy the navigate logic to leaveRoom function

if (isWorkspaceMemberLeavingWorkspaceRoom) {

@dukenv0307
Copy link
Contributor

@hayata-suenaga What about my proposal?

@hayata-suenaga
Copy link
Contributor

waiting for @blazejkustra

@Julesssss Julesssss added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Dec 14, 2023
@Julesssss
Copy link
Contributor

Okay, so we still need to fix this, but it's occuring on production 1.4.11-25 and not a blocker. checking it off the checklist:

screen-20231214-104607.mp4

@Julesssss
Copy link
Contributor

Anyway, this PR seems to resolve the issue 👍

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Dec 14, 2023
@blazejkustra
Copy link
Contributor

@hayata-suenaga @Julesssss Sorry for late response I finished work yesterday, here is a PR that should fix it. As this is a regression that originated from my TS migration PR, I fixed it without a proposal. If needed I can post one with more details, just let me know.

@Expensify Expensify deleted a comment from melvin-bot bot Dec 14, 2023
@hayata-suenaga
Copy link
Contributor

Because the PR has been merged, I'll close this issue

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Dec 19, 2023
@melvin-bot melvin-bot bot added the Awaiting Payment Auto-added when associated PR is deployed to production label Dec 19, 2023
@melvin-bot melvin-bot bot changed the title Room - Unable to leave public room [HOLD for payment 2023-12-26] Room - Unable to leave public room Dec 19, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Dec 19, 2023
Copy link

melvin-bot bot commented Dec 19, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Dec 19, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.13-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2023-12-26. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering Weekly KSv2
Projects
None yet
Development

No branches or pull requests

6 participants