-
Notifications
You must be signed in to change notification settings - Fork 935
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
Add support for CIDR mask filters on IP fields #300
Conversation
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.
Thank you for your PR @micrictor. It would be great if you could create an Issue with details in project and refer it in a PR.
it('should return true if ip address is valid CIDR string', () => { | ||
const isValidParams = validateParams('192.168.0.0/24', 'ip'); | ||
expect(isValidParams).toBe(true); | ||
}); |
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.
Could we add UT for passing 192.168.0.0//24
✅ DCO Check Passed b17043b |
Signed-off-by: Michael Torres <[email protected]>
Pushed in additional sad-path testing for CIDR notation. This PR fixes #306 |
✅ DCO Check Passed 5a597fc |
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.
LGTM !! Thanks for adding tests.
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.
LGTM!
Signed-off-by: Michael Torres <[email protected]> Fixes #306
Signed-off-by: Michael Torres [email protected]
Description
Users of Dashboards will be able to specify CIDR strings as filters against IP fields
Issues Resolved
Issue posted initially against the upstream (Kibana) - elastic/kibana#50520
Users are not able to specify a CIDR netmask when using the filter UI.
Check List