Skip to content
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

Expose way to add config filter #10236

Merged
merged 3 commits into from
Apr 6, 2023
Merged

Conversation

Daydreamer-ia
Copy link
Contributor

Please do not create a Pull Request without creating an issue first.

What is the purpose of the change

#10235

Brief changelog

XX

Verifying this change

XXXX

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
  • Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
  • Run mvn -B clean package apache-rat:check findbugs:findbugs -Dmaven.test.skip=true to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test to make sure integration-test pass.

@codecov-commenter
Copy link

codecov-commenter commented Mar 30, 2023

Codecov Report

Merging #10236 (37327f4) into develop (a48d6ce) will increase coverage by 0.03%.
The diff coverage is 79.68%.

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##             develop   #10236      +/-   ##
=============================================
+ Coverage      51.80%   51.83%   +0.03%     
- Complexity      5079     5094      +15     
=============================================
  Files            873      874       +1     
  Lines          27731    27776      +45     
  Branches        3071     3077       +6     
=============================================
+ Hits           14365    14398      +33     
- Misses         12040    12050      +10     
- Partials        1326     1328       +2     
Impacted Files Coverage Δ
...libaba/nacos/client/config/NacosConfigService.java 70.58% <0.00%> (-1.42%) ⬇️
...a/nacos/common/pathencoder/PathEncoderManager.java 64.00% <64.00%> (ø)
.../nacos/common/pathencoder/impl/WindowsEncoder.java 94.28% <94.28%> (ø)
...t/config/filter/impl/ConfigFilterChainManager.java 96.96% <100.00%> (+0.09%) ⬆️

... and 10 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e002cef...37327f4. Read the comment docs.

* It is recommended to use {@link com.alibaba.nacos.api.config.filter.AbstractConfigFilter} to expand the filter.
*
* @param configFilter filter
*/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add since comment to show when the api start to support.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe 2.3.0, the 2.2.1 has released and not include the api.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

* It is recommended to use {@link com.alibaba.nacos.api.config.filter.AbstractConfigFilter} to expand the filter.
*
* @param configFilter filter
*/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe 2.3.0, the 2.2.1 has released and not include the api.

@KomachiSion KomachiSion merged commit 34cdb08 into alibaba:develop Apr 6, 2023
@KomachiSion KomachiSion added kind/enhancement Category issues or prs related to enhancement. area/Config labels Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/Config kind/enhancement Category issues or prs related to enhancement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants