Skip to content
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

Fixed #7 - Keep WeakReference to parent ParseObject in ParseRelation #25

Merged
merged 1 commit into from
Aug 17, 2015

Conversation

sowrabh
Copy link
Contributor

@sowrabh sowrabh commented Aug 17, 2015

As suggested in the issue, keeping reference to parent objectId, className and recreating parent pointer when the parent is GC'ed.

@facebook-github-bot
Copy link

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!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

return null;
}
if(parent.get() == null){
return ParseDecoder.get().decodePointer(parentClassName, parentObjectId);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's just use ParseObject.createWithoutData(String, String) instead here so it'll be more concise.

@grantland
Copy link
Contributor

This looks awesome! I just have a minor change that you could squash into your current commit and I can merge this in.

…` in `ParseRelation`

As suggested in the issue, keeping reference to parent objectId, className and recreating parent pointer when the parent is GC'ed. All tests passed locally.

Fixed parse-community#7 - Keep `WeakReference` to parent `ParseObject` in `ParseRelation`
As suggested in the issue, keeping reference to parent objectId, className and recreating parent pointer when the parent is GC'ed. All tests passed locally.

Addressing CR comments

Merge branch 'parserelation-fix' of https://github.com/sowrabh/Parse-SDK-Android into parserelation-fix
@sowrabh sowrabh force-pushed the parserelation-fix branch from 4068716 to 12b6cb0 Compare August 17, 2015 18:05
@sowrabh
Copy link
Contributor Author

sowrabh commented Aug 17, 2015

@grantland Thanks for the quick review. Addressed and squashed. Please have a look.

grantland added a commit that referenced this pull request Aug 17, 2015
Fixed #7 - Keep `WeakReference` to parent `ParseObject` in `ParseRelation`
@grantland grantland merged commit 6ed95a5 into parse-community:master Aug 17, 2015
@grantland
Copy link
Contributor

Thanks for your contribution!

@grantland
Copy link
Contributor

@sowrabh If you're interested we'd love to send you some Parse swag as a thank you for your contribution! Just send me an email with your shipping address and t-shirt size, my email is on my GitHub profile page. Thanks again!

@sowrabh
Copy link
Contributor Author

sowrabh commented Aug 18, 2015

@grantland Thanks a bunch. Sent you the details on email.

@grantland grantland modified the milestone: 1.10.1 Aug 18, 2015
@facebook-github-bot
Copy link

@sowrabh updated the pull request.

@mtrezza mtrezza added type:feature New feature or improvement of existing feature and removed type:improvement labels Dec 6, 2021
@parse-github-assistant
Copy link

The label type:feature cannot be used here.

@parse-github-assistant parse-github-assistant bot removed the type:feature New feature or improvement of existing feature label Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants