-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[fix][client] add support to TableView to read encrypted messages #19008
Conversation
… TableView - CryptoKeyReader is added to TableViewConfigurationData - when the Reader inside the TableView is being built, add it in case it is not null
- by default, this action is set to ConsumerCryptoFailureAction.FAIL - added to the reader when the TableView is being built
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.
Please add a test case
ece6706
to
b1bf335
Compare
If you’re talking about unit tests I was planning to write some.
|
Yes, please add some tests to cover the new feature to make it easy to verify. |
ac4d3f8
to
e15314c
Compare
@eolivelli I've added unit tests for Then I found I've run the tests locally (using the Maven commands I found in the workflow YAML) and they were passing so they should pass here as well. |
You should create a PR in your fork, the link you pasted is not a PR in your repo. See my PRs in my fork as example: https://github.com/BewareMyPower/pulsar/pulls |
@BewareMyPower Thank you! I've created a PR in my fork and linked it in the original comment of this PR as well. I've also edited the title of this PR to follow the convention in this project. |
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.
LGTM
Synced my fork. Will look into the missing CI runs later. As I mentioned, I ran tests etc locally on my machine before I pushed my commits so I don't expect any tests to fail. |
@BewareMyPower I've activated the CI checks in my fork and they ran successfully now. Please let me know if there's anything else left to do from my side. Thank you! |
Codecov Report
@@ Coverage Diff @@
## master #19008 +/- ##
============================================
- Coverage 49.85% 47.17% -2.68%
- Complexity 8658 10649 +1991
============================================
Files 500 709 +209
Lines 54930 69436 +14506
Branches 5867 7451 +1584
============================================
+ Hits 27386 32758 +5372
- Misses 24464 32999 +8535
- Partials 3080 3679 +599
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Fixes #19007
Motivation
This PR adds support for a
TableView
to read encrypted messages from a topic.Modifications
Analogous to
ReaderBuilder
, I've added methods toTableViewBuilder
that allow to specify aCryptoKeyReader
and aConsumerCryptoFailureAction
. The respective values are stored inTableViewConfigurationData
and forwarded to theReaderBuilder
instance insideTableViewImpl
when theReader
is constructed.Verifying this change
This change added tests and can be verified as follows:
TableViewImpl
andTableViewBuilderImpl
TableView
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository