-
Notifications
You must be signed in to change notification settings - Fork 368
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
Correctly report indices and aliases #757
Conversation
6c2879e
to
79dce04
Compare
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.
What will happen, if we have UsersIndex
& UsersActivitiesIndex
?
@rabotyaga as you guessed correctly it breaks... let me check if I can quickly solve this, otherwise I think it might be good to close this PR |
79dce04
to
7edd7ae
Compare
@rabotyaga unfortunately we have to rely on something other than name prefix to associate Index class and indexes. This may be done by aliases or perfect name match. Not every cases are covered, at chewy/spec/chewy/index/actions_spec.rb Line 64 in 7edd7ae
chewy/spec/chewy/index/actions_spec.rb Line 123 in 7edd7ae
But I believe that is better to have false positives than false negatives in that unlikely case. WDYT? |
9b1ca67
to
bca1101
Compare
Improve the reporting on indices and aliases that match index naming.
bca1101
to
a815a2d
Compare
7b539fe
to
2fd5489
Compare
* Correctly report indices and aliases * Fix rubocop offense * Fix specs & Changelog * Add `include_type_name` parameter for ES 6.7-6.8 for `client.indices.get` request Co-authored-by: mpeychich <mpeychich@mac.com> Co-authored-by: Ivan Rabotyaga <ivan.rabotyaga@toptal.com>
Just a rebased version of #689