Skip to content

Conversation

jsoriano
Copy link
Member

What does this PR do?

Add support for multiple sample events. They can be named now sample_event.json, or sample_event_<name>.json, where <name> is any string composed by letters or digits.

Why is it important?

To support elastic/elastic-package#773.

Checklist

Related issues

@jsoriano jsoriano self-assigned this Aug 30, 2023
@elasticmachine
Copy link

💚 Build Succeeded

cc @jsoriano

@jsoriano jsoriano marked this pull request as ready for review September 4, 2023 09:21
@jsoriano jsoriano requested a review from a team as a code owner September 4, 2023 09:21
Copy link
Contributor

@mrodm mrodm left a comment

Choose a reason for hiding this comment

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

Should it be added a new changelog entry indicating that now it is supported multiple sample events in the package?

value: "mysql"
- name: "two"
condition:
key: "sql.driver"
Copy link
Contributor

Choose a reason for hiding this comment

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

Just to confirm, with this second sample configuration, would elastic-package (client) look for the first document where that key, in this example sql.driver, exists in the doc?

vars: ~
vars: ~

samples:
Copy link
Contributor

Choose a reason for hiding this comment

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

As this samples map requires a specific structure, should this be defined/added into the spec of this file ? https://github.com/elastic/package-spec/blob/037631bddaffe6519b61eb41c186fb929675d6e1/spec/integration/data_stream/_dev/test/system/config.spec.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants