-
-
Notifications
You must be signed in to change notification settings - Fork 818
Add config delegate to public api #3891
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
Conversation
f37666a to
ebe8075
Compare
Codecov Report
@@ Coverage Diff @@
## main #3891 +/- ##
============================================
- Coverage 83.44% 83.43% -0.01%
Complexity 3149 3149
============================================
Files 456 456
Lines 9014 9015 +1
Branches 1754 1754
============================================
Hits 7522 7522
- Misses 565 566 +1
Partials 927 927
Continue to review full report at Codecov.
|
schalkms
left a comment
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.
Can you please elaborate on the solution?
What are the pros and cons of this solution?
For which parts of the implementation would you like to have feedback?
|
Sorry, I should have been more specific. The questions are less about the actual implementation but rather about the general way forward.
|
I'm not sure here. Do we really want to publish those property delegates and annotations? We would then need to keep them stable as part of the API.
+1
+1 |
|
My answers would be as follows:
|
|
I am less sure about |
b1305b4 to
1f3b388
Compare
1f3b388 to
da71349
Compare
da71349 to
3e4183f
Compare
|
@schalkms since you have reviewed this PR, would you mind taking another look again? |
|
@chao2zhang fine for me. Merging this PR helps to close the linked issue as well, since all TODOs are now done.👍 |
|
Excuse me please, I overlooked the latest changes in this PR whilst checking my GitHub notifications. |
|
@marschwar Would you be able to write some documentation on this API (both the configuration delegate and all the new annotations) so I can add it to the release notes for |
This is a part of #3670.
I was going to mark ThresholdRule and LazyRegex as deprecated but then I did not know what to suggest to users on how to replace it unless making the config property part of the public api. I think the "nicest" way is to mark the functions whith
@UnstableApibut then almost all native rules would have to opt in which also seems weird.Please let me know your opinion on how to move forward with this.