-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Using the encoder on state is too broad. #18
Conversation
Ok so as I understand you disable the encoding of the other states? Like the It make sense as the protocol only support Thanks |
We could also solve it server side, not reject those fields, and in the future, add support for those. |
Yeah I don't see how fields is being used in the iOS version at this point. It feels like a separate issue. Is it a matter of encoding selectKeys()? Does fields also work for dotted notation? |
@rogerhu fields doesn't filter server side IIRC |
state.toJSON uses this function: https://github.com/ParsePlatform/Parse-SDK-Android/blob/master/Parse/src/main/java/com/parse/ParseQuery.java#L831-L864 whereas the where corresponds to the constraints() function: https://github.com/ParsePlatform/Parse-SDK-Android/blob/master/Parse/src/main/java/com/parse/ParseQuery.java#L778-L780 |
Ok. mm so what is the conclusion, fine like that for now? Or we should include fields? |
It sounds like we shouldn't include fields for now. We could add it as selectKeys manually but it doesn't even work on the Parse server. And the iOS version doesn't even include fields so we should decide whether we should add support in a different Pr. |
I think I'm fine with this PR for now. But we should "note" somewhere that |
Related to issue: parse-community#14 Currently only the conditions and class name are encoded: https://github.com/ParsePlatform/ParseLiveQuery-iOS-OSX/blob/master/Sources/ParseLiveQuery/Internal/QueryEncoder.swift fix test
Done: parse-community/parse-server#3671. |
Related to issue: #14
Currently only the conditions and class name are encoded:
https://github.com/ParsePlatform/ParseLiveQuery-iOS-OSX/blob/master/Sources/ParseLiveQuery/Internal/QueryEncoder.swift
Based obviously on: https://github.com/ParsePlatform/parse-server/wiki/Parse-LiveQuery-Protocol-Specification
@mmimeault @flovilmart