-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Scripting: Whitelist API spec gradle task #66050
Scripting: Whitelist API spec gradle task #66050
Conversation
Pinging @elastic/es-core-infra (Team:Core/Infra) |
@elasticmachine run elasticsearch-ci/packaging-sample-unix |
return compare; | ||
}); | ||
|
||
// TODO(stu): unmodifiable list |
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.
TODO remove TODO
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. Thank you for taking this on!
A couple of thoughts:
- We may want to look at some refactoring as you mentioned in our PR walkthough since this code is used in multiple places.
- Now that there's multiple files I would consider adding a package for whitelist info generation.
Adds `generateContextApiSpec` gradle task that generates whitelist api specs under `modules/lang-painless/src/main/generated/whitelist-json`. The common classes are in `painless-common.json`, the specialized classes per context are in `painless-$context.json`. eg. `painless-aggs.json` has the specialization for the aggs contexts Refs: elastic#49879
Adds `generateContextApiSpec` gradle task that generates whitelist api specs under `modules/lang-painless/src/main/generated/whitelist-json`. The common classes are in `painless-common.json`, the specialized classes per context are in `painless-$context.json`. eg. `painless-aggs.json` has the specialization for the aggs contexts Refs: #49879 Backport: 2aa2224
Adds
generateContextApiSpec
gradle task that generates whitelist apispecs under
modules/lang-painless/src/main/generated/whitelist-json
.The common classes are in
painless-common.json
, the specialized classesper context are in
painless-$context.json
.eg.
painless-aggs.json
has the specialization for the aggs contexts