Skip to content
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

add flattenfields + create indextemplate #868

Merged
merged 2 commits into from
Jun 24, 2024
Merged

Conversation

Issif
Copy link
Member

@Issif Issif commented Apr 30, 2024

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area build

/area config

/area outputs

/area tests

What this PR does / why we need it:

Allow to flatten the output_fields (replace . by _) to avoid the conflicts of mappings.

Which issue(s) this PR fixes:

#762

Fixes #

Special notes for your reviewer:

@poiana poiana added kind/bug Something isn't working dco-signoff: yes kind/feature New feature or request area/outputs labels Apr 30, 2024
@Issif Issif added this to the 2.29.0 milestone Apr 30, 2024
@Issif Issif force-pushed the mapping-elasticsearch branch 2 times, most recently from 71311f7 to 0168768 Compare April 30, 2024 10:07
return err
}
d.EndpointURL = u
if err := d.Get(); err != nil {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this block has a very deep nesting, you could think about a dedicated function which uses early returns instead

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. Just changed the func following your comment

Signed-off-by: Thomas Labarussias <[email protected]>
Signed-off-by: Thomas Labarussias <[email protected]>
@poiana poiana added the lgtm label Jun 24, 2024
@poiana
Copy link

poiana commented Jun 24, 2024

LGTM label has been added.

Git tree hash: 2591bafdd035dc71148c99f7790ae2e1563f33df

@poiana
Copy link

poiana commented Jun 24, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fjogeleit, Issif

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana merged commit 1dda60b into master Jun 24, 2024
5 checks passed
@poiana poiana deleted the mapping-elasticsearch branch June 24, 2024 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants