Wykres commitów

7043 Commity (babe8a0c09cad1395213c18d3d307ed5b3039a90)

Autor SHA1 Wiadomość Data
Karl Hobley a1ae5950f4 Install certifi when testing against Elasticsearch 5
Required by elasticsearch-py but needs to be installed separately

8314f7b25c
2016-11-30 16:31:21 +00:00
Karl Hobley 5007165f29 Install JDK8 on Travis for Elasticsearch 5 2016-11-30 16:31:20 +00:00
Karl Hobley 6be679e19f Set vm.max_map_count to 262144 2016-11-30 16:31:20 +00:00
Karl Hobley 35c850d8ec Update URLs in install_elasticsearch5.sh 2016-11-30 16:31:20 +00:00
Karl Hobley 308844e5e8 Cut down the amount of Elasticsearch travis builds 2016-11-30 16:31:20 +00:00
Karl Hobley 18316d627d Added Elasticsearch 5 to search backend docs 2016-11-30 16:31:20 +00:00
Karl Hobley 752fbca24a Add Elasticsearch 5 to Travis/tox 2016-11-30 16:31:20 +00:00
Karl Hobley c2e944fb3b Implement empty Elasticsearch5Index class
Just so we have the complete set of classes in this backend
2016-11-30 16:31:19 +00:00
Karl Hobley 60c9d7c26c Switch query combinators to use "bool" queries 2016-11-30 16:31:19 +00:00
Karl Hobley 4467bed69b Replace "not missing" query with "exists"
This applies to all backends as the "exists" query has always existed.
The results should be the same.

https://www.elastic.co/guide/en/elasticsearch/reference/2.1/query-dsl-exists-query.html
2016-11-30 16:31:19 +00:00
Karl Hobley 906201d5ae Rename "fields" search parameter to "stored_fields"
https://www.elastic.co/guide/en/elasticsearch/reference/5.x/breaking_50_search_changes.html#_literal_fields_literal_parameter
2016-11-30 16:31:19 +00:00
Karl Hobley 736138ae0e Don't set "index: not_analyzed" on filter fields in ES5
We now convey this information to Elasticsearch through the type. Only
the "text" type is analyzed and any string fields that we don't want to
be analyzed can now use the "keyword" type.
2016-11-30 16:31:19 +00:00
Karl Hobley abb993f901 Change value of "store" property to a boolean
This affects all search backends as it always should've been a boolean.
Older versions of Elasticsearch coerced it to a boolean but ES5 doesn't
appear to do this anymore.
2016-11-30 16:31:19 +00:00
Karl Hobley a5e7fbbb0f Switch string type for text/keyword
Using "text" type in search fields and "keyword" type in filter fields

https://www.elastic.co/guide/en/elasticsearch/reference/5.x/breaking_50_mapping_changes.html#_literal_string_literal_fields_replaced_by_literal_text_literal_literal_keyword_literal_fields
https://www.elastic.co/guide/en/elasticsearch/reference/5.x/text.html
https://www.elastic.co/guide/en/elasticsearch/reference/5.x/keyword.html
2016-11-30 16:31:19 +00:00
Karl Hobley 93cc470d4b Added Elasticsearch 5 backend tests 2016-11-30 16:31:19 +00:00
Karl Hobley f07b032881 Added Elasticsearch 5 backend 2016-11-30 16:31:18 +00:00
Matt Westcott 960c2b9341 Use Sean Hoefler's full name in CONTRIBUTORS.rst 2016-11-30 11:00:52 +00:00
Diederik van der Boor f960753d74 Add the `alters_data` attribute on `Page.copy()`.
This makes sure the variable can't be printed in the template,
performing an accidental copy of the page. That also happened when using
the `{% print %}` tag from my django-debugtools package
2016-11-29 11:39:37 +00:00
Karl Hobley ba4119bd26 Update check_view_restrictions hook to use new accept_request method 2016-11-29 11:24:35 +00:00
Karl Hobley ecd585abd1 Added accept_request method to PageViewRestriction
This allows custom code to check whether a PageViewRestriction will pass
a request or not without needing to depend on any implementation
details.
2016-11-29 11:24:35 +00:00
shoefler 7994d19f65 Set array arguments to None 2016-11-29 10:30:22 +00:00
Scot Hacker 2882775842 Add BlockQuoteBlock to core block types 2016-11-29 10:13:10 +00:00
Morgan Aubert 4e23e46159 Fix #3167 - Ensure TableBlock content is indexed
Changes include:
* adding the 'get_searchable_content' method on the TableBlock
* ... and the related test
2016-11-28 20:40:47 +00:00
Matt Westcott 3d37f84311 Release note for #2812 2016-11-28 17:45:17 +00:00
Mikalai Radchuk 55bdae573b Add support of callable choices for ChoiceBlock
Fixes #2809
2016-11-28 17:44:35 +00:00
Matt Westcott 02360e6651 re-indent template performance code snippet 2016-11-28 13:45:42 +00:00
Tim Heap 16213db0f8 Remove old versionadded notes
A step has been added to the release process notes to do this for future
releases as well.

https://github.com/torchbox/wagtail/wiki/Creating-a-new-Wagtail-release
2016-11-28 13:41:35 +00:00
Tim Heap 6ba34636cb Fix whitespace errors in docs
Trimmed trailing whitespace, convert tabs to 4 spaces, add preference
for spaces to `.editorconfig`.
2016-11-28 13:41:35 +00:00
Tim Heap 254e675634 Use .. code-block:: console for all shell commands
This is the correct lexer for interactive console sessions, according to
<http://pygments.org/docs/lexers/>. This does require command lines to
be prefixed with `$`, otherwise they are interpreted as the output of a
command. It highlights the command nicely, including environment
variables, strings, and comments.
2016-11-28 13:41:35 +00:00
Tim Heap f742d4a476 Use .. code-block:: for all python, html blocks 2016-11-28 13:41:34 +00:00
Tim Heap 2f8a43cd66 Document new blocks in login template
The old `branding.rst` docs were combined with the new docs on
customising the login page in a new `admin_templates.rst` document.
2016-11-28 12:41:06 +00:00
Tim Heap 15c18e7f56 Add blocks as customisation hooks to wagtailadmin/login.html 2016-11-28 10:59:44 +11:00
Diederik van der Boor d21171c1b0 Fix errors by settings context processor in out-of-request templates
When templates are rendered outside the request cycle,
the `settings` context processor fails because `request.site` is not
created because `SiteMiddleware` was not processed.

This happens whenever requests are mocked for rendering.
For example email rendering by third party packages or unittests
that mock a request object without taking all middleware into account.
2016-11-24 12:14:58 +00:00
Andy Babic 23eced1fcd `Added support for 'exclude_from_explorer' attribute on ModelAdmin class 2016-11-23 16:51:08 +00:00
Karl Hobley 4c0608cbb7 Fix flake8 error 2016-11-21 10:05:25 +00:00
Morgan Aubert 51b4f0f53d Fix #3134
Changes include:
* fixing the FieldError exception that can occur as described in #3134
* add tests for the "search_garbage_collect" command
2016-11-17 14:34:56 +00:00
Albert O'Connor a5b544631b Update the Cloudflare backend to use the v4 API
Fixes #3146
2016-11-17 12:01:57 +00:00
Karl Hobley 4dbf230d04 Use capfirst() in Page.get_verbose_name() (#3157)
* Use capfirst() in Page.get_verbose_name()

* Fix capitalisation of page type names in tests
2016-11-16 11:03:05 +00:00
Manuel E. Gutierrez 5a26e22c0f Improve TranslatedField example
Avoid allocating two variables when only need one.
2016-11-15 10:39:55 +00:00
Benoit Vogel 2fba07ad8e Implemented StaticBlock
Uses admin_text which is a Meta attribute.
* StaticBlock code in wagtailcore/blocks + tests
* StaticBlock in Streamfield docs
2016-11-15 10:29:06 +00:00
Matt Westcott 1874b8b259 Fix PEP8 E305 errors (expected 2 blank lines after class or function definition) 2016-11-15 09:43:04 +00:00
Matt Westcott b624bce046 fix iconv gripes from #2752 2016-11-14 21:33:25 +00:00
Thejaswi Puthraya 6821c763ea Refs #2717. Custom forms for modeladmin. 2016-11-11 15:30:44 +00:00
Matt Westcott c41af1fd8c Hardcode the module path wagtail.wagtailcore.models.PageManager in system check message
The use of Manager.from_queryset means that __module__ / __name__ don't work reliably,
resulting in a misleading message - see https://groups.google.com/d/msg/wagtail/6vZExngYVu4/vQBecOckAwAJ
2016-11-11 12:07:16 +00:00
Matt Westcott 4b3ae1cbbf Remove unused blockname-* classname from sequence-member elements - fixes #3142 2016-11-09 16:46:19 +00:00
Matt Westcott 98b4a6dccd remove as-yet-unused tutorial screenshots for categories 2016-11-09 15:47:55 +00:00
Matt Westcott 011f2099eb Remove categories section, add better example of MultiFieldPanel, minor copyediting 2016-11-09 14:35:58 +00:00
Scot Hacker 756d5ec0dd Move slugurl example/explanation
- Also misc cleanup
2016-11-09 10:42:47 +00:00
Scot Hacker 3634c2b289 Add a Categories system to Getting Started tutorial 2016-11-09 10:42:46 +00:00
Scot Hacker 8c5b62ccfc Intro tutorial additions and improvements
- Addresses all issues raised in PR review
- Adds more info to "Navigating parents/children"
- Adds a new dedicated section on overriding context
2016-11-09 10:42:45 +00:00