Skip to content

Conversation

andsel
Copy link
Contributor

@andsel andsel commented Aug 12, 2025

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

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] I have made corresponding change to the default configuration files (and/or docker env variables)
  • I have added tests that prove my fix is effective or that my feature works

Author's Checklist

  • Cover range and port range setting with tests
  • Switch the naming around Port -> PortSetting and PortRange to PortRangeSetting

How to test this PR locally

Related issues

Use cases

Screenshots

Logs

@andsel andsel self-assigned this Aug 12, 2025
@github-actions
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@mergify
Copy link
Contributor

mergify bot commented Aug 12, 2025

This pull request does not have a backport label. Could you fix it @andsel? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-8./d is the label to automatically backport to the 8./d branch. /d is the digit.
  • If no backport is necessary, please add the backport-skip label

@andsel andsel force-pushed the feature/portrange_setting_to_java branch from 15bb6a5 to 8ba2530 Compare September 8, 2025 15:32
@andsel andsel linked an issue Sep 16, 2025 that may be closed by this pull request
@andsel andsel changed the title Feature/portrange setting to java Move Port and PortRange Ruby settings to Java Sep 16, 2025
@andsel andsel marked this pull request as ready for review September 16, 2025 09:20
@andsel andsel requested a review from jsvd September 16, 2025 12:13
Copy link
Member

@jsvd jsvd left a 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]>
@elastic-sonarqube
Copy link

@elasticmachine
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

History

cc @andsel

@andsel andsel merged commit b8bc4d8 into elastic:main Sep 17, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

3 participants