-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
IGListAdapter: Fix not returning early when collectionView/dataSource is nil and completion is nil #51
Conversation
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
Attempting to fix the spurious CocoaPods failures in #57 |
@@ -103,14 +103,14 @@ IGLK_SUBCLASSING_RESTRICTED | |||
- (void)performUpdatesAnimated:(BOOL)animated completion:(nullable IGListUpdaterCompletion)completion; | |||
|
|||
/** | |||
Perform an immediate reload of the data in the data source, discarding the old objectss. |
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.
😂 nice one
@benasher44 thanks for fixing the builds! We had a scramble to get all the public CI stuff working yesterday 😅 Awesome find here! |
Thanks for importing. If you are a Facebook employee, you can view this diff on Phabricator. |
Np! |
lol, nice find! |
👏 🙌 |
Summary: Fixed #63. I used the style we use in CocoaPods, but I'm happy to adjust! - [x] All tests pass. Demo project builds and runs. - [x] I added tests, an experiment, or detailed why my change isn't tested. - [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md) Closes #67 Reviewed By: jessesquires Differential Revision: D4015999 Pulled By: rnystrom fbshipit-source-id: bbe8055f22e84c5bdc628b4c1d95dab111774e12
Summary: - Travis appears to be using CocoaPods 1.1.0.beta.2, which is missing some fixes for Xcode 8 (see [sample failing build](https://travis-ci.org/Instagram/IGListKit/jobs/166935850) from #51). - This change will ensure that a consistent CocoaPods version is used by Travis - In the added Gemfile, I picked the latest CocoaPods 1.1.0 RC (matches version in Podfile.lock) and the latest xcpretty. - Changed `pod spec lint` to `pod lib lint` to verify local files instead of files from the version specified in the spec. - [x] All tests pass. Demo project builds and runs. - [x] I added tests, an experiment, or detailed why my change isn't tested. - [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md) Closes #57 Differential Revision: D4019655 Pulled By: rnystrom fbshipit-source-id: 422e55c44dfdf276b587ea6e12ae30218a237ff5
Summary: - Travis appears to be using CocoaPods 1.1.0.beta.2, which is missing some fixes for Xcode 8 (see [sample failing build](https://travis-ci.org/Instagram/IGListKit/jobs/166935850) from Instagram#51). - This change will ensure that a consistent CocoaPods version is used by Travis - In the added Gemfile, I picked the latest CocoaPods 1.1.0 RC (matches version in Podfile.lock) and the latest xcpretty. - Changed `pod spec lint` to `pod lib lint` to verify local files instead of files from the version specified in the spec. - [x] All tests pass. Demo project builds and runs. - [x] I added tests, an experiment, or detailed why my change isn't tested. - [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md) Closes Instagram#57 Differential Revision: D4019655 Pulled By: rnystrom fbshipit-source-id: 422e55c44dfdf276b587ea6e12ae30218a237ff5
Changes in this pull request
reloadDataWithCompletion:
where it looks like we meant to bail out early if thecollectionView
ordataSource
is nil, but it only does so ifcompletion
is provided.Pull request checklist
Notes
Questions
collectionView
might make it somewhere it shouldn't have). Should I add a test anyway?