Conversation
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.
Could we have some tests for this?
I guess you're talking about two more test cases in |
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.
LGTM
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.
@HubTreeTea Thanks for an amazing fix 🎉🎉🎉
Looking at the js client library code here, I'm wondering if we need this chunk at all within convertColumn
.
final columnValueStr = columnValue == null
? null
: columnValue is String
? columnValue
: columnValue.toString();
I'm not certain what you mean @dshukertjr. I did see that the code you listed is in the repository and when I was debugging, I did not know why this Is there anything left I can do? |
lgtm!!! Thank you @HubTreeTea @dshukertjr let fix that in another PR. Cos of the latest update on realtime server it will return the actual value instead of stringify version. @w3b6x9 correct me if i'm wrong. Maybe we should release a new major version to support that change. |
@phamhieu that's correct, Realtime RLS should return the actual boolean values. This client should maintain backward compatibility as well for community members who wish to use the old Realtime. |
@w3b6x9 Hi Wen Bo, after investigating, we also face this issue. Our app is currently in the wild and users are unable to access realtime features because of this bug. Is there anything we can do to rectify this issue without having to push an app update? It doesn't quite make sense that a backend change that breaks client functionality should be released without any communication to users. Is there a way to "turn off" the new real-time until this fix is merged and more stable? |
@rphly please email support@supabase.io with a link to your comment and your project ref and we can revert you back to the previous version of Realtime so you're not blocked. |
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.
@phamhieu Agreed! This PR LGTM then!
fix #29
What kind of change does this PR introduce?
Bug fix
What is the current behavior?
see #29
What is the new behavior?
Correct parsing of boolean values.