8
Commit Graph

47 Commits

Author SHA1 Message Date
Alex Muller
e3488e87ad Enable and fix lint 2018-01-08 09:08:11 +00:00
Todd Dembrey
1f4a4536ab Make the static elements tracked users only
We cannot track anonymous users as the session expires after 10 minutes of
inactivity. This also avoids an issue where there is an error when the user's
session has expired and they navigate a page
2017-11-01 16:43:22 +00:00
Todd Dembrey
bc0b69fde5 Hide and show the count input as required 2017-10-26 11:47:28 +01:00
Todd Dembrey
7cf22d05f6 Tidy up the logic checks and remove the frozen property 2017-10-26 10:55:13 +01:00
Todd Dembrey
a116b14d57 Update to use the save method on the form to populate the segments 2017-10-23 15:46:34 +01:00
Todd Dembrey
44cc95617e Use a form to clean the instance 2017-10-23 15:00:31 +01:00
Todd Dembrey
c6ff2801c5 Update to use a post_init signal to populate the segment 2017-10-20 17:33:47 +01:00
Todd Dembrey
0d2834a55f Update the help text migration 2017-10-20 17:17:31 +01:00
Todd Dembrey
ff236a095d Improve the clarity of the help text 2017-10-20 12:18:29 +01:00
Todd Dembrey
ef20580334 Notify users to static compatible rules and update docs 2017-10-20 12:09:25 +01:00
Todd Dembrey
cf41be4b76 Add clean method to ensure mixed static segments are valid 2017-10-20 10:57:19 +01:00
Todd Dembrey
f339879907 Ensure that mixed static and dynamic segments are not populated at runtime 2017-10-20 09:53:18 +01:00
Todd Dembrey
675d219f1f Add the logic for static segments 2017-10-17 16:57:07 +01:00
Jasper Berghoef
80e33a467e Corrects pages item and adds personalisation pages 2017-06-15 17:01:57 +02:00
Michael van Tellingen
281086a159 Rename variations to variants 2017-06-02 15:31:46 +02:00
Jasper Berghoef
aafc8c4ed5 Simpler queries 2017-06-02 15:10:54 +02:00
Jasper Berghoef
f21c423b1c Updates functions for new mixin 2017-06-02 15:10:54 +02:00
Jasper Berghoef
7e24485aaf Adds comments to segment functions 2017-06-02 15:10:54 +02:00
Jasper Berghoef
12ae3fa173 Uses the Mixin for page lookups 2017-06-02 15:10:54 +02:00
Jasper Berghoef
961a58505a Adds variant count 2017-06-02 15:10:54 +02:00
Jasper Berghoef
cb03a36ba2 Work in progress 2017-06-02 15:10:54 +02:00
Michael van Tellingen
5aa754dd80 Rename PersonalisablePageMixin.personalisable_metadata
Use PersonalisablePageMixin.personalisation_metadata instead to mirror
the package name
2017-06-02 10:23:46 +02:00
Mike Dingjan
c0c3ce19fe Remove a few unused imports 2017-06-01 18:06:41 +02:00
Michael van Tellingen
29001fac8e Remove custom wagtail page form
THe older page form allowed to change segment settings inline but since
support for this was temporarily removed in an earlier commit we can
clean this up too
2017-06-01 13:51:13 +02:00
Michael van Tellingen
7076973fc8 Refactor personalisable pages
Instead of working with django model mixins it now uses a separate
model entity to keep track of the personalized pages (metadata).

The current downside of this approach is that the segment of an existing
variant is no longer easily adjustable for now.
2017-05-31 21:31:40 +02:00
Michael van Tellingen
2651eb0e3c Add related_name to PersonalisablePageMixin 2017-05-31 18:25:34 +02:00
Paul J Stevens
c100dc603c fix regression 2017-05-31 18:01:19 +02:00
Bertrand Bordage
85613db363 Merge branch 'simplifications+optimisations' of github.com:LabD/wagtail-personalisation into simplifications+optimisations 2017-05-31 17:43:18 +02:00
Bertrand Bordage
5fbfb82480 Switches back to absolute wagtail_personalisation imports. 2017-05-31 17:41:12 +02:00
Bertrand Bordage
f88722c827 Further simplifications. 2017-05-31 17:38:51 +02:00
Bertrand Bordage
46ad32236c Merge branch 'master' into simplifications+optimisations 2017-05-31 17:21:07 +02:00
Bertrand Bordage
4f2dc3a304 Handles both Python 2 & 3, and multiple optimisations & simplifications. 2017-05-31 17:13:33 +02:00
Boris Besemer
6587d0fd56 Merge pull request #96 from LabD/feature/translation-support
Fixes a few translation strings and adds translation files
2017-05-31 16:58:50 +02:00
Paul J Stevens
99d2e4a347 support multiple uses of the mixin class (#140) 2017-05-31 16:50:56 +02:00
Michael van Tellingen
63d5de9803 Optimize query for the segment visits 2017-05-31 16:37:10 +02:00
blurrah
0aa07261ad fixes a few translation strings and adds translation files 2017-05-31 16:23:49 +02:00
Paul J Stevens
1b73119766 post rebase fixes 2017-05-31 15:59:09 +02:00
Paul J Stevens
ebef7f8785 refactor and add tests 2017-05-31 15:59:09 +02:00
Paul J Stevens
f693e62bbf rename base-class to reflect mixin nature 2017-05-31 15:59:09 +02:00
Paul J Stevens
4e61ff0d08 remove all references or uses of old PersonalisablePage model 2017-05-31 15:59:09 +02:00
Paul J Stevens
49062d36b4 remove PersonalisablePage model 2017-05-31 15:59:09 +02:00
Paul J Stevens
66ed40f8ec make personalisedpage class abstract 2017-05-31 15:59:09 +02:00
Michael van Tellingen
31f8a329f2 Use constants for enabled/disabling status on Segment 2017-05-31 14:48:46 +02:00
Jasper Berghoef
45f2de62ea Splits segment dashboard view and set default table view 2017-05-31 13:55:08 +02:00
Michael van Tellingen
3eac2cd4dd Codestyle fixes (flake8)
This also adds the flake8 dependencies to the test extras for
installation.
2017-05-28 09:13:08 +02:00
Jasper Berghoef
55da67523f Puts the receivers in a seperate file and adds appconfig 2017-05-26 16:40:50 +02:00
Jasper Berghoef
ebde527ae9 Renames the module from ‘personalisation’ to ‘wagtail_personalisation’ 2017-05-26 16:31:54 +02:00