-
Notifications
You must be signed in to change notification settings - Fork 76
Use Subclass method for Versiona and Channel type which is understood… #845
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
Use Subclass method for Versiona and Channel type which is understood… #845
Conversation
… by security plugin Signed-off-by: Jayesh Hathila <[email protected]>
Signed-off-by: Jayesh Hathila <[email protected]>
6f1cfce
to
91fae4c
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #845 +/- ##
============================================
- Coverage 70.88% 69.80% -1.08%
- Complexity 421 491 +70
============================================
Files 49 54 +5
Lines 3125 3520 +395
Branches 194 228 +34
============================================
+ Hits 2215 2457 +242
- Misses 785 911 +126
- Partials 125 152 +27 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Thank you for fixing this @jayeshathila ! With this, the security repo can finally remove the getInnerChannel
reflection code used in its transport interceptors which was introduced to adapt to the initial wrapped handler change from PA.
FYI PA should consider running integ tests with the security plugin installed and enabled.
You can find the most recent example of setup on SRW repo with the set of PRs from here: https://github.com/opensearch-project/search-relevance/pulls?q=is%3Apr+author%3Acwperks+is%3Aclosed
+1, on adding integration tests. |
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.
remove this also https://github.com/opensearch-project/performance-analyzer/pull/845/files#diff-0254c68464c0f2bbe237f49361e855a4da0f1c62d08e7d9e8ca6374f991baf2aR159
// remove this function without changing the security plugin.
public TransportChannel getInnerChannel() {
return this.original;
}
Signed-off-by: Jayesh Hathila <[email protected]>
Done. |
For Integ Test addition, we can take it up as followup. |
...n/java/org/opensearch/performanceanalyzer/transport/PerformanceAnalyzerTransportChannel.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Jayesh Hathila <[email protected]>
4c4df03
… by security plugin
Description
Use Subclass method for Versiona and Channel type which is understood…
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
Check List
--signoff
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.
Issue - #609