Commit Graph

450 Commits

Author SHA1 Message Date
Frédéric Péters 62d5c662a1 debian: remove python2 stuff (#70143) 2022-10-11 22:52:39 +02:00
Frédéric Péters 4e31f071f8 debian: switch to debhelper-compat 12 (#70143) 2022-10-11 22:52:36 +02:00
Guillaume Baffoin fc5fc95fb5 1.6.2 packaging 2022-10-07 16:55:40 +02:00
Tim Gates 1ad7ac9781 docs: Fix a few typos
There are small typos in:
- tests/test_watson/tests.py
- watson/search.py

Fixes:
- Should read `request` rather than `requet`.
- Should read `committed` rather than `commited`.

Signed-off-by: Tim Gates <tim.gates@iress.com>
2022-10-07 16:55:40 +02:00
Dani Hodovic f0a81bff71 Fix typo in buildwatson 2022-10-07 16:55:40 +02:00
Dave Hall c0c0861963 v1.6.2 2022-10-07 16:55:40 +02:00
Shybert 9a8933c87b `url` -> `re_path`
Required for Django 4 compat
2022-10-07 16:55:40 +02:00
Dave Hall 2859fd288e v1.6.1 2022-10-07 16:55:40 +02:00
Dave Hall 8b4541c81a Updated changelog 2022-10-07 16:55:40 +02:00
Cristopher Hernandez 56acd145f0 Drop Django 1.11 in matrix 2022-10-07 16:55:40 +02:00
Cristopher Hernandez be12746578 Add handling for RelatedField pk types 2022-10-07 16:55:40 +02:00
Dave Hall 9bafff6da6 v1.6.0 2022-10-07 16:55:40 +02:00
Dave Hall 40c70c579d Updated changelog 2022-10-07 16:55:40 +02:00
Dave Hall 5f81c22b19 Added new python publish workflow 2022-10-07 16:55:40 +02:00
Rustem Saiargaliev 7b3e7b4ae8 Remove last traces of Travis CI 2022-10-07 16:55:40 +02:00
Cristopher Hernandez b387089be4 Fix database casting issue 2022-10-07 16:55:40 +02:00
Cristopher Hernandez fd1efc8dfa Fix type casting issue in deleted entries query 2022-10-07 16:55:40 +02:00
Cristopher Hernandez cd358f4749 Cast object id lookup to pk field type 2022-10-07 16:55:40 +02:00
Cristopher Hernandez 1966298468 Remove unused import 2022-10-07 16:55:40 +02:00
Cristopher Hernandez 6acce4909a Correct comment in search.py 2022-10-07 16:55:40 +02:00
Cristopher Hernandez 1688cfdaf8 Tweak comments 2022-10-07 16:55:40 +02:00
Cristopher Hernandez 21a8a498b3 Add cleanup for deleted object entries in buildwatson 2022-10-07 16:55:40 +02:00
Cristopher Hernandez 6fbe3b0229 Add AppConfig with default_auto_field set 2022-10-07 16:55:40 +02:00
Benedikt Willi f547a69e9f Added possibility to run tests through Github Actions. 2022-10-07 16:55:40 +02:00
Dave Hall e252df9660 v1.5.5 2022-10-07 16:55:40 +02:00
Henrik Hørlück Berg a0d116d0d8 Change deprecated force_text -> force_str 2022-10-07 16:55:40 +02:00
Tim Gates 6b6be809d7 docs: Fix simple typo, thie -> this
There is a small typo in watson/search.py.

Should read `this` rather than `thie`.
2022-10-07 16:55:40 +02:00
Dave Hall 5b72d6f13b v1.5.4 2022-10-07 16:55:40 +02:00
Dave Hall ba49b02398 Updated changelog 2022-10-07 16:55:40 +02:00
biozz 5f7074de1e bump python and django versions 2022-10-07 16:55:40 +02:00
Ivan Elfimov 33cc5a8a04 remove unused variables from travis config 2022-10-07 16:55:40 +02:00
Ivan Elfimov ec7db58b15 remove python_2_unicode_compatible from tests 2022-10-07 16:55:40 +02:00
Ivan Elfimov 4a5162612f change test matrix according to `etianen/django-reversion` 2022-10-07 16:55:40 +02:00
Ivan Elfimov de0ccf51c2 Add django 3 support 2022-10-07 16:55:40 +02:00
Dave Hall 7a853434fe Trying to fix pypi deploy 2022-10-07 16:55:40 +02:00
Dave Hall 3b4253a865 Trying to fix pypi deploy 2022-10-07 16:55:40 +02:00
Dave Hall 6489b7be1e Adding some test matrix exclusions 2022-10-07 16:55:40 +02:00
Dave Hall b156343e44 Adding some test matrix exclusions 2022-10-07 16:55:40 +02:00
Dave Hall 96c3120687 v1.5.3 2022-10-07 16:55:40 +02:00
Dave Hall cf2aae03b1 Adding more python versions to test matrix 2022-10-07 16:55:40 +02:00
Krukas ced9b0a592 [TASK] Fix flake8 error that regex is not marked as regex 2022-10-07 16:55:40 +02:00
Krukas 75980f8406 [BUGFIX] #255 Fixed MySQL tests failing mysql + admin context
The admin tests failed because of the following error:

(admin.E404) 'django.contrib.messages.context_processors.messages' must be enabled in DjangoTemplates (TEMPLATES) in order to use the admin application.

This is fixed by adding
'django.contrib.messages.context_processors.messages' tot the context_processors

The MySQL tests failed on the error:

django.db.utils.OperationalError: (1055, "Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'test_test_project.watson_searchentry.title' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by")

After some diging this hapens because the qeuryset count uses an annotation/aggrogation.
37f8f29377/django/db/models/sql/query.py (L510)

Based on what django recomends for setting the sql_mode to https://docs.djangoproject.com/en/2.2/ref/databases/#setting-sql-mode.
And the recomandation from
https://code.djangoproject.com/ticket/15940#comment:10 to always explicitly set the sql_mode.

I have updated the test MySQL settings to set the sql_mode to STRICT_TRANS_TABLES
2022-10-07 16:55:40 +02:00
Krukas 863b427900 [BUGFIX] Fixed buildwatson error with no admin installed
Buildwatson gives crashes on following error when admin is not
installed:

LookupError: No installed app with label 'admin'
2022-10-07 16:55:40 +02:00
Matt Molyneaux d0d9dd3091 Point PyPI badge at correct project 2022-10-07 16:55:40 +02:00
Matt Molyneaux 0e5322d973 Test against Django 2.1 2022-10-07 16:55:40 +02:00
Frédéric Péters 17da84172e debian: add dh-python to build-depends 2020-06-24 14:52:46 +02:00
Frédéric Péters a88aec8574 debian: build a python3 package (#44412) 2020-06-24 14:51:03 +02:00
Emmanuel Cazenave 6300e6b204 1.5.2 packaging 2018-06-12 14:26:30 +02:00
Dave Hall 500a410f38
Merge pull request #245 from moggers87/remove-extra-use
Allow referencing `watson_rank` in annotations
2018-05-01 18:58:43 +01:00
Matt Molyneaux 4f68db0523 Backend fixes for using `watson_rank` in expressions
Referencing columns defined using `QuerySet.extra` does not make them
visible to expressions such as `Value`, `F`, or `When`, and Django docs
state that the `extra` method will get no further bug fixes.
2018-04-30 23:28:59 +01:00