-
Notifications
You must be signed in to change notification settings - Fork 474
[GitLab] Update params mapping for nested object arrays #12286
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/security-service-integrations (Team:Security-Service Integrations) |
🚀 Benchmarks reportTo see the full report comment with |
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.
I have noticed that the production
data stream already handles this issue with a different approach. In that case, value
is renamed to value_json
and mapped as an object in case it is not a string.
I do prefer the solution given in this PR, but it makes me wonder a couple of things:
- Shall we unify the criteria here? that would make the integration more consistent.
- If we follow this approach, we could cause a breaking change in the other data stream by stopping using the
value_json
field.
I do prefer the solution in this PR as I think it presents the fields in a cleaner way and easier to understand. However, that does require an adjustment to the other datastream to ensure they line up correctly. |
Yes, me too. I have checked that these |
|
💚 Build Succeeded
History
|
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!
Package gitlab - 2.0.0 containing this change is available at https://epr.elastic.co/package/gitlab/2.0.0/ |
…roduction data streams (elastic#12286) * fix: Breakout kv fields and add mappings for api datastream * chore: Update PR number * feat: Align production data stream to match kv pairs in api data stream * docs: Update README with new fields * chore: Update version
…roduction data streams (elastic#12286) * fix: Breakout kv fields and add mappings for api datastream * chore: Update PR number * feat: Align production data stream to match kv pairs in api data stream * docs: Update README with new fields * chore: Update version
Proposed commit message
For the GitLab API datastream the
params
field is an array of objects that are dynamic. The fields were broken intokey
andvalue
fields but broke when the value was another object.This PR breaks each key value into their own field and adds field mappings for those fields.
For example this
is now this with correct field mappings.
Checklist
changelog.yml
file.Author's Checklist
How to test this PR locally
Related issues
Screenshots