Skip to content

Conversation

acarbonetto
Copy link

@acarbonetto acarbonetto commented Sep 1, 2023

Description:
Fixes issue found in #24540
The exported JSON was rejected by the inbound service because the JSON did not match the ss4o schema. To fix, converted an attribute from array of strings to a joined string.

Link to tracking Issue:
#23611

Testing:

  1. demo docker instance now pushes data into OpenSearch container without error
  2. inspected data in OpenSearch container looks good

Documentation:
None. Exporter now works as expected.

Signed-off-by: acarbonetto <andrewc@bitquilltech.com>
@acarbonetto acarbonetto requested a review from a team September 1, 2023 16:50
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Sep 1, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

Signed-off-by: acarbonetto <andrewc@bitquilltech.com>
Signed-off-by: acarbonetto <andrewc@bitquilltech.com>
@bryan-aguilar
Copy link
Contributor

@acarbonetto could you help address the failing test cases? Updating from main will address govulncheck.

@@ -194,6 +194,15 @@ func responseAsError(item opensearchutil.BulkIndexerResponseItem) error {
return errors.New(string(errorJSON))
}

func attributesToMapString(attributes pcommon.Map) map[string]string {
Copy link
Contributor

Choose a reason for hiding this comment

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

While this function looks relatively harmless, could we still see a few unit tests added for it?

@github-actions
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Sep 28, 2023
@github-actions
Copy link
Contributor

Closed as inactive. Feel free to reopen if this PR is still being worked on.

@github-actions github-actions bot closed this Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants