Skip to content

json: add null support to the streamer#36051

Merged
wbpcode merged 13 commits intoenvoyproxy:mainfrom
wbpcode:dev-make-streamer-support-null
Sep 10, 2024
Merged

json: add null support to the streamer#36051
wbpcode merged 13 commits intoenvoyproxy:mainfrom
wbpcode:dev-make-streamer-support-null

Conversation

@wbpcode
Copy link
Copy Markdown
Member

@wbpcode wbpcode commented Sep 10, 2024

Commit Message: json: add null support to the streamer
Additional Description:

I initially think this is unnecessary. But when I retry to update the json formatter, I found this is still necessary.

Risk Level: low.
Testing: unit.
Docs Changes: n/a.
Release Notes: n/a.
Platform Specific Features: n/a.

wangbaiping and others added 10 commits September 6, 2024 11:56
Signed-off-by: wangbaiping <wangbaiping@bytedance.com>
Signed-off-by: wangbaiping <wangbaiping@bytedance.com>
Signed-off-by: wangbaiping <wangbaiping@bytedance.com>
Signed-off-by: wangbaiping <wangbaiping@bytedance.com>
Signed-off-by: wangbaiping <wbphub@gmail.com>
Signed-off-by: wangbaiping <wbphub@gmail.com>
Signed-off-by: wangbaiping <wangbaiping@bytedance.com>
@wbpcode
Copy link
Copy Markdown
Member Author

wbpcode commented Sep 10, 2024

wait on #36001 to be landed first.

@wbpcode
Copy link
Copy Markdown
Member Author

wbpcode commented Sep 10, 2024

cc @jmarantz

@wbpcode
Copy link
Copy Markdown
Member Author

wbpcode commented Sep 10, 2024

cc @alyssawilk it's here. I made the addWithoutSanitizing a private method directly.

Comment on lines +410 to +415
/**
* Adds a string to the output stream without sanitizing it. This is only used to push
* the delimeters to output buffer.
*/
void addWithoutSanitizing(absl::string_view str) { response_.add(str); }

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

@jmarantz jmarantz left a comment

Choose a reason for hiding this comment

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

looks great w/ 2 nits.

wangbaiping added 2 commits September 10, 2024 23:12
Signed-off-by: wangbaiping <wangbaiping@bytedance.com>
Signed-off-by: wangbaiping <wangbaiping@bytedance.com>
@wbpcode wbpcode merged commit 3f0517b into envoyproxy:main Sep 10, 2024
@wbpcode wbpcode deleted the dev-make-streamer-support-null branch September 10, 2024 16:56
unicell added a commit to unicell/envoy that referenced this pull request Sep 11, 2024
* upstream/main: (21 commits)
  Add a CPU utilization resource monitor for overload manager (envoyproxy#34713)
  jwks: Add UA string to headers (envoyproxy#35977)
  exceptions: cleaning up macros (envoyproxy#35694)
  coverage: ratcheting (envoyproxy#36058)
  runtime: load rtds bool correctly as true/false instead of 1/0 (envoyproxy#36044)
  Typo in documentation of http original_src filter (envoyproxy#36060)
  docs: updating meeting info (envoyproxy#36052)
  quic: removes more references to spdy::Http2HeaderBlock. (envoyproxy#36057)
  json: add null support to the streamer (envoyproxy#36051)
  json: make the streamer a template class (envoyproxy#36001)
  docs: Add `apt.envoyproxy.io` install information (envoyproxy#36050)
  ext_proc: elide redundant copy in ext_proc filter factory callback (envoyproxy#36015)
  build(deps): bump yarl from 1.11.0 to 1.11.1 in /tools/base (envoyproxy#36049)
  build(deps): bump multidict from 6.0.5 to 6.1.0 in /tools/base (envoyproxy#36048)
  quic: enable certificate compression/decompression (envoyproxy#35999)
  Geoip fix asan failure (envoyproxy#36043)
  mobile: Fix missing logging output in Swift integration tests (envoyproxy#36040)
  http: minor code clean up to the http filter manager (envoyproxy#36027)
  ci/example: Dont build/test the filter example in Envoy CI (envoyproxy#36038)
  ci/codeql: Fix build setup (envoyproxy#36021)
  ...

Signed-off-by: Qiu Yu <qiuyu@apple.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants