From 937c5141372024859ed57fb51dc1c9494dd18195 Mon Sep 17 00:00:00 2001 From: Ivan Savov Date: Mon, 5 Dec 2016 14:48:45 -0500 Subject: [PATCH] indentation fix --- docs/design.md | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/docs/design.md b/docs/design.md index 01c8d957..68ce965e 100644 --- a/docs/design.md +++ b/docs/design.md @@ -17,28 +17,29 @@ Data model - Experiments: - Experiments and experiment alternatives are automatically created when first occurrence in a template or view code appears. They are stored in table `experiments_experiment` - - +-----------+-------------+---------------+---------------------+--------------------+-------+------------+----------+ - | name (PK) | description | alternatives" | relevant_chi2_goals | relevant_mwu_goals | state | start_date | end_date | - + ``` + +-----------+-------------+---------------+---------------------+--------------------+-------+------------+----------+ + | name (PK) | description | alternatives" | relevant_chi2_goals | relevant_mwu_goals | state | start_date | end_date | + ``` + - Enrolments - Bots are ignored - Session-based users are enroled based on session id **STORED WHERE?** - Logged in users are enroled based on their user id using table `experiments_enrollment` - - +-----+-----------------+-----------+-------------+---------------+---------+ - | id | enrollment_date | last_seen | alternative | experiment_id | user_id | + ``` + +-----+-----------------+-----------+-------------+---------------+---------+ + | id | enrollment_date | last_seen | alternative | experiment_id | user_id | + ``` - Goals: - Definitions, goals must be created in advance and described in `settings.EXPERIMENTS_GOALS`. - Counters are stored in Redis using the following key names: - - COUNTER_CACHE_KEY = 'experiments:participants:' - PARTICIPANT_KEY = '%s:%s:participant' % (experiment.name, alternative_name) - COUNTER_FREQ_CACHE_KEY = 'experiments:freq:%s' - GOAL_KEY = '%s:%s:%s:goal' % (experiment.name, alternative_name, goal_name) - - + ``` + COUNTER_CACHE_KEY = 'experiments:participants:' + PARTICIPANT_KEY = '%s:%s:participant' % (experiment.name, alternative_name) + COUNTER_FREQ_CACHE_KEY = 'experiments:freq:%s' + GOAL_KEY = '%s:%s:%s:goal' % (experiment.name, alternative_name, goal_name) + ``` Request-response cycle ----------------------