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

ecs: add v8 preview with v1 implementation #76

Merged
merged 2 commits into from
Nov 10, 2021

Conversation

yaauie
Copy link
Contributor

@yaauie yaauie commented Nov 5, 2021

No description provided.

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Contributor

@kares kares left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -13,7 +13,7 @@
let(:event) { LogStash::Event.new('message' => message) }

context 'with target', :ecs_compatibility_support do
ecs_compatibility_matrix(:disabled, :v1) do |ecs_select|
ecs_compatibility_matrix(:disabled, :v1, :v8 => :v1) do |ecs_select|
Copy link
Contributor

Choose a reason for hiding this comment

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

⛏️ the alias here is always confusing me, in the end it seems to work the same as
ecs_compatibility_matrix(:disabled, :v1, :v8)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The :v8 => :v1 powers the ecs_select#[] aliasing, so that each invocation doesn't need to supply a :v8 lookup when it is supposed to resolve to the provided v1 lookup. In this case, we don't actually rely on the provided ecs_select too much so you are right it doesn't make a difference.

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