[github] Allow polymorphic audit ruleset_conditions parameters via subobjects:false#20306
Conversation
5cc6e4f to
c369122
Compare
ReviewersBuildkite won't run for external contributors automatically; you need to add a comment:
NOTE: https://github.com/elastic/integrations/blob/main/.buildkite/pull-requests.json contains all those details. |
c369122 to
bbc8d3e
Compare
|
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
|
No issues across the latest commits bbc8d3e.
🤖 AI-Generated Review | Vera Review Bot | 📚 Knowledge base: integration-skills
|
efd6
left a comment
There was a problem hiding this comment.
Please add pipeline tests for some of these.
This appears to be a breaking change for users who are using ES|QL to query ….parameters.{include,exclude,repository_ids}. I think that needs to be noted somewhere. You note that the issue could be avoided if package-spec were sufficiently strong to specify behaviours that elasticsearch is capable of. I think that is a worthwhile issue to file; we should not be limited by the configuration layer when the engine is capable.
Co-authored-by: Cursor <cursoragent@cursor.com>
bbc8d3e to
1c4aab7
Compare
|
Thanks @efd6, here's what I did for each. Let me know if I'm thinking about any of it wrong. Breaking change. Rather than just note it, I kept Pipeline tests. I kept the string form tests and tried to add one for the object form, but the package-spec issue. Filed elastic/package-spec#1211 with no first class way to declare a scalar-or-object field and the validator gap as elastic/elastic-package#3788. Happy to reframe either. |
|
|
|
/test |
|
Thanks @vatsaldesai93, that all looks good, and thanks for the issues. Since there is only one commit, can you make the commit message more informative? Normally, we would want the PR description to have a proposed commit message to be use in the commit merge (so, no Markdown, something along the lines described here). |
|
✅ All changelog entries have the correct PR link. |
🚀 Benchmarks reportTo see the full report comment with |
💚 Build Succeeded
|
|
@efd6 Added the proposed commit message to the description as requested (plain text, no Markdown). Thanks, let me know if you'd like any other tweaks. |
|
Package github - 2.25.1 containing this change is available at https://epr.elastic.co/package/github/2.25.1/ |
Proposed commit message
Checklist
changelog.ymlfile.How to test this PR locally
A
keywordleaf accepts the string form but rejects the object form:The second document fails with
document_parsing_exception. Withsubobjects: falseon the enclosing object both forms index cleanly. Then runelastic-package buildandelastic-package test pipeline -C packages/github.Related issues
subobjects: false+object_type, though ES accepts them elastic-package#3788