loopback-next icon indicating copy to clipboard operation
loopback-next copied to clipboard

fix(sequelize): parse JSON columns to objects for mysql dialect

Open KalleV opened this issue 1 year ago • 1 comments

By parsing the values to JSON objects, provide backward compatibility for JSON and Array entity properties when using dialects like MySQL, MariaDB, or SQLite.

Fixes: #9629 Fixes: #9598

Checklist

  • [x] DCO (Developer Certificate of Origin) signed in all commits
  • [x] npm test passes on your machine
  • [x] New tests added or existing tests modified to cover all changes
  • [ ] Code conforms with the style guide
  • [ ] API Documentation in code was updated
  • [ ] Documentation in /docs/site was updated
  • [ ] Affected artifact templates in packages/cli were updated
  • [ ] Affected example projects in examples/* were updated

👉 Check out how to submit a PR 👈

KalleV avatar Jan 07 '24 18:01 KalleV

Pull Request Test Coverage Report for Build 8590810023

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 55.371%

Totals Coverage Status
Change from base Build 8564057942: 0.0%
Covered Lines: 9563
Relevant Lines: 12457

💛 - Coveralls

coveralls avatar Jan 07 '24 18:01 coveralls

@KalleV This PR is good to be merged now. Can you please rebase this PR ?

samarpanB avatar Mar 28 '24 06:03 samarpanB

@samarpanB Thanks! I fixed the rebase merge conflicts.

KalleV avatar Apr 07 '24 18:04 KalleV