-
Notifications
You must be signed in to change notification settings - Fork 313
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
Support data streams in create-track #1531
Conversation
Commit to allow data-stream usage even without indices flag Updating error handling Fixing lint errors Fixing format errors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking this on @gizas! I left some comments after a first pass.
I also think it'd be good to come up with an integration test for this new functionality, similar to this one. I'll give this some more thought come up with some options for seeding Elasticsearch with datastreams in such a test. Conveniently, elastic/rally-tracks#275 is in review and we may be able to use that once it's merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There seems to be a little bit of a mismatch between what the code in doing in datastreamextract
, and what the comments are saying. It would be good to have that clarified.
I have added a dummy placeholder for a new test here ba02999 |
Story for test created #1538 |
…ding commentary to functions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for itereating! We're nearly there.
So adding an integration test is tough, but can you please add an unit test for datastreams support? See test_extract_index_create in tests/tracker/index_test.py
for the existing index test.
Some more tests to allow hidden indices
|
Added in 39450ec Also one additional use case added NOT to allow hidden indices when filter is "_all"
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! This looks great now.
Have you signed the contributor license agreement? Yes
Have you followed the contributor guidelines?
Have you run
make check-all
successfully?Did you choose a descriptive title and description for your PR? Yes
(Only for maintainers) Did you apply appropriate labels and a milestone?
Info to validate and run PR:
https://github.com/elastic/observability-dev/issues/2194#issuecomment-1167531749
Error of junit testing:
Additional story created to track creation of test: #1538