0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00
Commit Graph

10249 Commits

Author SHA1 Message Date
Karl Hobley
3d645fad53 Make database backend handle MATCH_ALL/MATCH_NONE properly 2020-05-20 14:12:24 +01:00
Karl Hobley
a2bfb193b6 Added query parser and use it in the admin 2020-05-20 14:12:23 +01:00
Karl Hobley
7d32a4fd21 Implemented MATCH_NONE query 2020-05-20 14:12:20 +01:00
Karl Hobley
81811f6c1c Documentation for phrase search and query classes 2020-05-20 14:12:18 +01:00
Karl Hobley
a501dc257d Implement Phrase() query in Elasticsearch backend 2020-05-20 14:12:17 +01:00
Karl Hobley
b320ac7910 Implement Phrase() query in PostgreSQL backend 2020-05-20 14:12:16 +01:00
Karl Hobley
a67ac1aa1d Implement Phrase() query in database backend 2020-05-20 14:12:15 +01:00
Karl Hobley
55db4646ed Add Phrase() query class and test 2020-05-20 14:12:14 +01:00
Karl Hobley
70c5dcf80f Add "Programming Rust" book to search fixture 2020-05-20 14:12:13 +01:00
Coen van der Kamp
99abab5d6b Add section to explain commit to pull request 2020-05-19 17:56:26 +01:00
Karl Hobley
58f6aecfc7
Some cleanups in PostgreSQL search module (#5953)
* Separated logic for extracting indexable content

* Docs edits

* Readability improvements

* Simplify/deduplicate indexing code

* Simplify search code

Pulled in some code that will be included in a future Django release
(query.py)

* Reword a limitation

* Fix typo in docstring

* Raise a warning when Boost() is used in PostgreSQL search backend

* Add note mentioning that RawSearchQuery can be replaced in Django 3.1

* Add comment mentioning that we can replace query.py if Django PR merged
2020-05-18 15:54:31 +01:00
Matt Westcott
52013f4920 Mention INSTALLED_APPS ordering in custom user docs 2020-05-18 11:33:53 +01:00
Thibaud Colas
7eeb44ad04 Replace gulp-sass with gulp-dart-sass
* Rewrite Sass code that relies on deprecated or removed features in Dart Sass
* Remove unneeded rebuild of node-sass
* Update lockfile
2020-05-17 21:00:20 +10:00
Thibaud Colas
471823f238 Upgrade to Jest 23
* Jest 24 is out but upgrading to it would require us to also update our Webpack tooling to Babel 7, which is quite significant work.
* Rewrite Draftail initialisation tests to stop relying on jsdom script parsing
2020-05-17 20:35:00 +10:00
Kalob Taulien
b5f5ac10db
Add export_filename option to modeladmin
Merge pull request #6031 from wagtail/reports-filename
2020-05-15 10:04:57 -06:00
jacobtoppm
da34ea9854 Add export_filename check to modeladmin tests 2020-05-15 11:07:32 +01:00
LB (Ben Johnston)
d3dd7296c9
docs - revise heading levels for feature detection (images) (#6029) 2020-05-15 09:42:37 +01:00
Lars van de Kerkhof
6194dcb74b Do not download entire search index on search terms with no hits
When a slice is specifically set to [0:0], which would yield an empty list,
instead wagtail will clear the slice, effectively downloading the entire search
index.

This scenario happens when a search term does not return any results.
So every time you enter a search term that has no results, the entire search
index is downloaded, you don't really feel it because wagtail only downloads
the pk values, and it is unlikely a site has millions of pages, but it is still
very inefficient and unwanted.
2020-05-15 11:45:54 +10:00
Coen van der Kamp
7253b2f6db Show userbar on moderation preview with approve and reject items
* Fixes #6008
* Regression from cbabc3d9c7
2020-05-15 11:30:42 +10:00
jacobtoppm
cc676c4c9e Add export_filename option to modeladmin 2020-05-14 15:50:47 +01:00
Kalob Taulien
f757324039 Add Snippet hooks (after_edit_snippet, after_create_snippet and after_delete_snippet) 2020-05-14 20:47:36 +10:00
Cameron Lamb
55476426db Fix typo in ModelAdminGroup example 2020-05-14 20:37:34 +10:00
Robert Rollins
982b1d60a4 Page can_move permission method to ignore bulk_delete permission check
* bulk_delete exists to avoid allowing users to delete a whole lot of pages all at once by mistake, when they think they're just deleting one. However, the move/delete analogue breaks down when you're talking about moving an entire subtree, because you're *not* directly altering the children of the moved Page.
2020-05-10 21:12:24 +10:00
Brylie Christopher Oxley
ff37ad6ab9 Add 'add_redirect' static method to Redirect
* This method was inspired by a Lacey Williams Henschel (@williln) presentation at Wagtail Space US 2018, called  'What the Wagtail docs don't tell you'. https://www.youtube.com/watch?v=PCkxBNXWM64&t=1220s
* Add docs section reference/contrib/redirects
2020-05-10 18:48:33 +10:00
Timothy Bautista
ee99f91aa5 Add select_related to public_q query
* Prevents n+1 query count when getting a list of pages with view restrictions
* Add query count checks to public/not_public tests
2020-05-10 17:28:07 +10:00
Eric Phetteplace
20790f4c96 improve Adding Reports documentation
* `reverse` was used but not imported in the wagtail_hooks.py examples, causing them to be invalid
* I switched the Django `url` calls to use `path` instead since that seems both cleaner and officially recommended, the url function is "likely to be deprecated in a future release" per Django docs and  `path` is starting to replace it in urls.py files now
2020-05-10 17:15:32 +10:00
LB
d88dae75ae Fix back tick usage in changelog/release notes 2020-05-10 17:11:36 +10:00
Neal Todd
2b35a852fe Add Rustface to the feature detection docs (images) 2020-05-10 17:09:33 +10:00
LB Johnston
8fc722a6f3 Add ability to define form_classname on ListBlock & StreamBlock
* resolves #4042
2020-05-10 16:48:24 +10:00
Coen van der Kamp
68b2dc01c2 Render user bar on non page views
* resolves #5565
2020-05-10 16:10:45 +10:00
jacobtoppm
30c398c91a Add purge_revisions management command
* Fix typo in publish_scheduled_pages dry run
* Add purge_revisions to docs
* Resolves #5192
2020-05-08 11:35:30 +10:00
Liam Mullens
52cb7ab77b Update ImageRendition field to return Image alt text
* Update ImageRendtion to use default_alt_text property of Image
* Update example in documentation
* Add a test for ImageRenditionField
* Resolves #5816
2020-05-08 11:22:49 +10:00
Meteor0id
829a9bbf06
Add ability to replace the default Wagtail logo in the userbar, via branding_logo block (#4731) 2020-05-08 00:11:05 +01:00
Thibaud Colas
90d606bcef
Fix gulp.dest path rewriter output from Gulp 4 upgrade (#6012) 2020-05-07 22:07:56 +01:00
Matt Westcott
6856b2aea2 Add missing doc link for 2.8.2 2020-05-07 21:46:34 +01:00
Matt Westcott
7b772aba81 Update note on ATOMIC_REBUILD to indicate that the problem is specific to 5.4.x - fixes #6003 2020-05-07 21:45:35 +01:00
Jérôme Lebleu
f1dadba75a Remove FieldRowPanel top padding inside MultiFieldPanel
- fixes #5904
2020-05-07 22:55:25 +10:00
saeed
44c1f1cab2 Remove sticky footer on small devices 2020-05-07 22:55:25 +10:00
lukealhardwick
30a66638cb Add Reddit to oEmbed provider list
- Added endpoint for reddit comments to be embedded
2020-05-07 22:55:24 +10:00
Coen van der Kamp
758ebce865 Add ordering to Site
- Display domain names in switcher
- Ensure sorted values are shown in Site index view & Site switcher
2020-05-07 20:10:50 +10:00
Ramon de Jezus
85540283cf Fixed a typo 2020-05-06 15:29:12 +01:00
Matt Westcott
4717c2c1c4 Release note for CVE-2020-11037 in 2.9 2020-05-04 13:28:18 +01:00
Matt Westcott
f26d8ee72a Release note for 2.8.2 2020-05-04 13:28:11 +01:00
Matt Westcott
e6accccfff Release note for 2.7.3 2020-05-04 13:28:04 +01:00
Matt Westcott
6d660b0c27 Use constant_time_compare for view restriction password checks 2020-05-04 13:26:53 +01:00
Matt Westcott
1ef36d0420 Fill in release date for 2.9 2020-05-04 11:35:15 +01:00
Matt Westcott
a159df380f Fetch new translations from Transifex 2020-05-04 11:34:27 +01:00
LB (Ben Johnston)
9359b14326
fix sphinx warnings (#6001)
- use .add_css_file instead of .add_stylesheet in conf.py
- use .add_js_file instead of .add_javascript in conf.py
- fix duplicate clss references in pages model reference (for grouping of methods & attributes)
- rename wagtailspace.js to banner.js (may be used in the future for a generic banner)
2020-05-03 14:02:43 +02:00
Rick van Hattem
40aedfc66b Show more granular error messages from Pillow (image uploads)
* Prevent `invalid_image` from hiding Pillow errors, instead rename key to `invalid_image_extension`
* Django already uses `invalid_image` - https://github.com/django/django/blob/stable/3.0.x/django/forms/fields.py#L639
* Add tests separate for images with invalid extensions vs non-images
2020-05-03 21:14:08 +10:00
LB (Ben Johnston)
f88bd4bc7f
Merge pull request #6002 from lb-/feature/docs-update-colour-and-wagtail-logo
Revise bg colour & wagtail icon hover styles in documentation
2020-05-03 19:45:54 +10:00