Skip to content

Commit 78ce65d

Browse files
committed
style: Add comments
1 parent 9100e98 commit 78ce65d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

cms/djangoapps/modulestore_migrator/models.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,15 @@ class ModulestoreMigration(models.Model):
131131
"We temporarily save the staged content to allow for troubleshooting of failed migrations."
132132
)
133133
)
134+
# Mostly used in bulk migrations. The `UserTaskStatus` represents the status of the entire bulk migration;
135+
# a `FAILED` status means that the entire bulk-migration has failed.
136+
# Each `ModulestoreMigration` saves the data of the migration of each legacy library.
137+
# The `is_failed` value is to keep track a failed legacy library in the bulk migration,
138+
# but allow continuing with the migration of the rest of the legacy libraries.
134139
is_failed = models.BooleanField(
135140
default=False,
136141
help_text=_(
137-
"is the migration failed?"
142+
"is this migration failed?"
138143
),
139144
)
140145

0 commit comments

Comments
 (0)