Skip to content

Commit

Permalink
track again .env and update test taxonomy
Browse files Browse the repository at this point in the history
  • Loading branch information
perierc committed Oct 26, 2023
1 parent a5d2f8d commit 2c00e3a
Show file tree
Hide file tree
Showing 2 changed files with 133 additions and 3 deletions.
41 changes: 41 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# use windows path separator for compat
COMPOSE_PATH_SEPARATOR=;
COMPOSE_FILE=docker-compose.yml;docker/dev.yml

# version
DOCKER_TAG=dev

# domain name
TAXONOMY_EDITOR_DOMAIN=taxonomy.localhost
# exposition
TAXONOMY_EDITOR_EXPOSE=127.0.0.1:8091
# this one is needed only in dev, to tell nginx and fastapi, which port urls should include
# it must either start with : or be empty
PUBLIC_TAXONOMY_EDITOR_PORT=:8091
# this one is used to expose the websocket in dev and shoudl match PUBLIC_TAXONOMY_EDITOR_PORT but without leading ":"
WDS_SOCKET_PORT=8091
# API scheme is useful because, in prod, we have to proxy and already proxied request
# and loose the original scheme
API_SCHEME=http

# This is the PAT (Personal Access Token)
# to create PRs on openfoodfacts-server github project (must be able to read-write PRs)
# you may leave blank in tests…
GITHUB_PAT=

# repository URI on github. If you want to test PR creation, use a fork
REPO_URI=openfoodfacts/openfoodfacts-server

# eventually set this to your local user id to avoid permissions errors
# USER_UID=1000
# USER_GID=1000

# Neo4J configurations
NEO4J_BOLT_EXPOSE=127.0.0.1:7687
NEO4J_ADMIN_EXPOSE=127.0.0.1:7474
# note: in prod, heap_initial__size and max__size should match, but it's ok like that for dev
NEO4J_server_memory_heap_initial__size=512M
NEO4J_server_memory_heap_max__size=2G
NEO4J_server_memory_pagecache_size=1G
NEO4J_db_memory_transaction_total_max=512M

95 changes: 92 additions & 3 deletions backend/tests/data/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,123 @@ stopwords:fr: aux,au,de,le,du,la,a,et

synonyms:en:passion fruit, passionfruit

synonyms:fr:fruit de la passion, maracuja, passion
synonyms:fr:fruit de la passion, fruits de la passion, maracuja, passion

en:yogurts, yoghurts
fr:yaourts, yoghourts, yogourts
nl:yoghurts
description:en: a yogurts of whatever type
description:fr: un yaourt de n'importe quel type
color:en: white
flavour:en: undef

<en:yogurts
en:banana yogurts
fr:yaourts à la banane
nl:bananenyoghurt
description:en: a banana yogurt
description:fr: un yaourt à la banane
color:en: yellow
flavour:en: banana

<en:yogurts
en:Passion fruit yogurts
fr:yaourts au fruit de la passion
nl:yoghurts met passievrucht
color:en: undef
flavour:en: passion fruit

<en:yogurts
fr:yaourts allégés

<fr:yoghourts
en:lemon yogurts
fr:yaourts au citron
nl:yoghurts met citroen
description:en: a yogurts with lemon inside
description:fr: un yaourt avec du citron
color:en: yellow
flavour:en: lemon

<fr:yaourts fruit de la passion
<fr:yaourts allégés
fr:yaourts au fruit de la passion allégés
nl:magere yoghurts met passievrucht

# meat

<fr:yaourts au citron
<fr:yaourts allégés
fr:yaourts au citron allégés
nl:magere citroenyoghurt
description:en: for light yogurts with lemon

<fr:yaourt
fr:yaourts à la myrtille
nl:bosbessenyoghurt
flavour:en: blueberry
flavour:fr: myrtille

en:meat
vegan:en:no
carbon_footprint_fr_foodges_value:fr:10

<en:meat
en:beef
carbon_footprint_fr_foodges_value:fr:15

<en:beef
en:roast-beef

<en:meat
en:fake-meat
vegan:en:yes
# undef will stop parents from transmitting a value
carbon_footprint_fr_foodges_value:fr:undef

en:fake-stuff

<en:fake-stuff
<en:fake-meat
en:fake-duck-meat
en:fake-duck-meat

en:vegetable
vegan:en:yes

# the soup yogourt synonym is used to test suggestions matching xx: synonyms
en:soup
xx:something that means soup in every language, something else that means soup in every language
vegan:en:maybe

<en:soup
en:vegan-soup
vegan:en:yes

<en:soup
en:fish-soup
vegan:en:no

de:Spätzle

en:Kale
de:Grünkohl

en:Kefir 2.5 %
de:Kefir 2.5 %
fr:Kéfir 2,5 %
ru:Кефир 2.5 %, Кефир 2.5%

fr:French entry
de:Special value for German

fr:French entry with default value
xx:French entry with default value
de:Special value for German 2

xx:Language-less entry
de:Special value for German 3

# xx: entry with accents, need to match unaccented version
sv:Ä-märket
xx:Ä-märket

en:Entry with (parentheses) and some *!#{}@$ characters, synonym with *%@$(]% chars

0 comments on commit 2c00e3a

Please sign in to comment.