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

fix(selector): set global do not work #2489

Merged
merged 5 commits into from
Nov 9, 2022

Conversation

Cluas
Copy link
Contributor

@Cluas Cluas commented Nov 4, 2022

Description (what this PR does / why we need it):

fix #2488

Which issue(s) this PR fixes (resolves / be part of):

Other special notes for the reviewers:

@Cluas Cluas closed this Nov 4, 2022
@Cluas Cluas reopened this Nov 4, 2022
@codecov-commenter
Copy link

codecov-commenter commented Nov 5, 2022

Codecov Report

Merging #2489 (a7c2ccc) into main (2a65502) will increase coverage by 0.29%.
The diff coverage is 79.06%.

❗ Current head a7c2ccc differs from pull request most recent head cb24e63. Consider uploading reports for the commit cb24e63 to get more accurate results

@@            Coverage Diff             @@
##             main    #2489      +/-   ##
==========================================
+ Coverage   84.88%   85.18%   +0.29%     
==========================================
  Files          88       88              
  Lines        3805     3826      +21     
==========================================
+ Hits         3230     3259      +29     
+ Misses        405      393      -12     
- Partials      170      174       +4     
Impacted Files Coverage Δ
encoding/form/form.go 65.71% <0.00%> (ø)
app.go 83.78% <65.00%> (-2.08%) ⬇️
selector/global.go 83.33% <75.00%> (-16.67%) ⬇️
encoding/form/proto_decode.go 61.77% <100.00%> (+8.03%) ⬆️
log/filter.go 95.23% <100.00%> (-0.32%) ⬇️
options.go 100.00% <100.00%> (ø)
config/file/watcher.go 59.37% <0.00%> (-6.25%) ⬇️
config/file/file.go 61.90% <0.00%> (-4.77%) ⬇️
internal/context/context.go 97.01% <0.00%> (-2.99%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

selector/global.go Outdated Show resolved Hide resolved
selector/global.go Outdated Show resolved Hide resolved
@Cluas Cluas requested a review from tonybase November 8, 2022 12:37
@Cluas
Copy link
Contributor Author

Cluas commented Nov 8, 2022

@tonybase @shenqidebaozi PTAL

@shenqidebaozi shenqidebaozi merged commit 383f28f into go-kratos:main Nov 9, 2022
xiongpan828 pushed a commit to xiongpan828/kratos that referenced this pull request Jan 5, 2023
* fix(selector): set global do not work

* fix(selector): test

* fix(selector): return early

* fix(selector): use struct

* fix(selector): use struct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] cannot overwrite the default selector implementation
4 participants