Skip to content

Commit

Permalink
Merge pull request #569 from openedx/jill/pii-annotation
Browse files Browse the repository at this point in the history
docs: annotates the PII tables in Aspects as per OEP-30
  • Loading branch information
bmtcril authored Jan 18, 2024
2 parents b043fa1 + b5138dc commit 867e7a0
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
"""
create user_profile sink table
This table is always created, but it will only be populated if ASPECTS_ENABLE_PII.
.. pii: Stores Open edX user profile data.
.. pii_types: user_id, name, username, location, phone_number, email_address, birth_date, biography, gender
.. pii_retirement: local_api, consumer_api
"""
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
"""
create external_id sink table
This table is always created, but it will only be populated if ASPECTS_ENABLE_PII.
.. pii: Stores a mapping between an Open edX user and their external_id values stored in Open edX.
.. pii_types: user_id, username
.. pii_retirement: local_api, consumer_api
"""
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
"""
Partition the event_sink.user_profile table
.. pii: Stores Open edX user profile data.
.. pii_types: user_id, name, username, location, phone_number, email_address, birth_date, biography, gender
.. pii_retirement: local_api, consumer_api
"""
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
"""
create user_pii table sourced from an in-memory dictionary joining the PII tables.
This table is always created, but it will only be populated if ASPECTS_ENABLE_PII.
Once accessed, data from this dictionary is cached in-memory for ASPECTS_PII_CACHE_LIFETIME seconds.
.. pii: Stores Open edX user and profile data in a dictionary for use by Superset charts.
.. pii_types: user_id, name, username, location, phone_number, email_address, birth_date, biography, gender
.. pii_retirement: local_api, consumer_api
"""
from alembic import op

Expand Down

0 comments on commit 867e7a0

Please sign in to comment.