Wykres commitów

3181 Commity (27048acda787d158a30433356a456e28aa3ab29c)

Autor SHA1 Wiadomość Data
Matt Westcott 0d25c1bd95 Merge pull request #637 from kaedroho/search/api-fixes
Search: Make database backend behave like Elasticsearch backend. Fixes #460
2014-11-04 16:20:33 +00:00
Matt Westcott 9f90f9e401 Merge branch 'bug/scripts-at-bottom' of https://github.com/takeflight/wagtail into takeflight-bug/scripts-at-bottom 2014-11-04 11:36:17 +00:00
Dave Cranwell 86fc1f0d1a Fixing meaningless test that would forever fail.
IE9 doesn't support conditional comments so testing "if IE 9" would always be false. Additionally this also meant no HTML tag was actually output for any other browser either! As we don't support IE8 either, testing for IE8 was also pointless.
2014-11-03 16:14:30 +00:00
Dave Cranwell 36a5a7704c Clarify how fill works with images that can't upscale. 2014-11-03 14:15:16 +00:00
Gilson Filho 9c24066b0b Update change_logo_dashboard.rst 2014-11-03 11:15:07 -02:00
Gilson Filho 6fa5929b27 Merge pull request #1 from gilsondev/patch-1
Create documentation to change logo in dashboard
2014-11-03 11:14:18 -02:00
Gilson Filho ccf0f15227 Create change_logo_dashboard.rst 2014-11-03 11:13:43 -02:00
Gilson Filho 11a55d998d Refactoring block 2014-11-03 11:08:57 -02:00
Gilson Filho 64d3fa2e70 Block "admin_logo" to change logo
Create block to customize logo image of dashboard, in projects Wagtail.
2014-11-03 10:47:28 -02:00
Karl Hobley 638c6bc947 Removed wagtailimages/utils folder 2014-11-03 10:09:30 +00:00
Karl Hobley 4afdbaadca Added tests for set/get focal point methods 2014-11-03 10:09:30 +00:00
Karl Hobley 404615e1df Added tests for Rect class 2014-11-03 10:09:29 +00:00
Karl Hobley 58caa3566e Added get_rect method to image 2014-11-03 10:09:29 +00:00
Karl Hobley 293addd921 Removed FocalPoint class
And refactored code that used it to use Rect instead
2014-11-03 10:09:29 +00:00
Karl Hobley cd62c72dcc Changed API for setting/getting focal points
Previously, we used a property to do this. Heres the advantages of the
new way:
 - The old way felt a bit like it was pretending to be a database field
   when it wasn't. The new way makes it easier for the developer to
   understand that this is just a setter/getter for 4 fields and not a
   field itself.
 - Code looks nicer
 - Easier to override in subclasses
 - More like Django user model
2014-11-03 10:09:29 +00:00
Karl Hobley f379634eb7 Update roadmap.rst 2014-10-31 19:34:36 +00:00
Matt Westcott 609bec10c0 Release note for #773 2014-10-31 11:05:20 +00:00
Matt Westcott 03ead75791 Merge pull request #773 from kaedroho/search/analyser-fix
Don't use edgengram as query analyser
2014-10-31 10:57:20 +00:00
Matt Westcott ff6447b0ef Merge branch 'master' of github.com:torchbox/wagtail 2014-10-31 10:47:56 +00:00
Matt Westcott c84876b2bb Merge branch 'kaedroho-issue-756' 2014-10-31 10:47:45 +00:00
Matt Westcott 96f83b3171 release note for #767 2014-10-31 10:47:19 +00:00
Matt Westcott e00ae6bdc0 Merge branch 'issue-756' of https://github.com/kaedroho/wagtail into kaedroho-issue-756
Conflicts:
	wagtail/wagtailcore/tests/test_page_model.py
2014-10-31 10:45:00 +00:00
Karl Hobley 57ae33e5a5 Updated tests 2014-10-31 09:35:33 +00:00
Karl Hobley 7af321a2e9 Don't use edgengram as query analyser
When a field uses the partial matching, the edgengram_analyser is added
to that field.

This breaks down the field data into "ngrams" like so:
Hello -> "H", "He", "Hel", "Hell", "Hello"

This allows a users query for "Hel" to match the above text.

The issue that this commit solves is that this was accidentally set as
both the index analyser (as described above) and also the query
analyser.

Setting this as the query analyser will instruct Elasticsearch to
perform the above transformation on the users input to the box as well.
So if, for example, there was a document with the word "Horse" in it, a
users query for "Hello" will match this simply because they both start
with the letter "H".

The solution is to simply set the "index_analyser" instead of the
"analyser" field (which will sets "query_analyser" as well).
2014-10-30 16:45:52 +00:00
Karl Hobley 869a16f5fa Update frontendcache.rst 2014-10-30 16:25:15 +00:00
Matt Westcott 9dd493ace7 Only redirect back to edit page for the save action - not publish or submit 2014-10-30 16:14:45 +00:00
Matt Westcott f62b0d5d67 Merge branch 'master' of github.com:torchbox/wagtail 2014-10-30 15:35:09 +00:00
Matt Westcott 367a099989 Release note + upgrade note for #769 2014-10-30 15:34:56 +00:00
Matt Westcott 10f4d05894 Merge pull request #769 from kaedroho/issue-735
Don't update descendant urls if slug not updated. Fixes #735
2014-10-30 15:07:48 +00:00
Matt Westcott b14d8d398e Merge branch 'kaedroho-mope-584-fix-formbuilder-checkboxes' 2014-10-30 14:47:28 +00:00
Matt Westcott bdeaea7b55 release note for #768 2014-10-30 14:47:14 +00:00
Karl Hobley 8266684c37 Use form.cleaned_data when processing submissions
This fixes #584. It also doesn't pack single values into lists and will
remove csrftoken for us.
2014-10-30 14:38:41 +00:00
Tom Talbot b65adb295d Unit test for form-builder forms with multiple checkboxes 2014-10-30 14:38:41 +00:00
Karl Hobley 5db1539e0a Don't update descendant urls if slug not updated
Fixes #735

Previously, if you called Page.save with update_fields and didn't include
'slug', it would still attempt to update URL paths of descendant pages.

Wagtail 0.7 introduced a feature where it saves the latest revisions
created at date on the Page. This requires a Page.save call which used
update_fields. The bug caused update_descendant_paths to be called
anyway even though the slug wasn't committed to the database.

This caused Issue 735 because publishing a page will both save a
revision and save a page causing two hits to update_descendant_paths.
Running this method twice caused all descendant pages url_path
attributes to get mangled.
2014-10-30 10:44:05 +00:00
Karl Hobley 0067935971 Added failing test for #735 2014-10-30 10:23:35 +00:00
Karl Hobley 8f72b2e6e3 Don't clobber latest_revision_created_at
Fixes #756

This field was being set to None whenever a revision was pushed live
2014-10-30 09:33:54 +00:00
Karl Hobley 046477ddc7 Added failing test for #756 2014-10-30 09:33:30 +00:00
Karl Hobley bef9f772c1 Removed b'' prefix from Django 1.7 migration
These cause issues under Python 3. Please update Django
2014-10-30 09:32:16 +00:00
Karl Hobley 24ee28077a Fixed comment in images/views/multiple 2014-10-29 17:05:08 +00:00
Matt Westcott ea3c65131e release note for #730 2014-10-29 16:49:57 +00:00
Matt Westcott fe728f9c88 Merge branch 'kaedroho-issue-729' 2014-10-29 16:48:29 +00:00
Matt Westcott 4009defa6d Merge branch 'issue-729' of https://github.com/kaedroho/wagtail into kaedroho-issue-729 2014-10-29 16:41:17 +00:00
Karl Hobley 83f80f2e04 Make default methods raise NotImplementedError 2014-10-29 16:41:08 +00:00
Karl Hobley 7967f0e07e Added DBSearchQuery class
This makes sure that the user is not filtering on any fields that are
not in search_fields. It also prevents the user from using any features
of QuerySet that are not in the search API
2014-10-29 16:41:08 +00:00
Karl Hobley 4f5b9ffaf1 Created BaseSearchQuery class
Moved some logic from ElasticSearchQuery into it
2014-10-29 16:41:07 +00:00
Karl Hobley ab896e318a DB search now returns a SearchResults object
Previously, it returned a QuerySet which gave the database backend much
more API than the Elasticsearch backend has. Which could potentially
cause issues if the developer is using the DB backend locally and the
Elasticsearch backend on their production server.

Fixes #460
2014-10-29 16:39:30 +00:00
Karl Hobley ca17d062c3 Created BaseSearchResults class
Moved some logic from ElasticSearchResults into it
2014-10-29 16:39:30 +00:00
Matt Westcott f82fd0c222 release note for #716 2014-10-29 16:38:55 +00:00
Matt Westcott 436116dc3d Merge pull request #716 from kaedroho/search/prevent-abstract-models-from-being-indexed
Search: Prevent abstract models from being indexed
2014-10-29 16:35:10 +00:00
Matt Westcott e605ac1120 remove comment that refers to logic now done in get_image_edit_form 2014-10-29 16:28:12 +00:00