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 2024-03-22] [HOLD for payment 2024-03-20] [$500] Thread - Thread header shows "Unavailable workspace" #38171

Closed
6 tasks done
lanitochka17 opened this issue Mar 12, 2024 · 21 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Mar 12, 2024

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.51-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: N/A
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to any chat
  3. Send a message
  4. Right click on the message > Reply in thread

Expected Result:

The thread header will not show "Unavailable workspace"

Actual Result:

The thread header shows "Unavailable workspace"

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

Bug6411451_1710272160875.20240313_030619.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~014ff42a92e62198ae
  • Upwork Job ID: 1767656572824260608
  • Last Price Increase: 2024-03-12
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Mar 12, 2024
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 Mar 12, 2024

Triggered auto assignment to @srikarparsi (Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@lanitochka17
Copy link
Author

Production:

Screenshot 2024-03-13 at 03 46 17

@lanitochka17
Copy link
Author

We think that this bug might be related to #vip-vsp
CC @quinthar

@lanitochka17
Copy link
Author

@srikarparsi FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@Tony-MK
Copy link
Contributor

Tony-MK commented Mar 12, 2024

Proposal

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

Thread - Thread header shows "Unavailable workspace"

What is the root cause of that problem?

Regression from #37030.

We are using the !isDM function in the isWorkspaceThread function but the !isDM function now uses the !isThread function to decide whether a report is a workspace thread.

App/src/libs/ReportUtils.ts

Lines 1183 to 1185 in bca0505

function isWorkspaceThread(report: OnyxEntry<Report>): boolean {
return isThread(report) && isChatReport(report) && !isDM(report);
}

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

Just like how the isDM function was written before, in the isWorkspaceThread function, we should substitute the !isDM(report) function with !getChatType(report) or check if the root parent is a policy.

@srikarparsi srikarparsi added the External Added to denote the issue can be worked on by a contributor label Mar 12, 2024
@melvin-bot melvin-bot bot changed the title Thread - Thread header shows "Unavailable workspace" [$500] Thread - Thread header shows "Unavailable workspace" Mar 12, 2024
Copy link

melvin-bot bot commented Mar 12, 2024

Job added to Upwork: https://www.upwork.com/jobs/~014ff42a92e62198ae

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 12, 2024
Copy link

melvin-bot bot commented Mar 12, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav (External)

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 12, 2024
Copy link

melvin-bot bot commented Mar 12, 2024

❌ There was an error making the offer to @Tony-MK for the Contributor role. The BZ member will need to manually hire the contributor.

Tony-MK added a commit to Tony-MK/Expensify-App that referenced this issue Mar 12, 2024
… to solve regression Expensify#38171

* fixing isWorkspaceThread function regression

* double negation  (`!!`) on the `getChatType` function
@allgandalf
Copy link
Contributor

@Tony-MK , you cross referenced to your own repository 😆 , please point the branch to the main expensify repo 😅

@Tony-MK Tony-MK mentioned this issue Mar 12, 2024
50 tasks
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Hourly KSv2 Weekly KSv2 labels Mar 12, 2024
@melvin-bot melvin-bot bot changed the title [$500] Thread - Thread header shows "Unavailable workspace" [HOLD for payment 2024-03-20] [$500] Thread - Thread header shows "Unavailable workspace" Mar 13, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Mar 13, 2024
Copy link

melvin-bot bot commented Mar 13, 2024

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

Copy link

melvin-bot bot commented Mar 13, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.51-3 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 2024-03-20. 🎊

For reference, here are some details about the assignees on this issue:

  • @mananjadhav requires payment through NewDot Manual Requests
  • @Tony-MK requires payment (Needs manual offer from BZ)

@luacmartins luacmartins removed the DeployBlockerCash This issue or pull request should block deployment label Mar 14, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Mar 15, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-03-20] [$500] Thread - Thread header shows "Unavailable workspace" [HOLD for payment 2024-03-22] [HOLD for payment 2024-03-20] [$500] Thread - Thread header shows "Unavailable workspace" Mar 15, 2024
Copy link

melvin-bot bot commented Mar 15, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.52-6 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 2024-03-22. 🎊

For reference, here are some details about the assignees on this issue:

  • @mananjadhav requires payment through NewDot Manual Requests
  • @Tony-MK requires payment (Needs manual offer from BZ)

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Mar 20, 2024
@mananjadhav
Copy link
Collaborator

@luacmartins @srikarparsi Can we assign a BZ member here. We need to payout @Tony-MK.

@luacmartins luacmartins added the Bug Something is broken. Auto assigns a BugZero manager. label Mar 22, 2024
Copy link

melvin-bot bot commented Mar 22, 2024

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

@luacmartins
Copy link
Contributor

@trjExpensify could you please help with payouts?

@mananjadhav
Copy link
Collaborator

Thanks. There will be a payout for @Tony-MK only. I didn't review the fix.

@trjExpensify
Copy link
Contributor

Sure thing! @Tony-MK sent you an offer. Payment summary as follows:

@melvin-bot melvin-bot bot added the Overdue label Mar 25, 2024
@trjExpensify
Copy link
Contributor

Still awaiting @Tony-MK's acceptance of the offer. Once paid, we can close this out.

@melvin-bot melvin-bot bot removed the Overdue label Mar 25, 2024
@Tony-MK
Copy link
Contributor

Tony-MK commented Mar 25, 2024

Accepted the offer, Thanks.

@trjExpensify
Copy link
Contributor

Paid!

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 Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

7 participants