-
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
[$500] Manage members - Page is blinking after removing user from Workspace #8927
Comments
Triggered auto assignment to @TomatoToaster ( |
Triggered auto assignment to @adelekennedy ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
Triggered auto assignment to @deetergp ( |
ProposalWhen we remove a member removeMembers function gets called and inside it we update the policy after removing the users using App/src/libs/actions/Policy.js Lines 296 to 302 in 572f6cb
We are doing the same thing again here. It's not needed and removing it will solve this. App/src/libs/actions/Policy.js Lines 519 to 527 in 572f6cb
I propose the following changes - function subscribeToPolicyEvents() {
- _.each(allPolicies, (policy, key) => {
+ _.each(allPolicies, (policy) => {
const pusherChannelName = `public-policyEditor-${policy.id}${CONFIG.PUSHER.SUFFIX}`;
Pusher.subscribe(pusherChannelName, 'policyEmployeeRemoved', ({removedEmails, policyExpenseChatIDs, defaultRoomChatIDs}) => {
- const policyWithoutEmployee = _.clone(policy);
- policyWithoutEmployee.employeeList = _.without(policy.employeeList, ...removedEmails);
-
- // Remove the members from the policy
- Onyx.set(key, policyWithoutEmployee);
// Refetch the policy expense chats to update their state
if (!_.isEmpty(policyExpenseChatIDs)) {
Report.fetchChatReportsByIDs(policyExpenseChatIDs);
} |
@thesahindia I went through your proposal. Based on what I see, |
I agree with @mananjadhav — we're going to need that value in Onyx & for Pusher. |
Switching this back to |
I missed adding the weekly label |
Also, bumping @adelekennedy to re-add the job in Upwork so @thesahindia can start work on it. |
reopened! @thesahindia do you mind applying here? |
Applied ✅ |
@thesahindia Any updates for me on this one? |
@mananjadhav, I have pushed the code now. |
Issue not reproducible during KI retests. (First week) |
Still going through tests - not overdue |
Issue not reproducible during KI retests. (Second week) |
@adelekennedy It looks like this one is good to go and we should pay @thesahindia for their effort 👍 |
@deetergp ty ty, I'll pay this out in 7 days! |
This hit production but the title wasn't updated |
Issue not reproducible during KI retests. (Third week) |
@adelekennedy Quick bump. The regression period is complete. PR was deployed 8 days back. For some reason title wasn't updated. |
Issue not reproducible during KI retests. (Fourth week) Are we good to close this? |
@mvtglobally Payments are pending for this one. We can close this out once that is through. @adelekennedy quick reminder |
Hmm, do we know why the title didn't change? Happy to pay out but I'm concerned that something is broken here @deetergp |
No reporting bonus, C+: @mananjadhav, Contributor: @thesahindia |
Bump for upwork. |
bump @adelekennedy @deetergp for Upwork |
Strange - I'm not getting any notifications from this GH, I just sent the payment through with a bonus for waiting |
Thanks @adelekennedy for the quick TAT and bonus 🤑 |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
Page is not blinking after removing user from Workspace
Actual Result:
Page is blinking after removing user from Workspace
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number: 1.1.57.12
Reproducible in staging?: Yes
Reproducible in production?: Yes
Email or phone of affected tester (no customers): any
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
ios.8689.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause
Slack conversation:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: