Skip to content

Commit

Permalink
Drop compatibility with ES 7
Browse files Browse the repository at this point in the history
  • Loading branch information
Badatos committed Dec 2, 2024
1 parent dfd0662 commit 14c3457
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion dockerfile-dev-with-volumes/pod-back/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ RUN mkdir /tmp/node_modules/
COPY --from=source-build-js /tmp/pod/node_modules/ /tmp/node_modules/
# TODO remove ES version - move it into env var
RUN pip3 install --no-cache-dir -r requirements-conteneur.txt \
&& pip3 install elasticsearch==7.17.7
&& pip3 install elasticsearch==8.16.0

# ENTRYPOINT:
COPY ./dockerfile-dev-with-volumes/pod-back/my-entrypoint-back.sh /tmp/my-entrypoint-back.sh
Expand Down
7 changes: 3 additions & 4 deletions pod/main/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -3668,17 +3668,16 @@
"pod_version_init": "3.1.0"
},
"ES_VERSION": {
"default_value": 7,
"default_value": 8,
"description": {
"en": [
""
],
"fr": [
"Version d’ElasticSearch.",
"valeurs possibles 7 ou 8 correspondant à la version du serveur Elasticsearch utilisé.",
"valeurs possibles 8 correspondant à la version du serveur Elasticsearch utilisé.",
"Attention, le paquet elasticsearch-py doit correspondre à la version du serveur. ",
"Pour la 7, `pip3 install elasticsearch==7.17.7`,",
"et pour la 8, `pip3 install elasticsearch==8.8.1`.",
"pour la 8, `pip3 install elasticsearch==8.16.0`.",
"Voir [elasticsearch-py.readthedocs.io](https://elasticsearch-py.readthedocs.io/)",
"pour plus d’information."
]
Expand Down
2 changes: 1 addition & 1 deletion pod/main/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
)
USE_DOCKER = True
ES_URL = ["http://elasticsearch.localhost:9200/"]
ES_VERSION = 7
ES_VERSION = 8
ES_INDEX = "pod"
path = "pod/custom/settings_local.py"
if os.path.exists(path):
Expand Down
2 changes: 1 addition & 1 deletion pod/video_search/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
ES_INDEX = getattr(settings, "ES_INDEX", "pod")
ES_TIMEOUT = getattr(settings, "ES_TIMEOUT", 30)
ES_MAX_RETRIES = getattr(settings, "ES_MAX_RETRIES", 10)
ES_VERSION = getattr(settings, "ES_VERSION", 7)
ES_VERSION = getattr(settings, "ES_VERSION", 8)
ES_OPTIONS = getattr(settings, "ES_OPTIONS", {})


Expand Down
2 changes: 1 addition & 1 deletion pod/video_search/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
ES_INDEX = getattr(settings, "ES_INDEX", "pod")
ES_TIMEOUT = getattr(settings, "ES_TIMEOUT", 30)
ES_MAX_RETRIES = getattr(settings, "ES_MAX_RETRIES", 10)
ES_VERSION = getattr(settings, "ES_VERSION", 7)
ES_VERSION = getattr(settings, "ES_VERSION", 8)
ES_OPTIONS = getattr(settings, "ES_OPTIONS", {})


Expand Down
6 changes: 3 additions & 3 deletions requirements-encode.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
webvtt-py==0.4.5
webvtt-py==0.5.1
celery==5.4.0
redis==4.5.4
requests==2.32.0
redis==5.2.0
requests==2.32.3
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ django-cas-client==1.5.3
ldap3==2.9.1
django-simple-captcha==0.6.0
urllib3==2.2.3
elasticsearch==7.17.7
elasticsearch==8.16.0
djangorestframework==3.15.2
django-filter==24.3
markdown==3.4.1
Expand Down

0 comments on commit 14c3457

Please sign in to comment.