Skip to content
This repository was archived by the owner on Jun 13, 2023. It is now read-only.

Preemptively serialize Dates in QueryEncoder #114

Merged
merged 1 commit into from
May 22, 2017

Conversation

rafaelmaroxa
Copy link
Contributor

Fix #113 by preemptively serializing Date objects before they are sent to JSONSerialization by the Client.

Fix parse-community#113 by preemptively serializing Date objects before they are sent to JSONSerialization by the Client.
@flovilmart
Copy link
Contributor

That's what I call taking matter in your own hands! Wonderful code! Thanks!

@flovilmart flovilmart merged commit 8592026 into parse-community:master May 22, 2017
@flovilmart
Copy link
Contributor

@rafaelmaroxa thanks again for that PR, it seems that we have other issues with query encoding.

@rafaelmaroxa
Copy link
Contributor Author

You are welcome! I was able to make it work for what I needed. This is the first time I'm using Parse Live Queries. If I find any other issues, I'll certainly submit the issue, and potentially a fix for it.

Please let me know if there's anything else I can do to help. 👍

@flovilmart
Copy link
Contributor

Glad you got it working on the 1st time and fixed an annoying issue! Keep it up like that!

@ananfang
Copy link
Contributor

Hi all,
I found that if set constraint for Date object in any Live Query,

  • greaterThan & greaterThanOrEqualTo will act just like "exists" constraint, any record has that field will get live update.
  • lessThan & lessThanOrEqualTo will have no effect at all.

Is it an encoding problem?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LiveQuery doesn't work with Dates
3 participants