-
Notifications
You must be signed in to change notification settings - Fork 63
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 encoding
selector option (base64 or binary)
#39
Add encoding
selector option (base64 or binary)
#39
Conversation
I would ask if @karenzone could give a quick check to the documentation change |
Co-authored-by: @pascalgulikers
94f4a66
to
d8ae933
Compare
docs/index.asciidoc
Outdated
@@ -99,6 +100,16 @@ output { | |||
|
|||
Controls this plugin's compatibility with the {ecs-ref}[Elastic Common Schema (ECS)]. | |||
|
|||
[id="plugins-{type}s-{plugin}-base64_encoding"] | |||
===== `base64_encoding` |
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.
I would prefer we avoid adding boolean options tied to the current implementation detail of there being two options, instead opting for a name that is descriptive of what the option controls and a value that is descriptive of what is being done. This allows us to leave room for additional options in the future, such as alternate encodings that may be introduced upstream.
In this case, something like:
encoding
with values base64
and binary
.
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.
+1 on previous comment. If you take this suggestion, the doc will need to be reworded. Please ping me and I'll review/retest doc then. :-)
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.
Thanks for suggesting it. I've applied the hint, so it's ready for a review :-)
encoding
selector option (base64 or binary)
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.
I left a suggestion inline to streamline and simplify the wording. Otherwise, LGTM
Co-authored-by: Karen Metts <[email protected]>
… used in documentation
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.
In general, LGTM. I've left two optional nitpick suggestions.
Co-authored-by: Ry Biesemeyer <[email protected]>
Release notes
Add
encoding
option to select the encoding of Avro payload betweenbase64
(default) andbinary
What does this PR do?
Adds
encoding
set option to choose the encoding of Avro payload.By default it's set to
base64
.Why is it important/What is the impact to the user?
Let the user to decide whether to use
binary
orbase64
encoding.Checklist
[ ] I have commented my code, particularly in hard-to-understand areas[ ] I have made corresponding change to the default configuration files (and/or docker env variables)Author's Checklist
How to test this PR locally
Gemfile
/tmp/avro_schema_payment.asvc
Related issues
Use cases
As user I want to receive the binary Avro payload without base64 encoding.