Skip to content

Add validation to check if time series data streams have dimensions#655

Merged
jsoriano merged 2 commits intoelastic:mainfrom
jsoriano:validate-dimensions-exist
Nov 1, 2023
Merged

Add validation to check if time series data streams have dimensions#655
jsoriano merged 2 commits intoelastic:mainfrom
jsoriano:validate-dimensions-exist

Conversation

@jsoriano
Copy link
Copy Markdown
Member

What does this PR do?

Add a validation to check that data streams with time series enabled have at least a dimension.

Why is it important?

These data streams are invalid, and rejected by Elasticsearch, detect the issue earlier.

See #458.

Checklist

Related issues

@jsoriano jsoriano self-assigned this Oct 31, 2023
@jsoriano jsoriano requested a review from a team as a code owner October 31, 2023 12:03
mrodm
mrodm previously approved these changes Oct 31, 2023
Copy link
Copy Markdown
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.

LGTM
Just a minor comment

@elasticmachine
Copy link
Copy Markdown

💚 Build Succeeded

History

cc @jsoriano

@jsoriano
Copy link
Copy Markdown
Member Author

test integrations

@elasticmachine
Copy link
Copy Markdown

Created or updated PR in integrations repostiory to test this vesrion. Check elastic/integrations#8357

@jsoriano
Copy link
Copy Markdown
Member Author

jsoriano commented Nov 1, 2023

Failures in elastic/integrations#8357 probably related to environment and not to this change. Tested validation in all packages locally and they pass, I will merge this change.

@jsoriano jsoriano merged commit d13d1ed into elastic:main Nov 1, 2023
@jsoriano jsoriano deleted the validate-dimensions-exist branch November 1, 2023 12:06
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.

[Change proposal] Validate data stream with index_mode:time_series contains dimension field

3 participants