8
Commit Graph

424 Commits

Author SHA1 Message Date
Paul J Stevens
8a151e3bab python2 cleanups 2018-05-26 12:06:35 +02:00
Paul J Stevens
bb34bddaf4 add custom model manager 2018-05-26 12:01:26 +02:00
Paul J Stevens
9710d3b479 post-merge cleanups 2018-05-26 11:45:28 +02:00
Paul J Stevens
5536adc3ec Merge branch 'develop' into feature/djangoconf-sprint 2018-05-26 10:48:33 +02:00
Paul J Stevens
62d258fd9e fixes wagtail2 compatibility
return QuerySets instead of lists
2018-03-17 11:26:56 +01:00
Jasper Berghoef
0d89d47735 Prevent webpack copy error from img dir 2018-03-16 11:14:19 +01:00
Jasper Berghoef
92189a3be8 Fix dashboard edit links 2018-03-16 11:14:19 +01:00
Jasper Berghoef
6b7a1ed591 Updated requirements and module paths 2018-03-16 11:14:19 +01:00
Kaitlyn Crawford
7f5e958ee3 Catch the exception if the visit count rule doesn't have a page 2018-03-09 19:20:30 +02:00
Kaitlyn Crawford
74d3123084 Ensure static segments don't have one extra user 2018-03-08 13:14:29 +02:00
Kaitlyn Crawford
d335e4fd7b Populate static segments even if the count is 0 2018-02-26 14:31:56 +02:00
Kaitlyn Crawford
db2f82967e Only loop through users once when saving static segments
When saving a new static segment we count the matching users and
populate the segment from the database. Each of these requires us
to loop through all of the users, so it's better to do them at the
same time.
2018-02-25 15:43:12 +02:00
Kaitlyn Crawford
37243365a7 Merge branch 'develop' into feature/populate-static-segments-from-db-at-creation 2018-02-25 15:08:36 +02:00
Kaitlyn Crawford
9a86b0c8cc Add tests for segment users view 2018-02-22 15:14:34 +02:00
Kaitlyn Crawford
ba6056e3f8 Link to download CSV of users in segment 2018-02-22 14:21:43 +02:00
Kaitlyn Crawford
fdc0a7f2e1 Get user info for Visit count rule 2018-02-21 19:08:29 +02:00
Kaitlyn Crawford
12b0cd9231 Make visit count session retrieval seperate method 2018-02-21 19:07:35 +02:00
Kaitlyn Crawford
330557be8d Make VisitCountRule.test_user actually test with only a user 2018-02-21 18:48:44 +02:00
Kaitlyn Crawford
364cb1a7e6 Query rule should not be static 2018-02-20 15:08:12 +02:00
Kaitlyn Crawford
8f789b3e17 Fill static segments with users from the database at creation 2018-02-15 13:20:48 +02:00
Saeed Marzban
59f4877e04 add localize filter 2018-02-13 13:57:00 +02:00
Saeed Marzban
2ff29cc375 get the number of users in a static segment from static_users variable 2018-02-13 13:47:45 +02:00
Kaitlyn Crawford
ea1ecc2a98 Get excluded segments from session and don't check them again 2018-02-12 18:00:38 +02:00
Kaitlyn Crawford
0f0aecf673 Store excluded segments in the session object 2018-02-12 17:57:36 +02:00
Kaitlyn Crawford
c11960f921 Only store excluded users for static segments 2018-02-12 16:58:20 +02:00
Kaitlyn Crawford
521222f748 Don't check if excluded users match segment rules 2018-02-09 12:35:53 +02:00
Kaitlyn Crawford
56a8e106d8 Add users excluded by randomisation to excluded_users list 2018-02-09 12:35:09 +02:00
Kaitlyn Crawford
3162191a16 Add field to segment to store excluded users 2018-02-09 12:32:42 +02:00
Kaitlyn Crawford
d114bb2570 Always add the segment to the session if they pass 2018-02-08 19:47:35 +02:00
Kaitlyn Crawford
d073c7d268 Randomise into static segments when they are created 2018-02-05 12:20:10 +02:00
Kaitlyn Crawford
7200b5b4c4 If a session passes segment rules randomise them into the segement 2018-02-05 12:19:36 +02:00
Kaitlyn Crawford
6f97c76958 Add method to randomise matching sessions into the segment 2018-02-05 12:18:22 +02:00
Kaitlyn Crawford
29aa91477e Migrations 2018-02-02 10:15:20 +02:00
Kaitlyn Crawford
5c3acc6661 Display randomisation percentages on segment dashboard 2018-02-02 10:15:04 +02:00
Kaitlyn Crawford
ae97118c3f Store randomisation percentage on segment model 2018-02-02 10:13:18 +02:00
Kaitlyn Crawford
99f9700ed0 Display record counter for active segments 2018-01-26 16:21:15 +02:00
Kaitlyn Crawford
5ad70d68f6 Don't include staff and inactive users when counting matched users 2018-01-26 15:38:26 +02:00
Kaitlyn Crawford
fbcebb43a4 Store record count on a segment when it is created 2018-01-25 15:14:19 +02:00
Kaitlyn Crawford
786a8801b1 Migrations for Segment.matched_user_count 2018-01-25 11:26:57 +02:00
Kaitlyn Crawford
caf73aa43c Add matched_users_count field to segments 2018-01-25 11:12:46 +02:00
Kaitlyn Crawford
4021d2c915 Add method to calculate the number of users that match a segment 2018-01-24 22:00:28 +02:00
Kaitlyn Crawford
33f96af4a3 Allow test_user() for static rules to accept a user 2018-01-24 15:14:24 +02:00
Kaitlyn Crawford
a00929846e Set query rule to be static 2018-01-18 16:17:30 +02:00
Alex Muller
e3488e87ad Enable and fix lint 2018-01-08 09:08:11 +00:00
Alex Muller
a4a283e4f3 Fix segment edit link
This is hardcoded at the moment which doesn't work unless you
redirect URLs to have a trailing slash.

Using the reverse URL lookup works in all cases.
2018-01-05 17:00:15 +00:00
Tomasz Knapik
0a42ce3eeb Fix not updating visitor count rule properly 2017-11-23 14:10:16 +00:00
nathanbegbie
9c9a9d3acd add missing function call 2017-11-09 16:37:52 +02: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
b8bf27fb99 add enabled to the excluded segments checked 2017-10-27 07:29:41 +01:00
Todd Dembrey
d07e06b4f0 lock down the static segment to prevent changes 2017-10-26 14:34:16 +01:00