fix: DRY resolving duplicate request - #65277
Conversation
|
@DylanDylann 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] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-07-03.at.16.05.33.movAndroid: mWeb ChromeScreen.Recording.2025-07-03.at.16.08.05.moviOS: HybridAppScreen.Recording.2025-07-03.at.16.04.15.moviOS: mWeb SafariScreen.Recording.2025-07-03.at.16.07.11.movMacOS: Chrome / SafariScreen.Recording.2025-07-03.at.15.49.57.movMacOS: DesktopScreen.Recording.2025-07-03.at.15.55.04.mov |
| * This function is used to write data to the API while ensuring that there are no conflicts with enabling policy features. | ||
| * If a conflict is found, it resolves the conflict by deleting the duplicated request. | ||
| * | ||
| * @param command - Name of API command to call. |
There was a problem hiding this comment.
You can remove these docs since TS will do the type checking (same for the method above)
There was a problem hiding this comment.
I just followed other function's docs in the same file - anyways if you want it removed then I'll push a commit ASAP.
There was a problem hiding this comment.
Yes, please remove them. They aren't necessary and will only get out-of-date as time goes on. Bonus if you remove the rest while you're at it 😁
|
@tgolen I updated! |
|
✋ 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/tgolen in version: 9.1.77-1 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.77-2 🚀
|
Explanation of Change
Fixed Issues
$ #64935
PROPOSAL: #64935 (comment)
Tests
OpenApp/ReconnectAppAPI is only called onceOffline tests
QA Steps
OpenApp/ReconnectAppAPI is only called oncePR 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))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
Screen.Recording.2025-07-02.at.23.38.55.mov
Android: mWeb Chrome
Screen.Recording.2025-07-02.at.23.42.13.mov
iOS: Native
Screen.Recording.2025-07-02.at.23.44.17.mov
iOS: mWeb Safari
Screen.Recording.2025-07-02.at.23.46.49.mov
MacOS: Chrome / Safari
Screen.Recording.2025-07-02.at.23.48.29.mp4
MacOS: Desktop
Screen.Recording.2025-07-02.at.23.49.06.mov