persist: true -> retry: true#19509
Conversation
| const shouldPersist = lodashGet(request, 'data.persist', false); | ||
| if (shouldPersist) { | ||
| const shouldRetry = lodashGet(request, 'data.retry', false); | ||
| if (shouldRetry) { |
There was a problem hiding this comment.
Idk... I think we don't really need a retry: true at all?
What is passing persist now besides tests? I think we can just remove this entirely?
There was a problem hiding this comment.
Yeah, just tests... great will do!
|
Any status update for this one @yuwenmemon? |
|
Ah hm, I've forgotten about this one sadly and TBH don't remember the context super well now. @marcaaron I believe we should just remove persist entirely is that right? Curious, what changed so that this is the case? |
|
I know it's been a while. We can close it for focus if you don't want to dive back in and continue to track the progress in the cleanup issue here (which I just made a plane task). This stuff is pretty tricky and demands some intense focus to make sure we are not screwing things up 😄 For this PR, I don't think anything is passing a Retry-ability also isn't determined by any sort of modifier any more IIRC. Anything that is going into the So, basically we can just remove the entire block here: Lines 43 to 47 in 9bd7ccd And then fix up the tests. And as a final step to CYA - check that there are no usages of |
For the tests do you think it would be a good idea to move a bunch of those |
No strong feelings. |
|
Mainly we just have to update the tests so they are not breaking on the missing param that we are no longer passing. Any cleanup beyond that might be a bonus, but not expected tbh. |
|
@AndrewGable 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] |
|
@marcaaron this is ready for review now! |
marcaaron
left a comment
There was a problem hiding this comment.
LGTM. AFAICT we are just removing dead code. Next up - 🔪 Network.post() itself (less easy since it is all tied up with the authentication code still).
|
I'm running out of time to do the testing for this one today so adding it to the top of my list for tomorrow - though - I think we can skip it since we're removing dead code. |
|
🧪🧪 Use the links below to test this build in android and iOS. Happy testing! 🧪🧪 |
Reviewer Checklist
Screenshots/VideosMobile Web - ChromeChecked web and it didn't see anything bad so not going nuts with the testing as we are removing dead code Mobile Web - SafariChecked web and it didn't see anything bad so not going nuts with the testing as we are removing dead code DesktopChecked web and it didn't see anything bad so not going nuts with the testing as we are removing dead code iOSChecked web and it didn't see anything bad so not going nuts with the testing as we are removing dead code AndroidChecked web and it didn't see anything bad so not going nuts with the testing as we are removing dead code |
|
@marcaaron looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
Not emergency. All the tests look like they passed to me. The checklist is checked so maybe it didn't finish in time. |
|
🚀 Deployed to staging by https://github.com/marcaaron in version: 1.3.42-0 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.42-26 🚀
|

Details
Fixed Issues
$ GH_LINK
PROPOSAL: GH_LINK_ISSUE(COMMENT)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android