0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
Commit Graph

8791 Commits

Author SHA1 Message Date
Karl Hobley
bd4729144e Minor python optimisation 2018-07-11 18:28:14 +01:00
Karl Hobley
0b85b3a4eb Reorder query classes 2018-07-11 18:28:14 +01:00
Karl Hobley
7f15bc500b Reorder tests 2018-07-11 18:28:14 +01:00
Karl Hobley
939a678d99 Remove term level query classes 2018-07-11 18:28:14 +01:00
Karl Hobley
37f2b77e81 Remove shortcut queries 2018-07-11 18:24:59 +01:00
Karl Hobley
03ccd2e55d Rewrite Boost to no longer be a shortcut 2018-07-11 18:24:59 +01:00
Karl Hobley
0ab6f096cd Fix typo in Elasticsearch backend
Caused crash when PlainText was used in a combinator query
2018-07-11 18:20:56 +01:00
Karl Hobley
fc416f2fc3 Rewrite PlainText to no longer be a shortcut 2018-07-11 18:20:56 +01:00
Karl Hobley
a1c96ac23b Remove Filter query class 2018-07-11 18:20:56 +01:00
Bertrand Bordage
88d5a8cfee Release notes for #4575. 2018-07-11 18:25:09 +02:00
Karl Hobley
90cc9c54ba Added AutocompleteField & autocomplete().
Squashes these commits:

Added AutocompleteField

Implemented AutocompleteField for Elasticsearch

Add autocomplete() method to search backends

Implement autocomplete API for Elasticsearch

Allow partial match to be disabled on search()

Refactor search/autocomplete methods on base search backend
2018-07-11 18:22:37 +02:00
Matt Westcott
1d517dd0d8 Mark test_facet_tags as expected failure on Elasticsearch 2018-07-11 15:11:45 +01:00
Matt Westcott
a507cb9114 Revert "Update search query classes for RFC 25" 2018-07-11 13:48:40 +01:00
Matt Westcott
f719ce1a82 Add note about not asking support questions in multiple places 2018-07-11 11:09:45 +01:00
Michael van Tellingen
bad95cf37c Optimize the querycount for the sitemap.xml page
By optionally passing the request object to Page.get_sitemap_urls() it
will now use the cached site root on the request object instead of
retrieving it for each call. This cuts the number of queries required
for a sitemap roughly in half.
2018-07-10 16:53:19 +01:00
Pomax
40981b0c65 replace my name with my name
I do not write code under my passport name, if I have to be in a changelog, please use "Pomax" =)
2018-07-10 11:20:28 +01:00
Thibaud Colas
2d9440f79c
Add release notes for #4582 (#4676) 2018-07-10 00:31:57 +03:00
kevin howbrook
cfcad4059b Update editor guide for embeds and documents in rich text, fix #4558 (#4632) 2018-07-09 10:07:03 +03:00
Matt Westcott
e53076d949 Release note for #4669 2018-07-06 17:01:43 +01:00
Abdulmalik Abdulwahab
23052e636e show revision unschedule button to only users with permission 2018-07-06 16:58:40 +01:00
Abdulmalik Abdulwahab
3e1511d362 add can_unschedule to PagePermissionTester 2018-07-06 16:58:40 +01:00
Abdulmalik Abdulwahab
254092e595 Change the user permission check on revisions unschedule to can_publish 2018-07-06 16:58:40 +01:00
Abdulmalik Abdulwahab
e616d11bdc Failing test for unschedule for unpublished pages 2018-07-06 16:58:39 +01:00
Karl Hobley
c22321ee75
Merge pull request #4593 from kaedroho/update-search-query-classes
Update search query classes for RFC 25
2018-07-05 17:15:11 +01:00
Karl Hobley
fa1d572644 Minor python optimisation 2018-07-05 12:14:48 +01:00
Karl Hobley
8b4f64e2f1 Merge branch 'master' into update-search-query-classes 2018-07-05 12:10:51 +01:00
Matt Westcott
4f07f228b2 Fill in release date for 2.1.1 2018-07-04 15:36:49 +01:00
Matt Westcott
1fd111cf6a Fill in release date for 1.13.2 2018-07-04 15:36:08 +01:00
Matt Westcott
815b58fbda Fill in release date for 1.12.4 2018-07-04 15:36:07 +01:00
Matt Westcott
783b128fa2 Release note for #4496 in 2.1.1 2018-07-03 17:34:49 +01:00
Matt Westcott
048a4e83f1 Release note for #4496 in 1.13.2 2018-07-03 17:34:49 +01:00
Matt Westcott
7eab2ae793 Release note for #4496 in 1.12.4 2018-07-03 17:34:48 +01:00
Matt Westcott
ce4cd82bd9 Release note for #4496 in 2.2 2018-07-03 16:59:01 +01:00
Matt Westcott
879239b02c Reject null characters in redirect URLs 2018-07-03 16:55:59 +01:00
Matt Westcott
3aff9f76e4 Revert "Strip Unicode NULL chars when normalizing paths"
This reverts commit 882f8f3cf8.

Conflicts:
	CHANGELOG.txt
	CONTRIBUTORS.rst
	docs/releases/2.2.rst
2018-07-03 16:45:27 +01:00
Matt Westcott
9ef8ee2d7f Release note for #4553 in 2.1.1 2018-07-03 16:10:59 +01:00
Matt Westcott
b329ed4b65 Release note for #4553 in 1.12.4 2018-07-03 16:10:21 +01:00
Matt Westcott
55ddab6d14 Release note for #4553 in 1.13.x 2018-07-03 16:10:12 +01:00
Matt Westcott
ed9a3a2d69 Pass all necessary template context to chooser view after upload validation error
Fixes #4548
2018-07-03 15:26:28 +01:00
Matt Westcott
b4a2e13cb0 Copy 1.13.2 release notes to master 2018-06-29 15:37:58 +01:00
Matt Westcott
6c3431580a Release note for #4480 in 1.12.4 2018-06-29 15:37:30 +01:00
Matt Westcott
1a4046a676 Copy 1.12.4 release notes to master 2018-06-29 15:36:43 +01:00
Tom Dyson
ee661ab6f8 README rewrite (#4372) 2018-06-28 17:27:55 +01:00
Matt Westcott
06d8fb0f63 Add guideline on the use of British vs American English 2018-06-27 20:39:08 +01:00
acrewdson
882f8f3cf8 Strip Unicode NULL chars when normalizing paths
After migrating a Wagtail-based site from MySQL to Postgres, we
noticed that malicious requests to the site that included percent-
encoded Unicode NULLs (`%00`) raised a `ValueError` exception that we
hadn't seen when using MySQL: `A string literal cannot contain NUL
(0x00) characters.` This appears to relate to `psycopg2`'s decision to
raise an exception in these situations, as discussed here:

    https://github.com/psycopg/psycopg2/issues/420

While newer versions of Django appear to provide some field validation
that addresses these characters, it doesn't look like Wagtail's
redirect middleware is making use of those validators, and so it seemed
reasonable to clean these characters in the context of 'normalizing'
the paths before looking for corresponding redirects -- especially
since a quick investigation on the internet suggests that U+0000 in
URLs can be used as a means of attack, and also since RFC 3986 says:

   Note, however, that the "%00" percent-encoding (NUL) may require
   special handling and should be rejected if the application is not
   expecting to receive raw data within a component.
2018-06-27 11:19:36 -04:00
Matt Westcott
0129e4ce77 Release note for #4648 2018-06-21 12:05:26 +01:00
Abdulmalik Abdulwahab
d5afeab48e return none if page specific_class is not set in PageTypeField to_representation 2018-06-21 10:12:44 +01:00
Abdulmalik Abdulwahab
d33a00aa49 Write a failing test for missing page model 2018-06-21 09:44:06 +01:00
Matt Westcott
ac84cea671 Add release note for #4612 in 2.1.1 2018-06-20 17:30:26 +01:00
Matt Westcott
fee77469b3 Release note for #4583 2018-06-20 15:57:29 +01:00