From 99dd4f72332f2ad1dc494245b88ceb4161eccba0 Mon Sep 17 00:00:00 2001 From: Ty Hob / Brian Mesick <112640379+bmtcril@users.noreply.github.com> Date: Fri, 17 Jul 2026 09:00:53 -0400 Subject: [PATCH] Merge pull request #38863 from ktyagiapphelix2u/ktyagi/BOMS-607 fix: align retirement PII annotations with current runtime behavior --- lms/djangoapps/survey/models.py | 2 +- lms/djangoapps/verify_student/models.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lms/djangoapps/survey/models.py b/lms/djangoapps/survey/models.py index fdc02e10652f..fa952b3b5ba7 100644 --- a/lms/djangoapps/survey/models.py +++ b/lms/djangoapps/survey/models.py @@ -171,7 +171,7 @@ class SurveyAnswer(TimeStampedModel): .. pii: These are free-form questions asked by course authors. Types below are current as of Feb 2019, new ones could be added. "other" PII currently includes "company", "job title", and "work experience". .. pii_types: name, location, other - .. pii_retirement: retained + .. pii_retirement: local_api """ user = models.ForeignKey(User, db_index=True, on_delete=models.CASCADE) form = models.ForeignKey(SurveyForm, db_index=True, on_delete=models.CASCADE) diff --git a/lms/djangoapps/verify_student/models.py b/lms/djangoapps/verify_student/models.py index cee18ca8d35d..65b71dd24d97 100644 --- a/lms/djangoapps/verify_student/models.py +++ b/lms/djangoapps/verify_student/models.py @@ -100,9 +100,9 @@ class IDVerificationAttempt(StatusModel): their identity through one of several methods that inherit from this Model, including PhotoVerification and SSOVerification. - .. pii: The User's name is stored in this and sub-models + .. pii: The User's name is stored in this and sub-models. .. pii_types: name - .. pii_retirement: retained + .. pii_retirement: local_api """ STATUS = Choices('created', 'ready', 'submitted', 'must_retry', 'approved', 'denied') user = models.ForeignKey(User, db_index=True, on_delete=models.CASCADE) @@ -303,7 +303,7 @@ class PhotoVerification(IDVerificationAttempt): .. pii: The User's name is stored in the parent model, this one stores links to face and photo ID images .. pii_types: name, image - .. pii_retirement: retained + .. pii_retirement: local_api """ ######################## Fields Set During Creation ######################## # See class docstring for description of status states @@ -631,7 +631,7 @@ class SoftwareSecurePhotoVerification(PhotoVerification): .. pii: The User's name is stored in the parent model, this one stores links to face and photo ID images .. pii_types: name, image - .. pii_retirement: retained + .. pii_retirement: local_api """ # This is a base64.urlsafe_encode(rsa_encrypt(photo_id_aes_key), ss_pub_key) # So first we generate a random AES-256 key to encrypt our photo ID with.