Bertrand Bordage
e87ff07e7b
Merge branch 'master' into search-query-api
...
# Conflicts:
# wagtail/search/backends/db.py
# wagtail/search/backends/elasticsearch2.py
2018-01-03 18:36:57 +01:00
Bertrand Bordage
924d65dce3
Breaks down QueryAPITestMixin.test_plain_text()
.
2018-01-03 18:33:13 +01:00
Bertrand Bordage
5ba8341de2
Separates query API tests in a mixin.
2018-01-03 18:31:24 +01:00
Bertrand Bordage
3097e5e610
Changelog for #3911 .
2018-01-03 11:32:22 +01:00
Bertrand Bordage
317ea80a7e
Doc typos.
2018-01-03 11:29:23 +01:00
Karl Hobley
1e332b4b67
Implement 'bgcolor' image operation.
...
Also fixes #3713 .
Remove alpha channel if converting transparent image to JPEG
2018-01-03 11:26:14 +01:00
Matt Westcott
c10e050076
Add misraX to contributors
2018-01-02 23:37:56 +00:00
misraX
c48a2ef501
Fixing search url for django 1.10 and above.
...
For django 1.10 and above the search url will fail with a TypeError since there is no support for views as string insider urlpatterns, It will raise TypeError('view must be a callable or a list/tuple in the case of include().')
TypeError: view must be a callable or a list/tuple in the case of include().
2018-01-02 23:37:10 +00:00
Matt Westcott
cca7653839
Specify django-taggit 0.22.2 for Django 2.0 support
2018-01-02 14:47:07 +00:00
kevin howbrook
0b44392c3d
Add missing import to tagging docs ( #4158 )
2017-12-29 17:54:38 +01:00
Andy Babic
4a7320a0db
Use master branch of taggit for django 2.0 tests (jdufresne's pull has been merged, and the branch deleted)
2017-12-21 23:54:23 +00:00
Thibaud Colas
4a18b2f39f
Update test coverage link from coveralls to codecov. Fix #4143
...
Uses the same link as the badge at the top of the README.
2017-12-20 14:11:40 +02:00
LB (Ben Johnston)
177ed19e7f
Revise link to issues for contributing ( #4145 )
...
* Revise link to issues for contributing
We are now using the label `good first issue` instead of
`difficulty:Easy` as that is what Github is promoting more.
* Revisit link to starter issues in CONTRIBUTING guidelines as well.
2017-12-20 14:07:09 +02:00
Matt Westcott
fd2753667b
Add test for ordering Page search by title
2017-12-18 11:37:35 +00:00
Matt Westcott
2e44dc3c8e
Add tests for searching on the Page model
2017-12-18 11:37:35 +00:00
Karl Hobley
dd54f5bdca
Handle search FieldErrors in the API
2017-12-18 11:37:35 +00:00
Karl Hobley
25901aad05
Make the search() method raise FieldErrors
...
Before, they were being raised at the point of evaluating the
SearchResults set. This makes the errors get raised at the point of
constructing the set so it's easier to catch and handle them.
2017-12-18 11:37:35 +00:00
Karl Hobley
aefa7b5469
Fix test_delete for Elasticsearch
2017-12-18 11:37:35 +00:00
Karl Hobley
9d745541c8
Recategorise an expectedFailure test
...
This test won't work even if the index API was implemented for the DB
backend
2017-12-18 11:37:35 +00:00
Bertrand Bordage
06833b3e09
Merge pull request #4139 from gasman/cleanup/lru_cache
...
Replace use of django.utils.lru_cache with functools.lru_cache
2017-12-15 18:42:44 +01:00
Matt Westcott
38e03c8fd1
Replace use of django.utils.lru_cache with functools.lru_cache
2017-12-15 17:31:35 +00:00
Karl Hobley
4336ada482
Fix Elasticsearch tests on Django 2.0
...
Fixes #4137
2017-12-15 14:25:00 +00:00
Matt Westcott
be2b5a7981
Release notes for #4060
2017-12-15 13:50:36 +00:00
Matt Westcott
f9ec1a4296
Ensure that expanding image embeds doesn't break if alt attribute is missing
...
This could potentially happen on earlier versions of Wagtail if the whitelister decided to escape the alt attribute with single-quotes instead of double, meaning that our regexps fail to pick it up
2017-12-15 13:46:58 +00:00
Matt Westcott
2b1dadcb05
Make link / embed handlers consistently work with unescaped versions of attributes. Fixes #2669 and #3126
2017-12-15 13:46:58 +00:00
Matt Westcott
0cd53a766e
Make whitelister consistently use double-quotes on attributes
2017-12-15 13:46:58 +00:00
LB
6866fa0d8d
add Django 2.0 note
2017-12-15 10:33:09 +00:00
LB
70eb2b6ae3
add on_delete argument to ParentalKey & ForeignKey
2017-12-15 10:33:09 +00:00
Bertrand Bordage
bb80df35ff
Fixes Elasticsearch 5 tests.
2017-12-14 19:59:21 +01:00
Bertrand Bordage
944a2a97eb
Removes an unused import.
2017-12-14 19:50:07 +01:00
Bertrand Bordage
0d70a01cf9
Updates a test.
2017-12-14 19:46:04 +01:00
Bertrand Bordage
a8196fd1a1
Fixes the DB backend.
2017-12-14 19:37:28 +01:00
Bertrand Bordage
c9e0a54372
Removes boost when using Filter.
2017-12-14 19:01:26 +01:00
Bertrand Bordage
ef125bde56
Merge branch 'master' into search-query-api
...
# Conflicts:
# wagtail/search/tests/test_elasticsearch2_backend.py
# wagtail/search/tests/test_elasticsearch5_backend.py
2017-12-14 18:59:03 +01:00
Karl Hobley
26d9fb42a3
Changelog/release notes for #3947
2017-12-14 15:22:29 +00:00
Matt Westcott
eef4a70512
Ensure we only look at SearchField records (not FilterField) to find boost values
...
It's valid for the same field to exist as both a SearchField and FilterField, and in this case get_boost would randomly find the FilterField and try (and fail) to read its 'boost' attribute.
2017-12-14 15:22:29 +00:00
Matt Westcott
39c9372e52
Iterate over the full resultset of execute_sql(result_type=MULTI) when filtering by __in with a subquery
...
This ensures that it will work equivalently for lists (as returned when connection.features.can_use_chunked_reads is False) as for iterators, and means we don't need to worry about missing results if we ever receive a chunked resultset.
2017-12-14 15:22:29 +00:00
Karl Hobley
0ac90f0d58
Index titles as FilterField
...
This allows search results to be ordered by title
2017-12-14 15:22:29 +00:00
Karl Hobley
f2ad4cea3c
Fix __isnull=True lookup for Elasticsearch 5
2017-12-14 15:22:29 +00:00
Karl Hobley
46746d86e4
Raise FieldError if user tries to order by non-FilterField
2017-12-14 15:22:29 +00:00
Karl Hobley
a3f682ca85
Fix values_list subqueries in Elasticsearch queries
2017-12-14 15:22:29 +00:00
LB (Ben Johnston)
e20fbcc3cd
Update register_page_listing_more_buttons example
...
Use Button instead of PageListingButton in **register_page_listing_more_buttons** section.
2017-12-14 12:37:16 +00:00
LB
5c29f37632
Add filter example images
2017-12-14 12:35:52 +00:00
Karl Hobley
ebb84d835d
Add upgrade consideration for removal of API v1
2017-12-14 12:00:15 +00:00
Karl Hobley
91eb6b0f6c
Changelog/release note for #4128
2017-12-14 11:36:12 +00:00
Mikalai Radchuk
c1ea37f6d5
Use the exists_alias method with keyword arguments
...
Documentation for elasticsearch client suggests to pass arguments into exists_alias
as keyword arguments: http://elasticsearch-py.readthedocs.io/en/6.0.0/api.html#elasticsearch.client.IndicesClient.exists_alias
They changed order of arguments at least once:
* https://github.com/elastic/elasticsearch-py/blob/1.6.0/elasticsearch/client/indices.py#L378
* https://github.com/elastic/elasticsearch-py/blob/1.7.0/elasticsearch/client/indices.py#L385
This is also fixes support for `ATOMIC_REBUILD`.
2017-12-14 11:33:39 +00:00
Matt Westcott
e9c8b80545
Fix project template for Django 2.0. Fixes #4125
2017-12-13 16:29:14 +00:00
Matt Westcott
c96b2848bc
Use django-modelcluster 4.0
2017-12-13 16:07:50 +00:00
Rob van der Linde
b0a8dc15d4
Fix typo in docstring
2017-12-13 15:42:15 +00:00
LB
4ea8365203
Add ability to set custom value_class on StructBlock
2017-12-13 00:00:35 +00:00