Check the elasticsearch version for compatibility during validation.

Review Request #9829 — Created March 22, 2018 and submitted

Information

Review Board
release-3.0.x
c83e3de...

Reviewers

The Elasticsearch backend checks to make sure the elasticsearch module
is installed, but doesn't check its version. Haystack only supports the
1.x and 2.x series, and people these days are going to get much newer
versions than that. We now check the version of the module, and provide
an error message stating the version requirements of both the module and
the service.

Tested without the module, with a 6.x version of the module, and a 2.x
version. I saw the error in the first two conditions, and validation
passed in the last.

Unit tests pass.

Description From Last Updated

W503 line break before binary operator

reviewbotreviewbot
Checks run (1 failed, 1 succeeded)
flake8 failed.
JSHint passed.

flake8

chipx86
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-3.0.x (81194a0)
Loading...