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

fix indexDateLayout for elasticsearch dependencies #3523 #3524

Merged
merged 2 commits into from
Feb 13, 2022

Conversation

ilyamor
Copy link
Contributor

@ilyamor ilyamor commented Feb 12, 2022

No description provided.

@ilyamor ilyamor requested a review from a team as a code owner February 12, 2022 09:22
NimrodAvni78
NimrodAvni78 previously approved these changes Feb 12, 2022
Copy link
Member

@frzifus frzifus left a comment

Choose a reason for hiding this comment

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

thanks @ilyamor, could you please sign off your work

Signed-off-by: ilya morgenshtern <ilya.m@coralogix.com>
@codecov
Copy link

codecov bot commented Feb 12, 2022

Codecov Report

Merging #3524 (f15c2cf) into main (ed5fa99) will decrease coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3524      +/-   ##
==========================================
- Coverage   96.53%   96.47%   -0.06%     
==========================================
  Files         262      262              
  Lines       15337    15338       +1     
==========================================
- Hits        14805    14798       -7     
- Misses        451      456       +5     
- Partials       81       84       +3     
Impacted Files Coverage Δ
plugin/storage/es/factory.go 97.58% <100.00%> (+0.01%) ⬆️
cmd/query/app/static_handler.go 94.01% <0.00%> (-4.80%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ed5fa99...f15c2cf. Read the comment docs.

@@ -218,6 +218,7 @@ func createDependencyReader(
Client: client,
Logger: logger,
IndexPrefix: cfg.GetIndexPrefix(),
IndexDateLayout: cfg.GetIndexDateLayoutDependencies(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for fixing this, I wonder if we can update the unit tests to prevent this from happening again. Maybe via a type assertion of the returned dependencystore.Reader?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure I find it useful, looks like a dummy test

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.

4 participants