Remove uneeded calls to approval workflow updates - #82811
Conversation
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good for product 👍
|
Is it for review? Thanks |
Yes. You can read the explanation in the main post |
|
@Gonals it seems the bug is still reproducible: Screen.Recording.2026-02-19.at.11.38.12.movCan you reproduce it? Thank you. |
|
Coming back to this in a bit! |
|
Hi @Gonals, do you have any updates for me here? Thanks. |
Ah, thanks for the ping! This should be OFF HOLD now. It seems to work fine for me |
|
Hi @Gonals it seems the first part of the test steps is going well: Screen.Recording.2026-04-08.at.17.22.00.movHowever, the original bug seems to still be reproducible: Screen.Recording.2026-04-08.at.17.25.42.movMaybe I'm doing something wrong, can you reproduce it? Thank you. |
Hmmm. I'll do further investigation. |
|
Great, but I double-checked and even the first part of the tests isn't passing now: Screen.Recording.2026-04-17.at.10.01.54.mov@Gonals could it be related to the warnings/errors here? I'll review it again as soon as you fix them, thank you. |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
I'm a little busy with another PR today, but I'll test by the end of the day. |
Setting a HOLD on it for now! I'm seeing the bug (sometimes). Currently investigating the backend. |
|
Actually, we are good to go. The fix was frontend. Give it a shot! |
|
It still seems strange to me @Gonals, I can't figure out where the problem is, I'll continue investigating. Screen.Recording.2026-05-19.at.12.31.10.mov |
Any chance the report was not submitted? You should have seen an error |
|
Thanks for noticing and sorry for the confusion. I tested it again now and everything looks good, congrats on the hard work :D |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb Chrome82811_android_web.moviOS: HybridAppiOS: mWeb Safari82811_ios_web.movMacOS: Chrome / Safari82811_web_chrome.mov |
|
@mjasikowski Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
🚧 @mjasikowski has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/mjasikowski in version: 9.3.79-1 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are needed for this PR. This PR removes redundant frontend code that duplicated approval workflow updates when removing workspace members — the backend ( The relevant help site articles (Managing-Workspace-Members and Add-Approvals) don't document the automatic approver reassignment on member removal, and since no user-facing behavior changed, no documentation updates are required. |
|
Deploy Blocker ##91439 was identified to be related to this PR |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.79-4 🚀
|

Explanation of Change
SharePolicy.cpp already handles approval workflow updates when an approver is removed, so these extra calls are unnecessary. We want to wait for the Auth PR to deploy, as it does add some Spotnana handling, but this can be reviewed and tested already
Fixed Issues
$ #75020
PROPOSAL:
Tests
Offline tests
None
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari