Commit 4b1431bf by Mark Hoeber

Edits to analytics changes

wiki and user_id_map tables finalized
parent 7e88ecc1
...@@ -378,21 +378,40 @@ A row in this table represents a student's enrollment for a particular course ru ...@@ -378,21 +378,40 @@ A row in this table represents a student's enrollment for a particular course ru
========================== ==========================
A row in this table maps a student's real user ID to an anonymous ID generated to obfuscate the student's identity. A row in this table maps a student's real user ID to an anonymous ID generated to obfuscate the student's identity.
`id`
.. list-table::
:widths: 15 15 15 15
:header-rows: 1
* - Field
- Type
- Null
- Key
* - hashid
- int(11)
- NO
- PRI
* - id
- int(11)
- NO
-
* - username
- varchar(30)
- NO
-
`hash_id`
---- ----
Primary key. The user ID generated to obfuscate the student's identity.
`user_id` `user_id`
--------- ---------
Student's ID in `auth_user.id` The student's ID in `auth_user.id`.
`anonymous_user_id` `username`
-----------
The user ID generated to obfuscate the student's identity.
`course_id`
----------- -----------
The ID of the course run the student is enrolled in. The student's username in `auth_user.id`.
......
...@@ -9,7 +9,7 @@ EdX currently uses an external application called Django Wiki for Wiki functiona ...@@ -9,7 +9,7 @@ EdX currently uses an external application called Django Wiki for Wiki functiona
**************** ****************
article wiki_article
**************** ****************
.. list-table:: .. list-table::
...@@ -24,10 +24,10 @@ article ...@@ -24,10 +24,10 @@ article
- int(11) - int(11)
- NO - NO
- PRI - PRI
* - current_revision * - current_revision_id
- int(11) - int(11)
- NO - NO
- - UNI
* - created * - created
- datetime - datetime
- NO - NO
...@@ -38,22 +38,26 @@ article ...@@ -38,22 +38,26 @@ article
- -
* - owner_id * - owner_id
- int(11) - int(11)
- NO - YES
- Foreign - MUL
* - group_id
- int(11)
- YES
- MUL
* - group_read * - group_read
- boolean - tinyint(1)
- NO - NO
- -
* - group_write * - group_write
- boolean - tinyint(1)
- NO - NO
- -
* - other_read * - other_read
- boolean - tinyint(1)
- NO - NO
- -
* - other_write * - other_write
- boolean - tinyint(1)
- NO - NO
- -
...@@ -64,7 +68,7 @@ article ...@@ -64,7 +68,7 @@ article
`current_revision_id` `current_revision_id`
---------- ------------------------------
The ID of the revision that is displayed for this article. The ID of the revision that is displayed for this article.
...@@ -75,18 +79,23 @@ article ...@@ -75,18 +79,23 @@ article
`modified` `modified`
------------ ------------
The date the article was last modified. The date the article properties were last modified.
`owner_id` `owner_id`
------------ ------------
The user ID of the article owner. The owner of the article, usually the creator. The owner always has both read and write access.
`group_id`
------------
As in a UNIX file system, permissions can be given to a user according to group membership.
Groups are handled through the Django auth system.
`group_read` `group_read`
------------ ------------
Whether the group has read access to the article. Whether the group has read access to the article.
`group_write` `group_write`
------------ --------------
Whether the group has write access to the article. Whether the group has write access to the article.
`other_read` `other_read`
...@@ -94,16 +103,16 @@ article ...@@ -94,16 +103,16 @@ article
Whether others have read access to the article. Whether others have read access to the article.
`other_write` `other_write`
------------ ----------------------
Whether others have read access to the article. Whether others have read access to the article.
**************** **********************
article_revision wiki_articlerevision
**************** **********************
.. list-table:: .. list-table::
:widths: 15 15 15 15 :widths: 15 15 15 15
...@@ -122,19 +131,23 @@ article_revision ...@@ -122,19 +131,23 @@ article_revision
- NO - NO
- -
* - user_message * - user_message
- varchar(255) - longtext
- YES - NO
- -
* - automatic_log * - automatic_log
- varchar(255) - longtext
- YES - NO
- -
* - ip_address * - ip_address
- ?? - char(15)
- YES - YES
- -
* - user_id_modified * - user_id
- int(11) - int(11)
- YES
- MUL
* - modified
- datetime
- NO - NO
- -
* - created * - created
...@@ -143,20 +156,20 @@ article_revision ...@@ -143,20 +156,20 @@ article_revision
- -
* - previous_revision_id * - previous_revision_id
- int(11) - int(11)
- NO - YES
- Foreign - MUL
* - deleted * - deleted
- boolean - tinyint(1)
- NO - NO
- -
* - locked * - locked
- boolean - tinyint(1)
- NO - NO
- -
* - article_id * - article_id
- int(11) - int(11)
- NO - NO
- Foreign - MUL
* - content * - content
- longtext - longtext
- NO - NO
...@@ -174,20 +187,20 @@ article_revision ...@@ -174,20 +187,20 @@ article_revision
`revision_number` `revision_number`
---------- --------------------
The ID of the revision. The ID of the revision.
`user_message` `user_message`
------------ ----------------------
The message the user added when saving the revision. The message the user added when saving the revision.
`automatic_log` `automatic_log`
------------ ----------------------
???
`user` `user_id`
------------ ------------
The ID of the user who made the revision. The ID of the user who made the revision.
...@@ -202,8 +215,8 @@ article_revision ...@@ -202,8 +215,8 @@ article_revision
The date the article was created. The date the article was created.
`previous_revision` `previous_revision_id`
------------ ----------------------
The ID of the revision previous to this one. The ID of the revision previous to this one.
`deleted` `deleted`
...@@ -216,7 +229,7 @@ article_revision ...@@ -216,7 +229,7 @@ article_revision
Whether or not the revision is locked. Whether or not the revision is locked.
`article_id` `article_id`
---------- --------------------
The ID of the revision that is displayed for this article. The ID of the revision that is displayed for this article.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment