Skip to content

Commit faa938d

Browse files
committed
indentation fix
1 parent 5035ce8 commit faa938d

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

docs/design.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,31 @@ Data model
1818
- Experiments and experiment alternatives are automatically created when first
1919
occurrence in a template or view code appears. They are stored in table `experiments_experiment`
2020

21-
+-----------+-------------+---------------+---------------------+--------------------+-------+------------+----------+
22-
| name (PK) | description | alternatives" | relevant_chi2_goals | relevant_mwu_goals | state | start_date | end_date |
23-
21+
```
22+
+-----------+-------------+---------------+---------------------+--------------------+-------+------------+----------+
23+
| name (PK) | description | alternatives" | relevant_chi2_goals | relevant_mwu_goals | state | start_date | end_date |
24+
```
25+
2426
- Enrolments
2527
- Bots are ignored
2628
- Session-based users are enroled based on session id **STORED WHERE?**
2729
- Logged in users are enroled based on their user id using table `experiments_enrollment`
28-
29-
+-----+-----------------+-----------+-------------+---------------+---------+
30-
| id | enrollment_date | last_seen | alternative | experiment_id | user_id |
30+
31+
```
32+
+-----+-----------------+-----------+-------------+---------------+---------+
33+
| id | enrollment_date | last_seen | alternative | experiment_id | user_id |
34+
```
3135
3236
- Goals:
3337
- Definitions, goals must be created in advance and described in `settings.EXPERIMENTS_GOALS`.
3438
- Counters are stored in Redis using the following key names:
35-
36-
COUNTER_CACHE_KEY = 'experiments:participants:'
37-
PARTICIPANT_KEY = '%s:%s:participant' % (experiment.name, alternative_name)
38-
COUNTER_FREQ_CACHE_KEY = 'experiments:freq:%s'
39-
GOAL_KEY = '%s:%s:%s:goal' % (experiment.name, alternative_name, goal_name)
40-
41-
39+
40+
```
41+
COUNTER_CACHE_KEY = 'experiments:participants:'
42+
PARTICIPANT_KEY = '%s:%s:participant' % (experiment.name, alternative_name)
43+
COUNTER_FREQ_CACHE_KEY = 'experiments:freq:%s'
44+
GOAL_KEY = '%s:%s:%s:goal' % (experiment.name, alternative_name, goal_name)
45+
```
4246
4347
Request-response cycle
4448
----------------------

0 commit comments

Comments
 (0)