Wykres commitów

6773 Commity (99325dd2a5bd62183b26b96913f42470beb84c2c)

Autor SHA1 Wiadomość Data
Matt Westcott 99325dd2a5 Revert #3116 and fix #3076 by changing href="#" to href="javascript:void(0)" instead - fixes #3208
The stopPropagation() call was too eager, as this blocked legitimate clicks on the links in the 'more' dropdown.

Yes, I know javascript:void(0) is evil, but it's less evil than href="#" in that it doesn't have side effects. And if the design calls for an element that has the same styling and interactions as an `<a>` element but just happens to trigger an in-page action rather than navigating to a new URL, I don't see why I should jump through hoops undoing the native style of an alternative element like `<button>` to achieve something that's perfectly simple to do the 'evil' way, and as far as I'm aware has no negative effects other than to cause HTML purists to roll their eyes. SO THERE.
2016-12-08 12:56:50 +00:00
MattRijk d5ec4fbb93 Fix for issue 3202 Updated dependencies on setup.py -fixes issues with sphinxcontrib-spelling
Fixes sphinxcontrib-spelling is throwing an error when installing from setup.py
2016-12-07 22:38:51 +00:00
Matt Westcott a6dcd8e06b version bump to 1.8rc1 2016-12-06 22:52:23 +00:00
Matt Westcott 3a36f96dd5 Generate new strings for translation 2016-12-06 22:45:52 +00:00
Matt Westcott 4e181152f0 Fetch new translations from Transifex 2016-12-06 22:42:08 +00:00
Matt Westcott 2c9805dc3f Add upgrade consideration note re direct use of Filter and Rendition 2016-12-06 15:05:50 +00:00
Matt Westcott b11c8a9a0b Eliminate deprecated use of wagtailimages.Filter as a model from modeladmin 2016-12-06 15:05:50 +00:00
Matt Westcott a002bb8c39 Add some missing test coverage to modeladmin
Added an image to the Book model (affecting the index and inspect views), and
renamed TestInspectView tests to test_*
2016-12-06 15:05:49 +00:00
Matt Westcott 1b6575fbfa Deprecate the use of Filter as an ORM model
Warnings are thrown on calling save() and accessing Filter.objects
2016-12-06 15:03:15 +00:00
Matt Westcott 978cd2e95b Switch to Rendition.filter_spec as the active field for looking up filters 2016-12-06 15:03:15 +00:00
Matt Westcott cae51db1fc Perform a deep copy when cloning global Elasticsearch settings (#3201)
Fixes test failures triggered by #3036 on some combinations of Python and ES versions. These occurred because we were performing deep_update on a shallow copy of the global settings, which meant that if any dicts were merged at a level below the top level, the global settings would be mutated (causing the instance-specific settings to leak into other instances).
2016-12-06 14:59:16 +00:00
Craig Loftus 8c4644f4ca wagtailapi.serializers.PageSerializer was calling super(BaseSerializer)
This issue was found via lgtm.com/projects/g/torchbox/wagtail/
2016-12-05 21:34:24 +00:00
Matt Westcott f2fcfe54a2 Release note for #3193 2016-12-05 19:23:29 +00:00
Matt Westcott e953cb36dc Limit the explorer breadcrumb to the pages the user has explore permission over
Refactor of #3133
2016-12-05 19:04:19 +00:00
Matt Westcott 2a76a30e7b Convert breadcrumb.html include into a custom tag 2016-12-05 19:04:18 +00:00
Matt Westcott 44508fd7bb Split breadcrumb template into chooser/explorer versions instead of 'choosing' flag 2016-12-05 19:04:18 +00:00
Matt Westcott ff44666c36 Add note that wagtailforms is not a replacement for Django forms (#3190) 2016-12-05 18:19:59 +00:00
Rob Moorman f7042492df Update boto3 version to 1.4.x to support latest features of third-pary modules (wagtail-alt-generator) (#3194) 2016-12-05 18:19:15 +00:00
Matt Westcott f54498b3b0 Clarify '# ...' comments when omitting code in tutorial snippets
See https://groups.google.com/d/msg/wagtail/NFFqKY98jiY/XZjmk3-mBAAJ
2016-12-01 13:43:19 +00:00
Karl Hobley cc299d8873 Added example to #3036 upgrade consideration 2016-12-01 12:04:14 +00:00
pyMan 7d1114c1a1 Extra ES params passed through new OPTIONS key
Closes #2778

Extra ES params are now passed through new OPTIONS key in the
WAGTAILSEARCH_BACKENDS setting.

It's backward compatible: if no OPTIONS key is found and some parameters
still exist, those parameters are used for the ES constructor..
2016-12-01 12:04:14 +00:00
Matt Westcott 11676408c9 remove Fix: prefix 2016-11-30 18:46:22 +00:00
Chris Rogers 89e985d02a added convenience method in_site and tests 2016-11-30 18:45:14 +00:00
Edd Baldry cb268c233a Disable editing when page lock turned on 2016-11-30 17:16:47 +00:00
Matt Westcott 6fda0dc01f Release note for #3139 2016-11-30 17:00:30 +00:00
Nick Smith f6558de4fa Hide privacy switch on root page 2016-11-30 16:45:09 +00:00
Nick Smith bfa0341e05 Add .show attr to Button; False when dropdown is empty
Fixes #3138
2016-11-30 16:45:09 +00:00
Nick Smith 46570c9884 Don't show revisions menu button on root page 2016-11-30 16:45:09 +00:00
Matt Westcott 3fd5bb1820 Add image gallery / InlinePanel section to tutorial 2016-11-30 16:38:20 +00:00
Matt Westcott 5df8f1e34e Release note for #3145 2016-11-30 16:35:21 +00:00
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