-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$250] Don't allow the Approver on a policy to leave a workspace chat #43852
Comments
Triggered auto assignment to @thienlnam ( |
👋 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:
|
@thienlnam 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 |
We think that this bug might be related to #wave-collect - Release 1 |
This seemed like it would have been from a BE PR, but I haven't seen anything that would change how this works. Going to open up externally for some more eyes on the App checklist |
Job added to Upwork: https://www.upwork.com/jobs/~0194a281c56dd7cd3e |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
Demoting since this is an edge case bug and doesn't need to block deploy |
ProposalPlease re-state the problem that we are trying to solve in this issue.Offline when a user clicking "Submit expense" button from composer, and then clicking "Leave" button on Details page and then continuing submit expense, submit expense works though the user is already left the workspace. What is the root cause of that problem?App/src/pages/ReportDetailsPage.tsx Lines 124 to 129 in 2995925
Here a user left the workspace (it means report.notificationPreference = hidden ) but on policy the user doesn't get removed from employees. And Report.leaveGroupChat worked not Report.leaveRoom for workspace because the condition didn't check workspace or not. Since the user isn't removed from policy, the user can submit expense still.
What changes do you think we should make in order to solve the problem?We should let App/src/pages/ReportDetailsPage.tsx Lines 124 to 129 in 2995925
Add if (isChatRoom || isPolicyExpenseChat) {
const isWorkspaceMemberLeavingWorkspaceRoom = (report.visibility === CONST.REPORT.VISIBILITY.RESTRICTED || isPolicyExpenseChat) && isPolicyEmployee;
const accountIDsToRemove = [session?.accountID];
Member.removeMembers(accountIDsToRemove, report.policyID);
Report.leaveRoom(report.reportID, isWorkspaceMemberLeavingWorkspaceRoom);
Navgation.resetToHome();
return;
}
Report.leaveGroupChat(report.reportID); Then when clicking What alternative solutions did you explore? (Optional)N/A 2024-06-18.11.40.47.mov |
Triggered auto assignment to @laurenreidexpensify ( |
I could not reproduce the issue because the leave option is no longer available on the details page. Screen.Recording.2024-06-19.at.15.30.48.mov |
@thienlnam what do you think re: @sobitneupane's comment above? |
Hmm, it looks like you were invited to that workspace too. Did we end up removing / moving the leave button recently? Maybe this change? |
Not overdue - pending proposals |
The other cases were addressed here #44237, so now we just need to handle the approver case |
@sobitneupane, @thienlnam, @isabelastisser Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Still waiting for proposals. |
Not overdue - pending proposals |
@thienlnam Could you clarify how to handle the approver case? As I understand, the approver is assigned by workspace owner. Is it right? Also as I understand the case is when the approver can leave the workspace while submitting expense. Please fix me if my understanding is wrong. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@sobitneupane @thienlnam @isabelastisser this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
Issue not reproducible during KI retests. (First week) |
@sobitneupane, @thienlnam, @isabelastisser Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Bump @mvtglobally, can you please retest? Thanks! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@sobitneupane, @thienlnam, @isabelastisser 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
Bump @mvtglobally. can you please retest? thanks! |
Issue not reproducible during KI retests. (Second week) |
Here is a video, issue no longer reproducible Screen.Recording.2024-07-10.at.9.39.38.PM.mp4 |
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.84-2
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:
Precondition:
Expected Result:
The option to leave should not show up for a workspace chat unless you were invited into the room by a mention and not part of the approval workflow
Actual Result:
You see the option to leave the room
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
20240618_000151.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @sobitneupaneThe text was updated successfully, but these errors were encountered: