-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Due for payment 2025-02-25] [$250] Prevent self approval remains enabled with only one member #56644
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
Comments
Triggered auto assignment to @OfstadC ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Prevent self approval remains enabled with only one member What is the root cause of that problem?The logic to disable the "Prevent self-approvals" toggle based on the member count is only executed at the time the toggle is changed. App/src/pages/workspace/rules/ExpenseReportRulesSection.tsx Lines 49 to 60 in 48520ec
What changes do you think we should make in order to solve the problem?We can use useEffect(() => {
if (defaultWorkflowMembers && defaultWorkflowMembers.length < 2 && policy?.preventSelfApproval) {
setPolicyPreventSelfApproval(policyID, false);
}
}, [defaultWorkflowMembers, policy?.preventSelfApproval, policyID]); What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A What alternative solutions did you explore? (Optional)N/A |
🚨 Edited by proposal-police: This proposal was edited at 2025-02-11 15:24:06 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Prevent Self Approval remains Enabled with only the owner as a member. What is the root cause of that problem?We don't have any logic to disable
What changes do you think we should make in order to solve the problem?We need to apply the same logic in
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?Create a test for What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
Handling this one as I have worked on the feature. |
@IuliiaHerets I'm unable to reproduce. See the video test below, on staging: Screen.Recording.2025-02-11.at.11.29.59.mov |
@lakchote I still can able to reproduce this one on staging and on the latest main. Screen.Recording.2025-02-11.at.18.04.00.mov |
I've retested and I'm still not able to reproduce either on staging or main @mkzie2. What is the result of the API call |
@lakchote To reproduce this one, you should remove the member in the member detail page like I did here #56644 (comment). It's a frontend issue because we don't have logic to call |
Yeah, I think that's right. Remove from bulk select menu, can't repro: 2025-02-11_16-33-53.mp4Remove from member details screen, can repro: 2025-02-11_16-35-38.mp4 |
Making this |
Job added to Upwork: https://www.upwork.com/jobs/~021889681298278222810 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
@parasharrajat please review @mkzie2's proposal. |
Current assignee @lakchote is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
@mkzie2's proposal LGTM. |
📣 @mkzie2 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
I think we don't need this because. I checked the PR #50488 that used the interaction on the member page, it's used to ensure the confirm modal display the correct text before it's closed. On the member detail page the content in the confirm modal isn't changed so it's unnecessary. |
I forgot to remove this section when I updated my proposal. With the new proposal, we update the Prevent Self-Approvals in the UI so I don't think we need to add the test here |
@parasharrajat The PR is ready. |
PR has been merged. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.99-2 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 2025-02-25. 🎊 For reference, here are some details about the assignees on this issue:
|
@parasharrajat @OfstadC @parasharrajat The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalPrecondition:
Test:
Do we agree 👍 or 👎 |
Payment Summary
|
Payment requested as per #56644 (comment) |
$250 approved for @parasharrajat |
Uh oh!
There was an error while loading. Please reload this page.
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: v9.0.96-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail: #55740
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: macOS/chrome
App Component: Workspace Settings
Action Performed:
Prerequisites:
Steps
Expected Result:
Prevent Self Approval is disabled when there is only one member. Self approvals can't be enabled until this workspace has at least two members.
Actual Result:
Prevent Self Approval remains Enabled with only the owner as a member.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6739183_1739250164964.Screen_Recording_2025-02-11_at_6.22.09_in_the_morning.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @OfstadCThe text was updated successfully, but these errors were encountered: