Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating prod #93

Merged
merged 6 commits into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion backend/requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ corpus2alpino>=0.3.10
BaseXClient
alpino-query>=2.1.10
celery[redis]>=5.2.0
-e git+https://github.com/UUDigitalHumanitieslab/mwe-query@bugfix/tests#egg=mwe-query
mwe-query>=0.0.4
urllib3<=2.0.0
psycopg2
196 changes: 115 additions & 81 deletions backend/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,51 +1,58 @@
#
# This file is autogenerated by pip-compile with python 3.10
# To update, run:
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile
#
-e git+https://github.com/UUDigitalHumanitieslab/mwe-query@bugfix/tests#egg=mwe-query
# via -r requirements.in
alpino-query==2.1.10
# via
# -r requirements.in
# mwe-query
amqp==5.1.1
# via kombu
annotated-types==0.5.0
# via pydantic
argparse==1.4.0
# via corpus2alpino
asgiref==3.5.2
asgiref==3.7.2
# via django
async-timeout==4.0.2
async-timeout==4.0.3
# via redis
attrs==22.1.0
# via pytest
auchann==0.1.1
# via sastadev
backports-zoneinfo[tzdata]==0.2.1
# via
# celery
# django
# kombu
basexclient==8.4.4
# via
# -r requirements.in
# mwe-query
beautifulsoup4==4.11.1
beautifulsoup4==4.12.2
# via
# django-livereload-server
# tei-reader
billiard==3.6.4.0
billiard==4.1.0
# via celery
blis==0.7.8
blis==0.7.10
# via thinc
catalogue==2.0.8
catalogue==2.0.9
# via
# spacy
# srsly
# thinc
celery[redis]==5.2.7
celery[redis]==5.3.1
# via -r requirements.in
certifi==2022.9.24
certifi==2023.7.22
# via requests
chamd==0.5.8
# via corpus2alpino
charset-normalizer==2.1.1
chamd==0.5.11
# via
# auchann
# corpus2alpino
charset-normalizer==3.2.0
# via requests
click==8.1.3
click==8.1.6
# via
# celery
# click-didyoumean
Expand All @@ -56,20 +63,18 @@ click-didyoumean==0.3.0
# via celery
click-plugins==1.1.1
# via celery
click-repl==0.2.0
click-repl==0.3.0
# via celery
confection==0.0.3
confection==0.1.1
# via thinc
corpus2alpino==0.3.10
# via -r requirements.in
cymem==2.0.6
cymem==2.0.7
# via
# preshed
# spacy
# thinc
deprecated==1.2.13
# via redis
django==4.1.2
django==4.2.4
# via
# -r requirements.in
# django-livereload-server
Expand All @@ -81,149 +86,178 @@ django-revproxy==0.10.0
# via -r requirements.in
djangorestframework==3.14.0
# via -r requirements.in
execnet==1.9.0
editdistance==0.6.2
# via auchann
et-xmlfile==1.1.0
# via openpyxl
exceptiongroup==1.1.3
# via pytest
execnet==2.0.2
# via pytest-xdist
folia==2.5.8
# via corpus2alpino
idna==3.4
# via requests
iniconfig==1.1.1
iniconfig==2.0.0
# via pytest
isodate==0.6.1
# via rdflib
jinja2==3.1.2
# via spacy
kombu==5.2.4
kombu==5.3.1
# via celery
langcodes==3.3.0
# via spacy
lxml==4.9.1
lxml==4.9.3
# via
# alpino-query
# folia
# sastadev
# tei-reader
markupsafe==2.1.1
markupsafe==2.1.3
# via jinja2
murmurhash==1.0.8
murmurhash==1.0.9
# via
# preshed
# spacy
# thinc
numpy==1.23.3
mwe-query==0.0.4
# via -r requirements.in
numpy==1.24.4
# via
# blis
# spacy
# thinc
packaging==21.3
openpyxl==3.1.2
# via sastadev
packaging==23.1
# via
# pytest
# redis
# spacy
pathy==0.6.2
# thinc
pathy==0.10.2
# via spacy
pluggy==1.0.0
pluggy==1.2.0
# via pytest
preshed==3.0.7
preshed==3.0.8
# via
# spacy
# thinc
prompt-toolkit==3.0.31
prompt-toolkit==3.0.39
# via click-repl
py==1.11.0
# via
# pytest
# pytest-forked
pydantic==1.9.2
psycopg2==2.9.7
# via -r requirements.in
pydantic==2.1.1
# via
# confection
# spacy
# thinc
pyparsing==3.0.9
# via
# packaging
# rdflib
pytest==7.1.3
pydantic-core==2.4.0
# via pydantic
pyparsing==3.1.1
# via rdflib
pytest==7.4.0
# via
# -r requirements.in
# pytest-django
# pytest-forked
# pytest-xdist
pytest-django==4.5.2
# via -r requirements.in
pytest-forked==1.4.0
# via pytest-xdist
pytest-xdist==2.5.0
pytest-xdist==3.3.1
# via -r requirements.in
pytz==2022.4
# via
# celery
# djangorestframework
rdflib==6.2.0
python-dateutil==2.8.2
# via celery
pytz==2023.3
# via djangorestframework
pyyaml==6.0.1
# via pyyaml-include
pyyaml-include==1.3.1
# via auchann
rdflib==7.0.0
# via folia
redis==4.3.4
redis==5.0.0
# via celery
requests==2.28.1
requests==2.31.0
# via
# alpino-query
# folia
# mwe-query
# spacy
sastadev==0.0.3
# via mwe-query
sastadev==0.1.1
# via
# auchann
# mwe-query
six==1.16.0
# via
# click-repl
# django-livereload-server
smart-open==5.2.1
# via pathy
soupsieve==2.3.2.post1
# isodate
# python-dateutil
smart-open==6.3.0
# via
# pathy
# spacy
soupsieve==2.4.1
# via beautifulsoup4
spacy==3.4.1
spacy==3.6.1
# via corpus2alpino
spacy-legacy==3.0.10
spacy-legacy==3.0.12
# via spacy
spacy-loggers==1.0.3
spacy-loggers==1.0.4
# via spacy
sqlparse==0.4.3
sqlparse==0.4.4
# via django
srsly==2.4.4
srsly==2.4.7
# via
# confection
# spacy
# thinc
tei-reader==0.0.17
# via corpus2alpino
thinc==8.1.3
thinc==8.1.12
# via spacy
tomli==2.0.1
# via pytest
tornado==6.2
tornado==6.3.3
# via django-livereload-server
tqdm==4.64.1
tqdm==4.66.1
# via
# corpus2alpino
# spacy
typer==0.4.2
typer==0.9.0
# via
# pathy
# spacy
typing-extensions==4.4.0
# via pydantic
urllib3==1.26.12
typing-extensions==4.7.1
# via
# annotated-types
# asgiref
# kombu
# pydantic
# pydantic-core
# sastadev
# typer
tzdata==2023.3
# via
# backports-zoneinfo
# celery
urllib3==1.26.16
# via
# -r requirements.in
# django-revproxy
# requests
vine==5.0.0
# via
# amqp
# celery
# kombu
wasabi==0.10.1
wasabi==1.1.2
# via
# spacy
# spacy-loggers
# thinc
wcwidth==0.2.5
wcwidth==0.2.6
# via prompt-toolkit
wrapt==1.14.1
# via deprecated
xlsxwriter==3.1.2
# via sastadev

# The following packages are considered to be unsafe in a requirements file:
# setuptools
10 changes: 5 additions & 5 deletions backend/search/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,14 +390,14 @@ def perform_search(self) -> None:
# completed yet, and starting with those that have not started yet
# (because those for which search has already started may finish
# early).
result_objs = self.results.filter(search_completed__isnull=True)
result_objs_query = self.results.filter(search_completed__isnull=True)
# add failed result objects (with errors and no results)
result_objs |= self.results.filter(number_of_results=0).exclude(errors=None).exclude(errors='')
result_objs_query |= self.results.filter(number_of_results=0).exclude(errors=None).exclude(errors='')

result_objs = result_objs.order_by(F('completed_part').desc(nulls_first=True),
'component__slug')
result_objs_query = result_objs_query.order_by(F('completed_part').desc(nulls_first=True),
'component__slug')

result_objs = list(result_objs)
result_objs = list(result_objs_query)
# append results that should be complete but can't be read
result_objs += [r for r in self.results.filter(search_completed__isnull=False) if not r.check_results()]

Expand Down
6 changes: 6 additions & 0 deletions web-ui/src/app/app-routing/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ const links: Link[] = [
link: '/mwe-search',
proxy: false,
},
{
name: 'About',
link: '/about',
proxy: false,
},
{
name: 'Documentation',
link: '/documentation',
Expand All @@ -42,6 +47,7 @@ const mainLinksName = [
'Example-based Search',
'XPath Search',
'Multiword Expressions',
'About',
'Documentation'
];

Expand Down
Loading
Loading