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

fix: don't apply toString() to json #34

Merged
merged 2 commits into from Jan 11, 2022
Merged

Conversation

Vinzent03
Copy link
Contributor

@Vinzent03 Vinzent03 commented Dec 14, 2021

Currently, each column value is turned to String via .toString(), but when this gets applied to a Map/json the corresponding string isn't a valid string presentation of the map. So decoding it again with json.decode() fails. I removed the .toString() call, because it's either a Map or a String. If it's a bool, it gets recognized as such either way later on in toBoolean called in convertCell()

I see it got already discussed in #30

Copy link
Contributor

@bdlukaa bdlukaa left a comment

Choose a reason for hiding this comment

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

LGTM

@Vinzent03
Copy link
Contributor Author

Thanks. Should I fix the relative imports too? I think the dynamic linter fails are hard to fix.

@bdlukaa
Copy link
Contributor

bdlukaa commented Dec 21, 2021

@Vinzent03 they're not your fault tho

@Vinzent03
Copy link
Contributor Author

Yeah I know, but I can add this if you want to.

@bdlukaa
Copy link
Contributor

bdlukaa commented Dec 21, 2021

@Vinzent03 it'd be awesome!

@Vinzent03
Copy link
Contributor Author

Vinzent03 commented Dec 21, 2021

@bdlukaa Should I ignore the dynamic rule https://dart-lang.github.io/linter/lints/avoid_dynamic_calls.html in analysis_options.yaml?

@Vinzent03
Copy link
Contributor Author

Any updates?

@phamhieu phamhieu merged commit 86bbad8 into supabase:main Jan 11, 2022
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.

None yet

3 participants