-
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
persist: true -> retry: true #19509
persist: true -> retry: true #19509
Conversation
src/libs/Network/index.js
Outdated
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android