Skip to content
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

Ensure we cast to JSON while build JSON objects #368

Merged
merged 1 commit into from
Jun 2, 2023

Conversation

ghost
Copy link

@ghost ghost commented Jun 2, 2023

Description

This commit ensures that while building the json objects for select and expand, we cast the extracted data to json to avoid issues where the DB gets confused between JSON encoded strings and JSON data.

Without this change we sometimes get unexpected escaped quotes in the returned data as the DB thinks its been given a string, but its actually a json encoded string.

Type of Change

[X] Bug Fix
[ ] New Feature
[ ] Breaking Change
[ ] Refactor
[ ] Documentation
[ ] Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

@ghost ghost self-requested a review as a code owner June 2, 2023 18:25
This commit ensures that while building the json objects for select and
expand, we cast the extracted data to json to avoid issues where the DB
gets confused between JSON encoded strings and JSON data.

Without this change we sometimes get unexpected escaped quotes in the
returned data as the DB thinks its been given a string, but its actually
a json encoded string.
@ghost ghost force-pushed the sqlite_index_json_bug branch from 73883f7 to 1033c96 Compare June 2, 2023 18:33
Copy link
Contributor

@chrisgacsal chrisgacsal left a comment

Choose a reason for hiding this comment

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

I've verified that this change by running E2E tests and it does resolve the bug. :shipit:

@chrisgacsal chrisgacsal added this pull request to the merge queue Jun 2, 2023
@chrisgacsal chrisgacsal added the bug Something isn't working label Jun 2, 2023
Merged via the queue into main with commit ea03939 Jun 2, 2023
5 checks passed
@chrisgacsal chrisgacsal deleted the sqlite_index_json_bug branch June 2, 2023 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants