-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Support date math for CPS index resolution #137998
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
Support date math for CPS index resolution #137998
Conversation
Resolves: ES-12858
|
Pinging @elastic/es-security (Team:Security) |
| if (resource.startsWith(DATE_MATH)) { | ||
| throw new IllegalArgumentException("Date math are not currently supported but was found in the expression [" + resource + "]"); | ||
| } |
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.
This seems to be the only necessary production code change.
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.
Nice!
piergm
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.
actually easier than expected, nice one!
Resolves: ES-12858