elastic / elasticsearch-rails

Elasticsearch integrations for ActiveModel/Record and Ruby on Rails
Apache License 2.0
3.07k stars 793 forks source link

Fix missing environment dependency for import tasks #1043

Closed eliias closed 1 year ago

eliias commented 1 year ago

For tasks to work properly (i.e., find the models) the tasks need to have a dependency on the environment task (bootstraps the environment). Without this, the import tasks fail (e.g. NameError: uninitialized constant User).

Fixes https://github.com/elastic/elasticsearch-rails/issues/971 (and related issues)

cla-checker-service[bot] commented 1 year ago

💚 CLA has been signed

eliias commented 1 year ago

Signed the CLA, but have no clue what the title field is for.

picandocodigo commented 1 year ago

Thanks for this contribution @eliias!