-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Synthetic source: don't allow disabling source #87270
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
|
Pinging @elastic/es-analytics-geo (Team:Analytics) |
This rejects mappings that disable the `_source` but also configure it to be `synthetic` because that sort of configuration doesn't make sense - `synthetic` is a way to enable source at a low cost.
| return DEFAULT; | ||
| } | ||
| if (enabled.getValue() == false && synthetic.getValue()) { | ||
| throw new IllegalArgumentException("_source may not be disabled when setting [synthetic: false]"); |
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.
Shouldn't this be synthetic: 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.
Yup.
|
@romseygeek could you have another look at this one? |
romseygeek
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.
LGTM
|
Thanks @romseygeek ! |
This rejects mappings that disable the
_sourcebut also configure itto be
syntheticbecause that sort of configuration doesn't make sensesyntheticis a way to enable source at a low cost.