-
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
[$1000] Web - WorkSpaces - Duplicate notification removed user in #admins WorkSpace #25430
Comments
Triggered auto assignment to @lschurr ( |
Bug0 Triage Checklist (Main S/O)
|
This looks like a backend issue. |
Job added to Upwork: https://www.upwork.com/jobs/~0187124a8a69db5bbb |
Triggered auto assignment to Contributor Plus for review of internal employee PR - @Santhosh-Sellavel ( |
Triggered auto assignment to @joelbettner ( |
Adding Eng since this seems to be a backend issue. |
Bump on this one @joelbettner |
Hi @joelbettner are you able to take a look at this one? |
Current assignee @lschurr is eligible for the External assigner, not assigning anyone new. |
Current assignee @Santhosh-Sellavel is eligible for the External assigner, not assigning anyone new. |
Current assignee @lschurr is eligible for the External assigner, not assigning anyone new. |
Current assignee @Santhosh-Sellavel is eligible for the External assigner, not assigning anyone new. |
This should be externally fixable, I believe. |
I've been able to reproduce this on my machine. I did the following:
I can confirm in the logs that the call to Auth to unshare the policy/workspace was only made once per user.
I was also able to confirm in the database that two report actions for the same removal were made: joel@db2.rno:~$ sudo readdb.sh "SELECT * FROM reportActions WHERE reportID = 2307376022370630;"
created reportID accountID action message reportActionID
----------------------- ---------------- --------- ------------------------------- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------
2023-08-24 18:53:55.500 2307376022370630 0 CREATED 8767464410592272693
2023-08-24 18:54:20.044 2307376022370630 3243510 POLICYCHANGELOG_UPDATE_NAME {"lastModified":"2023-08-24 18:54:20.044","newName":"Test Workspace","oldName":"Expensify's Workspace 2","policyType":"free"} 1038665327920586175
2023-08-24 18:55:02.456 2307376022370630 3243510 POLICYCHANGELOG_ADD_EMPLOYEE {"accountID":"2697693","email":"[email protected]","lastModified":"2023-08-24 18:55:02.456","name":"Tim Golen","role":"user"} 8825457442702784574
2023-08-24 18:55:03.167 2307376022370630 3243510 POLICYCHANGELOG_ADD_EMPLOYEE {"accountID":"4314165","email":"[email protected]","lastModified":"2023-08-24 18:55:03.167","name":"David Bondy","role":"user"} 926928206137458025
2023-08-24 18:55:39.079 2307376022370630 3243510 POLICYCHANGELOG_DELETE_EMPLOYEE {"accountID":"4314165","email":"[email protected]","lastModified":"2023-08-24 18:55:39.079","name":"David Bondy","role":"user"} 3429692946684186111
2023-08-24 18:55:40.288 2307376022370630 3243510 POLICYCHANGELOG_DELETE_EMPLOYEE {"accountID":"4314165","email":"[email protected]","lastModified":"2023-08-24 18:55:40.288","name":"David Bondy","role":"user"} 2254763073580718613
2023-08-24 18:55:40.288 2307376022370630 3243510 POLICYCHANGELOG_DELETE_EMPLOYEE {"accountID":"2697693","email":"[email protected]","lastModified":"2023-08-24 18:55:40.288","name":"Tim Golen","role":"user"} 2993888409129769369
2023-08-24 18:59:30.512 2307376022370630 3243510 POLICYCHANGELOG_ADD_EMPLOYEE {"accountID":"2697693","email":"[email protected]","lastModified":"2023-08-24 18:59:30.512","name":"Tim Golen","role":"user"} 1041919926475572973
2023-08-24 18:59:32.238 2307376022370630 3243510 POLICYCHANGELOG_ADD_EMPLOYEE {"accountID":"4314165","email":"[email protected]","lastModified":"2023-08-24 18:59:32.238","name":"David Bondy","role":"user"} 3721961973888883946
2023-08-24 19:00:42.658 2307376022370630 3243510 ADDCOMMENT {"html":"Hmm...I can see that for some reason the message for \"removed user David Bondy (<a href=\"mailto:[email protected]\">dbondy@expensify.com</a>)\" was posted twice, but only once for Tim.","lastModified":"2023-08-24 19:00:42.658"} 6797427364659692266
joel@db2.rno:~$ So, somehow we are calling the command to create the report action twice, but only for one of the users being removed from the policy. |
@joelbettner Can you share example payload that backend is expecting from frontend? I see when we're adding member we're sending members in this format
But for deleting the payload is this
Maybe there's a mistake how frontend is handling the payload? |
@b4s36t4 As I continue to investigate, I think this might only be fixable in the backend. I'll let you know. |
I believe I've found the problem, and it is a back end issue. If you look at the calls to
However, the second call to
So, somehow, the change log is getting larger on the additional calls to |
I can confirm that this is a bug at the API layer and I'll have a fix for it very soon. |
@joelbettner Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@joelbettner Still overdue 6 days?! Let's take care of this! |
@joelbettner 12 days overdue. Walking. Toward. The. Light... |
1 similar comment
@joelbettner 12 days overdue. Walking. Toward. The. Light... |
This issue has not been updated in over 14 days. @joelbettner eroding to Weekly issue. |
This issue has not been updated in over 15 days. @joelbettner eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
@joelbettner, this Monthly task hasn't been acted upon in 6 weeks; closing. If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead. |
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:
The member deletion notice is not repeated.
Actual Result:
The member deletion notice is repeated many times with the same person.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: v1.3.55-3
Reproducible in staging?: Y
Reproducible in production?: Y
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
Notes/Photos/Videos: Any additional supporting documentation
duplicate.noti.remove.member.webm
Recording.1259.mp4
Expensify/Expensify Issue URL:
Issue reported by: @le Thi Thu Thuy
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1691485042751049
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: