-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add SendGetBodyAs flag on elasticsearch storage #3193
Add SendGetBodyAs flag on elasticsearch storage #3193
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks reasonable. Please run make fmt
to fix formatting issues.
a3d81d7
to
9fcc0fd
Compare
I've formatted code, improved the description such as suggested. I'm not sure if I have to add tests before removing Draft ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
usually we have some minimum test to ensure that the value is parsed properly into the struct
Codecov Report
@@ Coverage Diff @@
## master #3193 +/- ##
==========================================
- Coverage 95.94% 95.92% -0.02%
==========================================
Files 239 239
Lines 14655 14661 +6
==========================================
+ Hits 14061 14064 +3
- Misses 518 520 +2
- Partials 76 77 +1
Continue to review full report at Codecov.
|
9fcc0fd
to
78cf434
Compare
Signed-off-by: Nathanael Marchand <nathanael.marchand@outlook.com>
3252ce0
to
3ec791b
Compare
Thanks! |
Thank you for your quick feedback and approval ! Glad to have contributed :) |
Signed-off-by: Nathanael Marchand nathanael.marchand@outlook.com
Which problem is this PR solving?
Resolves #3191
Short description of the changes
This PR configures the property SendGetBodyAs on the elastic search client to allow sending HTTP requests with a body with another verb than GET (which might cause networking issue on some WAF or load balancers).
In order to do that, I've created an option -es.send-get-body-as to specify the verb to use.
I open this PR early to gather feedback as Go is not my native development language ;)