[GitLab] Update params mapping for nested object arrays - #12286
Conversation
|
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
🚀 Benchmarks reportTo see the full report comment with |
chemamartinez
left a comment
There was a problem hiding this comment.
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_jsonfield.
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
|
|
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
paramsfield is an array of objects that are dynamic. The fields were broken intokeyandvaluefields 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.ymlfile.Author's Checklist
How to test this PR locally
Related issues
Screenshots