Skip to content

support multiple header values - #19064

Merged
lizan merged 9 commits into
envoyproxy:mainfrom
ME-ON1:header_value
Feb 23, 2022
Merged

lizan merged 9 commits into
envoyproxy:mainfrom
ME-ON1:header_value

Conversation

@ME-ON1

@ME-ON1 ME-ON1 commented Nov 19, 2021

Copy link
Copy Markdown
Contributor

Signed-off-by: Tarun Sharma [email protected]

Commit Message: support multiple header values
Additional Description: #13454
Risk Level: N/A
Testing: locally
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

@ME-ON1
ME-ON1 requested a review from zuercher as a code owner November 19, 2021 19:09
@ME-ON1

ME-ON1 commented Nov 20, 2021

Copy link
Copy Markdown
Contributor Author

/retest

@repokitteh-read-only

Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #19064 (comment) was created by @ME-ON1.

see: more, trace.

@wbpcode wbpcode left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for your contribution. 😄 And can you add some more tests to cover the case that the single header with multiple values or single value.

@wbpcode wbpcode left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Some more comments. 😃

Comment on lines +49 to +52
for (size_t i = 0; i < header_value.size(); i++) {
descriptor.entries_.push_back(
{descriptor_key_, std::string(header_value[i]->value().getStringView())});
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not sure if this will affect the users of the current rate-limit function.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Here is previous comment.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@wbpcode hey also here i didn't got your point for the users of current rate-limit function

@RyanTheOptimist

Copy link
Copy Markdown
Contributor

/assign @lizan

@wbpcode wbpcode left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for you contributions. And some comments are added and test is need. Thanks.

Comment on lines +49 to +52
for (size_t i = 0; i < header_value.size(); i++) {
descriptor.entries_.push_back(
{descriptor_key_, std::string(header_value[i]->value().getStringView())});
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Here is previous comment.

@wbpcode

wbpcode commented Dec 16, 2021

Copy link
Copy Markdown
Member

/assign
/wait

@ME-ON1

ME-ON1 commented Dec 27, 2021

Copy link
Copy Markdown
Contributor Author

/retest

@repokitteh-read-only

Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #19064 (comment) was created by @ME-ON1.

see: more, trace.

@wbpcode

wbpcode commented Dec 31, 2021

Copy link
Copy Markdown
Member

Thanks, some minor comments are added. And we can fix the format error by the ci/do_ci.sh fix_format.

/wait

Signed-off-by: Tarun Sharma <[email protected]>
@ME-ON1

ME-ON1 commented Jan 3, 2022

Copy link
Copy Markdown
Contributor Author

@wbpcode hey i did run this cmd before committing and also this ci/run_envoy_docker.sh 'ci/do_ci.sh format_pre and its running without error locally !! ?

@wbpcode

wbpcode commented Jan 3, 2022 •

Copy link
Copy Markdown
Member

@wbpcode hey i did run this cmd before committing and also this ci/run_envoy_docker.sh 'ci/do_ci.sh format_pre and its running without error locally !! ?

Then do you push the latest commits? You can check the CI log to get more info about the format error:

##[error]: mixed tabs and spaces: source/extensions/access_loggers/grpc/http_grpc_access_log_impl.cc
##[error]: mixed tabs and spaces: test/extensions/access_loggers/grpc/http_grpc_access_log_impl_test.cc

Signed-off-by: Tarun Sharma <[email protected]>
@ME-ON1

ME-ON1 commented Jan 3, 2022

Copy link
Copy Markdown
Contributor Author

made another commit with all these and ran all these cmds and no errors locally.

@wbpcode wbpcode left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks. It looks good overall and only one minor comment.

Signed-off-by: Tarun Sharma <[email protected]>
@wbpcode

wbpcode commented Jan 10, 2022 •

Copy link
Copy Markdown
Member

Hi, @ME-ON1 , can you check the lastest comments. 🤣 It looks like you forgot to remove some code that are no longer used.

And can you@me directly in the github after you complete this update. Then we can assign this PR to maintainers for second PASS.

@alyssawilk

Copy link
Copy Markdown
Contributor

@wbpcode as a reminder if you /wait or tag as waiting (when PRs are waiting for author work) this won't nag you or us in tooling :-)
/wait

Signed-off-by: Tarun Sharma <[email protected]>
wbpcode
wbpcode previously approved these changes Jan 20, 2022

@wbpcode wbpcode left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm

cc @envoyproxy/envoy-maintainers for second pass.

@repokitteh-read-only

Copy link
Copy Markdown

please specify a single label can be specified

🐱

Caused by: a #19064 (review) was submitted by @wbpcode.

see: more, trace.

@wbpcode

wbpcode commented Jan 21, 2022

Copy link
Copy Markdown
Member

/assign-from @envoyproxy/envoy-maintainers

@repokitteh-read-only

Copy link
Copy Markdown

@envoyproxy/envoy-maintainers assignee is @lizan

🐱

Caused by: a #19064 (comment) was created by @wbpcode.

see: more, trace.

@mattklein123

Copy link
Copy Markdown
Member

@lizan can you take a pass on this?

@lizan lizan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Code LGTM, can you add a release note of this behavior change?

@snowp

snowp commented Feb 1, 2022

Copy link
Copy Markdown
Contributor

Seems like this one is waiting for a release note to be added?

/wait

@wbpcode

wbpcode commented Feb 10, 2022

Copy link
Copy Markdown
Member

You may need add one line note at the docs/root/version_history/current.rst#Minor Behavior Changes to record your changes.

For example:

* access_log: log all header values in the grpc access log.

Note: Pay attention to the order of the notes.

Signed-off-by: Tarun Sharma <[email protected]>
@ME-ON1

ME-ON1 commented Feb 14, 2022

Copy link
Copy Markdown
Contributor Author

@wbpcode @lizan PTAL

@wbpcode wbpcode left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, LGTM. cc @lizan

@wbpcode

wbpcode commented Feb 21, 2022

Copy link
Copy Markdown
Member

Friendly ping @lizan PTAL for this PR, thanks. 😄

@lizan
lizan merged commit ff1afcc into envoyproxy:main Feb 23, 2022
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.

7 participants