-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migration de ElasticSearch à Typesense (#6475)
Co-authored-by: Thibaut Lanier <[email protected]> Co-authored-by: Naël De Luca <[email protected]> Co-authored-by: Philippe MILINK <[email protected]>
- Loading branch information
1 parent
15b4c43
commit 9a2d086
Showing
66 changed files
with
3,331 additions
and
3,166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,13 +11,13 @@ env: | |
PYTHON_VERSION: "3.9" | ||
MARIADB_VERSION: "10.4.10" | ||
COVERALLS_VERSION: "3.3.1" # check if Coverage needs to be also updated in requirements-ci.txt | ||
TYPESENSE_VERSION: "27.0" # needs to be also updated in scripts/define_variable.sh | ||
|
||
# As GitHub Action does not allow environment variables | ||
# to be used in services definitions, these are only for | ||
# reference. If you update these versions, you HAVE TO | ||
# update the versions in the services definitions of the | ||
# test job. | ||
ELASTICSEARCH_VERSION: "5.5.2" | ||
MEMCACHED_VERSION: "1.6" | ||
|
||
jobs: | ||
|
@@ -132,7 +132,7 @@ jobs: | |
|
||
# Test the zds-site project. | ||
# Install the project, using assets created during the previous job, | ||
# and install elasticsearch & memcache as a service. Then, run the tests | ||
# and install Typesense & Memcached as a service. Then, run the tests | ||
# in a matrix build to parallelize multiple components. | ||
test: | ||
name: Install and test zds-site | ||
|
@@ -144,27 +144,11 @@ jobs: | |
module: | ||
[ | ||
"zds.tutorialv2", | ||
"zds.member zds.gallery zds.searchv2 zds.middlewares zds.pages", | ||
"zds.member zds.gallery zds.search zds.middlewares zds.pages", | ||
"zds.forum zds.featured zds.mp zds.notification zds.utils", | ||
] | ||
|
||
services: | ||
elasticsearch: | ||
image: "elasticsearch:5.5.2" | ||
ports: | ||
- "9200:9200" | ||
env: | ||
"http.host": "0.0.0.0" | ||
"transport.host": "127.0.0.1" | ||
"xpack.security.enabled": false | ||
"ES_JAVA_OPTS": "-Xms512m -Xmx512m" | ||
options: >- | ||
-e="discovery.type=single-node" | ||
--health-cmd="curl http://localhost:9200/_cluster/health" | ||
--health-interval=10s | ||
--health-timeout=5s | ||
--health-retries=10 | ||
memcached: | ||
image: "memcached:1.6" | ||
ports: | ||
|
@@ -183,6 +167,12 @@ jobs: | |
mysql database: "ci_db_name" | ||
mysql root password: "ci_root_password" | ||
|
||
- name: Start Typesense | ||
uses: jirevwe/[email protected] | ||
with: | ||
typesense-version: ${{ env.TYPESENSE_VERSION }} | ||
typesense-api-key: xyz | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,6 +138,10 @@ nav { | |
} | ||
} | ||
|
||
.align-center { | ||
text-align: center; | ||
} | ||
|
||
@include desktop { | ||
body { | ||
min-height: 100%; | ||
|
8 changes: 4 additions & 4 deletions
8
doc/source/back-end-code/searchv2.rst → doc/source/back-end-code/search.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
============================ | ||
La recherche (``searchv2/``) | ||
La recherche (``search/``) | ||
============================ | ||
|
||
Module situé dans ``zds/searchv2/``. | ||
Module situé dans ``zds/search/``. | ||
|
||
.. contents:: Fichiers documentés : | ||
|
||
Modèles (``models.py``) | ||
======================= | ||
|
||
.. automodule:: zds.searchv2.models | ||
.. automodule:: zds.search.models | ||
:members: | ||
|
||
Vues (``views.py``) | ||
=================== | ||
|
||
.. automodule:: zds.searchv2.views | ||
.. automodule:: zds.search.views | ||
:members: |
Oops, something went wrong.