-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Move Port and PortRange Ruby settings to Java #17964
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
Move Port and PortRange Ruby settings to Java #17964
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
This pull request does not have a backport label. Could you fix it @andsel? 🙏
|
…od eachWithIndex to Range to loop on the interval
…ructor can coerce on values offered for default value. Fixed failing test trasforming Ruby rage to newly introduced Java Range class
15bb6a5
to
8ba2530
Compare
…d ability to accept also JRuby's RubyRange instances
…oid the creation of Java Range class
logstash-core/src/main/java/org/logstash/settings/SettingPortRange.java
Outdated
Show resolved
Hide resolved
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.
tiniest whitespace nitpick, otherwise LGTM
Co-authored-by: João Duarte <[email protected]>
|
💛 Build succeeded, but was flaky
Failed CI StepsHistory
cc @andsel |
Release notes
[rn:skip]
What does this PR do?
Move the existing Ruby code to Port and PortRange classes to Java, leveraging the JRuby bridge and avoiding to use the JRuby extension mechanism.
Why is it important/What is the impact to the user?
Aa a developer I want the core code base to be in Java and avoiding leveraging on Ruby classes and extension classes as much as possible.
Checklist
[ ] I have made corresponding changes to the documentation[ ] I have made corresponding change to the default configuration files (and/or docker env variables)Author's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
Logs