elasticsearch-rails icon indicating copy to clipboard operation
elasticsearch-rails copied to clipboard

Make the same request independently of the order that the models are loaded

Open aronwolf90 opened this issue 3 years ago • 3 comments

Currently, the order of the index in a search request changes with the order that the models are loaded.

Problem: This does not matter for real rest request but makes problems with mocks (E.g. VCR gem) on tests. The order of the tests can change and in consequence the autoloader from rails loads models in a other order, causing that the mock does not longer match since the order of indexes in the rest request not longer matches.

aronwolf90 avatar Feb 03 '22 13:02 aronwolf90

Do I have forgotten something to do? Is something unclear?

aronwolf90 avatar Mar 02 '22 16:03 aronwolf90

?

aronwolf90 avatar Jun 02 '22 09:06 aronwolf90

Ping

aronwolf90 avatar Sep 08 '22 17:09 aronwolf90