Skip to content

fix(types-json): Disable HTML escaping during JSON marshalling #714

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

Merged
merged 3 commits into from
Mar 2, 2023

Conversation

erezrokah
Copy link
Member

Summary

Fixes #622

See docs about the default behavior of json.Marshal:
https://pkg.go.dev/encoding/json#Marshal
image
See also https://pkg.go.dev/encoding/json#Encoder.SetEscapeHTML:
image


Use the following steps to ensure your PR is ready to be reviewed

  • Read the contribution guidelines 🧑‍🎓
  • Run go fmt to format your code 🖊
  • Lint your changes via golangci-lint run 🚨 (install golangci-lint here)
  • Update or add tests 🧪
  • Ensure the status checks below are successful ✅

@github-actions
Copy link

github-actions bot commented Feb 27, 2023

⏱️ Benchmark results

  • DefaultConcurrencyDFS-2 resources/s: 10,528
  • DefaultConcurrencyRoundRobin-2 resources/s: 12,255
  • Glob-2 ns/op: 312.2
  • TablesWithChildrenDFS-2 resources/s: 22,304
  • TablesWithChildrenRoundRobin-2 resources/s: 24,027
  • TablesWithRateLimitingDFS-2 resources/s: 28.49
  • TablesWithRateLimitingRoundRobin-2 resources/s: 835.4
  • BufferedScanner-2 ns/op: 12.56
  • LogReader-2 ns/op: 40.9

@candiduslynx candiduslynx self-requested a review February 27, 2023 14:39
@erezrokah erezrokah force-pushed the fix/disable_html_escaping_json branch 2 times, most recently from 4d55222 to d4e2eb4 Compare March 2, 2023 11:36
@erezrokah erezrokah force-pushed the fix/disable_html_escaping_json branch from d4e2eb4 to 3539900 Compare March 2, 2023 11:37
@codecov-commenter
Copy link

codecov-commenter commented Mar 2, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.03 🎉

Comparison is base (dfb039d) 48.77% compared to head (c02804b) 48.81%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #714      +/-   ##
==========================================
+ Coverage   48.77%   48.81%   +0.03%     
==========================================
  Files          70       70              
  Lines        6887     6892       +5     
==========================================
+ Hits         3359     3364       +5     
  Misses       3063     3063              
  Partials      465      465              
Impacted Files Coverage Δ
schema/json.go 47.28% <100.00%> (+2.12%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@kodiakhq kodiakhq bot merged commit 2f6f1d8 into cloudquery:main Mar 2, 2023
kodiakhq bot pushed a commit that referenced this pull request Mar 2, 2023
🤖 I have created a release *beep* *boop*
---


## [1.41.0](v1.40.0...v1.41.0) (2023-03-02)


### Features

* Deterministic _cq_id ([#712](#712)) ([2e7ad2c](2e7ad2c))
* **multiplex:** Detect duplicated clients ([#723](#723)) ([dfb039d](dfb039d))


### Bug Fixes

* Cleanup code ([#710](#710)) ([963f03c](963f03c))
* **deps:** Update golang.org/x/exp digest to c95f2b4 ([#718](#718)) ([de52c10](de52c10))
* **deps:** Update google.golang.org/genproto digest to 9b19f0b ([#719](#719)) ([ecfddea](ecfddea))
* **deps:** Update module github.com/rivo/uniseg to v0.4.4 ([#720](#720)) ([0da69b6](0da69b6))
* **deps:** Update module github.com/stretchr/testify to v1.8.2 ([#721](#721)) ([19c0742](19c0742))
* **pk:** Skip filter for no PK ([#709](#709)) ([d0c2e26](d0c2e26))
* **types-json:** Disable HTML escaping during JSON marshalling ([#714](#714)) ([2f6f1d8](2f6f1d8))
* **types-timestamp:** Ensure timestamp is UTC ([#716](#716)) ([bb33629](bb33629))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Destination plugins receive escaped data
5 participants