Skip to content

[salesforce] Update package to format_version 3.0.0 - #8215

Merged
tommyers-elastic merged 5 commits into
elastic:mainfrom
tommyers-elastic:update-salesforce-to-format-version-3
Oct 17, 2023
Merged

[salesforce] Update package to format_version 3.0.0#8215
tommyers-elastic merged 5 commits into
elastic:mainfrom
tommyers-elastic:update-salesforce-to-format-version-3

Conversation

@tommyers-elastic

Copy link
Copy Markdown
Contributor

The biggest change here is the modification of the simple rename processors to script in order to get the formatting of the list the way elastic-package wants it. I'm not sold on these changes, since it adds complexity for no change in behaviour.

@jsoriano is there any way we could make changes in the validation for cases like this to avoid the added overhead in the ingest pipelines?

@tommyers-elastic
tommyers-elastic requested a review from a team as a code owner October 16, 2023 15:52
@elasticmachine

elasticmachine commented Oct 16, 2023

Copy link
Copy Markdown

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2023-10-17T07:21:00.992+0000

  • Duration: 17 min 17 sec

Test stats 🧪

Test Results
Failed 0
Passed 34
Skipped 0
Total 34

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@elasticmachine

elasticmachine commented Oct 16, 2023

Copy link
Copy Markdown

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (6/6) 💚
Files 100.0% (6/6) 💚
Classes 100.0% (6/6) 💚
Methods 98.649% (73/74) 👍 23.649
Lines 96.312% (1384/1437) 👎 -3.688
Conditionals 100.0% (0/0) 💚

@jsoriano jsoriano left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@jsoriano is there any way we could make changes in the validation for cases like this to avoid the added overhead in the ingest pipelines?

This validation was already introduced in Package Spec v2.

Try to use append instead of script for this case.

Comment thread packages/salesforce/data_stream/apex/elasticsearch/ingest_pipeline/default.yml Outdated
Comment thread packages/salesforce/data_stream/apex/elasticsearch/ingest_pipeline/default.yml Outdated
@tommyers-elastic
tommyers-elastic force-pushed the update-salesforce-to-format-version-3 branch from 299c256 to 6d8611b Compare October 16, 2023 17:28
@shmsr

shmsr commented Oct 16, 2023

Copy link
Copy Markdown
Member

LGTM.

Although, CI failed. Format required.

@tommyers-elastic
tommyers-elastic force-pushed the update-salesforce-to-format-version-3 branch from 6d8611b to 0ad50ba Compare October 17, 2023 07:20
@tommyers-elastic
tommyers-elastic merged commit f40f387 into elastic:main Oct 17, 2023
@tommyers-elastic
tommyers-elastic deleted the update-salesforce-to-format-version-3 branch October 17, 2023 08:50
@elasticmachine

Copy link
Copy Markdown

Package salesforce - 0.11.0 containing this change is available at https://epr.elastic.co/search?package=salesforce

orestisfl pushed a commit to orestisfl/integrations that referenced this pull request May 15, 2026
* [salesforce] update ingest pipelines to ensure 'user.roles' is an array

* [salesforce] update to format_version 3

* add validations.yml (i forgot it)

* use simpler 'set' processor for 'user.roles'

* update sample_event.json for array types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5 participants