Skip to content

Conversation

richardjrossiii
Copy link
Contributor

This fully decouples object subclassing from the ParseObject class, bringing it up to parity with our other native platforms.

@facebook-github-bot
Copy link

By analyzing the blame information on this pull request, we identified @grantland to be a potential reviewer.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Similar to the state we have on .NET, we lose this logic during this decouple. Thoughts on a good cross-platform and extensible way to have a hook when a certain class is unregistered?

Also: This becomes irrelevant with automatic subclass registration, which is coming soon™

Copy link
Contributor

Choose a reason for hiding this comment

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

Could we keep this for now with a TODO to move to a hook?

The only clean way (in API terms) would be to add listeners/callbacks to ParseObjectSubclassingController for unregister that ParseUser can subscribe to, but that involves a bunch of class allocations...

Copy link
Contributor

Choose a reason for hiding this comment

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

ping

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@richardjrossiii richardjrossiii force-pushed the richardross.subclassing.decouple branch from 057e92f to 90ea274 Compare November 11, 2015 02:05
@facebook-github-bot
Copy link

@richardjrossiii updated the pull request.

Copy link
Contributor

Choose a reason for hiding this comment

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

did we lose this case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That specific message? Yes. That error case is still handled by isTypeValid(), however. Without leaking abstraction I'm not sure how we can keep both error messages.

@richardjrossiii
Copy link
Contributor Author

Tests should pass again.

@facebook-github-bot
Copy link

@richardjrossiii updated the pull request.

@richardjrossiii
Copy link
Contributor Author

Ignore facebook bot. it's drunk.

This fully decouples object subclassing from the ParseObject class, bringing it up to parity with our other native platforms.
@facebook-github-bot
Copy link

@richardjrossiii updated the pull request.

@grantland
Copy link
Contributor

LGTM!

@grantland grantland mentioned this pull request Jan 12, 2016
4 tasks
richardjrossiii added a commit that referenced this pull request Jan 12, 2016
@richardjrossiii richardjrossiii merged commit e6227a6 into master Jan 12, 2016
@richardjrossiii richardjrossiii deleted the richardross.subclassing.decouple branch January 12, 2016 22:34
@facebook-github-bot
Copy link

@richardjrossiii updated the pull request.

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.

3 participants