Skip to content

Commit 232b04d

Browse files
committed
chore: no_pii annotations on draft models
1 parent a43e13b commit 232b04d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • openedx_learning/apps/authoring/publishing/models

openedx_learning/apps/authoring/publishing/models/draft_log.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ class Draft(models.Model):
3838
separation of lifecycle events: i.e. this table *only* changes when drafts
3939
are updated, not when publishing happens. The Published model only changes
4040
when something is published.
41+
42+
.. no_pii
4143
"""
4244
# If we're removing a PublishableEntity entirely, also remove the Draft
4345
# entry for it. This isn't a normal operation, but can happen if you're
@@ -69,6 +71,8 @@ class DraftChangeLog(models.Model):
6971
PublishableEntity, we will get multiple DraftChangeLogRecords if changing
7072
that entity causes side-effects. See the docstrings for DraftChangeLogRecord
7173
and DraftSideEffect for more details.
74+
75+
.. no_pii:
7276
"""
7377
uuid = immutable_uuid_field()
7478
learning_package = models.ForeignKey(LearningPackage, on_delete=models.CASCADE)
@@ -178,6 +182,8 @@ class DraftChangeLogRecord(models.Model):
178182
represent that in a useful way because that Unit *is* a part of the change
179183
set represented by a DraftChangeLog, even if its own versioned data hasn't
180184
changed.
185+
186+
.. no_pii:
181187
"""
182188
draft_change_log = models.ForeignKey(
183189
DraftChangeLog,
@@ -282,6 +288,8 @@ class DraftSideEffect(models.Model):
282288
current draft of U1 (U1.v2). A DraftChangeLog is considered a single
283289
atomic operation, so there was never a point at which C1.v1 -> C1.v2
284290
affected the draft state of U1.
291+
292+
.. no_pii:
285293
"""
286294
cause = models.ForeignKey(
287295
DraftChangeLogRecord,

0 commit comments

Comments
 (0)