-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
support default filter config #1415
support default filter config #1415
Conversation
WalkthroughThe update brings a new Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Actionable comments posted: 1
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (6)
- core/api/src/main/java/com/alipay/sofa/rpc/common/RpcOptions.java (1 hunks)
- core/api/src/main/java/com/alipay/sofa/rpc/config/AbstractInterfaceConfig.java (3 hunks)
- core/api/src/test/java/com/alipay/sofa/rpc/config/ConsumerConfigTest.java (1 hunks)
- core/api/src/test/java/com/alipay/sofa/rpc/filter/FilterChainTest.java (2 hunks)
- core/api/src/test/resources/sofa-rpc/rpc-config.json (1 hunks)
- core/common/src/main/resources/com/alipay/sofa/rpc/common/rpc-config-default.json (1 hunks)
Files skipped from review due to trivial changes (3)
- core/api/src/test/java/com/alipay/sofa/rpc/filter/FilterChainTest.java
- core/api/src/test/resources/sofa-rpc/rpc-config.json
- core/common/src/main/resources/com/alipay/sofa/rpc/common/rpc-config-default.json
Additional comments not posted (4)
core/api/src/main/java/com/alipay/sofa/rpc/common/RpcOptions.java (1)
125-128
: LGTM! The addition of theDEFAULT_FILTERS
constant aligns with the existing pattern of configuration options.core/api/src/main/java/com/alipay/sofa/rpc/config/AbstractInterfaceConfig.java (3)
45-47
: New imports forgetListValue
andDEFAULT_FILTERS
are correctly added.
111-111
: Thefilter
field is correctly initialized withgetListValue(DEFAULT_FILTERS)
.
366-376
: TheaddFilter
method correctly handles adding filters to thefilter
field.
core/api/src/test/java/com/alipay/sofa/rpc/config/ConsumerConfigTest.java
Outdated
Show resolved
Hide resolved
f5f409f
to
d316e98
Compare
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.
Actionable comments posted: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (7)
- core/api/src/main/java/com/alipay/sofa/rpc/common/RpcOptions.java (1 hunks)
- core/api/src/main/java/com/alipay/sofa/rpc/config/AbstractInterfaceConfig.java (3 hunks)
- core/api/src/test/java/com/alipay/sofa/rpc/config/ConsumerConfigTest.java (1 hunks)
- core/api/src/test/java/com/alipay/sofa/rpc/filter/FilterChainTest.java (2 hunks)
- core/api/src/test/java/com/alipay/sofa/rpc/std/config/AbstractInterfaceConfigTest.java (1 hunks)
- core/api/src/test/resources/sofa-rpc/rpc-config.json (1 hunks)
- core/common/src/main/resources/com/alipay/sofa/rpc/common/rpc-config-default.json (1 hunks)
Files not reviewed due to errors (1)
- core/api/src/test/java/com/alipay/sofa/rpc/std/config/AbstractInterfaceConfigTest.java (no review received)
Files skipped from review as they are similar to previous changes (6)
- core/api/src/main/java/com/alipay/sofa/rpc/common/RpcOptions.java
- core/api/src/main/java/com/alipay/sofa/rpc/config/AbstractInterfaceConfig.java
- core/api/src/test/java/com/alipay/sofa/rpc/config/ConsumerConfigTest.java
- core/api/src/test/java/com/alipay/sofa/rpc/filter/FilterChainTest.java
- core/api/src/test/resources/sofa-rpc/rpc-config.json
- core/common/src/main/resources/com/alipay/sofa/rpc/common/rpc-config-default.json
d316e98
to
6249b91
Compare
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.
Actionable comments posted: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (6)
- core/api/src/main/java/com/alipay/sofa/rpc/common/RpcOptions.java (1 hunks)
- core/api/src/main/java/com/alipay/sofa/rpc/config/AbstractInterfaceConfig.java (3 hunks)
- core/api/src/test/java/com/alipay/sofa/rpc/filter/FilterChainTest.java (2 hunks)
- core/api/src/test/java/com/alipay/sofa/rpc/std/config/AbstractInterfaceConfigTest.java (2 hunks)
- core/api/src/test/resources/sofa-rpc/rpc-config.json (1 hunks)
- core/common/src/main/resources/com/alipay/sofa/rpc/common/rpc-config-default.json (1 hunks)
Files skipped from review as they are similar to previous changes (6)
- core/api/src/main/java/com/alipay/sofa/rpc/common/RpcOptions.java
- core/api/src/main/java/com/alipay/sofa/rpc/config/AbstractInterfaceConfig.java
- core/api/src/test/java/com/alipay/sofa/rpc/filter/FilterChainTest.java
- core/api/src/test/java/com/alipay/sofa/rpc/std/config/AbstractInterfaceConfigTest.java
- core/api/src/test/resources/sofa-rpc/rpc-config.json
- core/common/src/main/resources/com/alipay/sofa/rpc/common/rpc-config-default.json
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
support default filter config
Summary by CodeRabbit
New Features
addFilter
method to easily append filters in configurations.Tests
ConsumerConfig
.Configuration