Skip to content

Commit 497edf4

Browse files
committed
fixup! feat!: Package and Entity keys are now opaque refs
fix: key->package_ref in restore data return
1 parent 5f89381 commit 497edf4

File tree

1 file changed

+2
-2
lines changed
  • src/openedx_content/applets/backup_restore

1 file changed

+2
-2
lines changed

src/openedx_content/applets/backup_restore/zipper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ class RestoreLearningPackageData:
417417
Data about the restored learning package.
418418
"""
419419
id: int # The ID of the restored learning package
420-
key: str # The package_ref of the restored learning package (may be different if staged)
420+
package_ref: str # The package_ref of the restored learning package (may be different if staged)
421421
archive_package_ref: str # The original package_ref from the archive
422422
archive_org_code: str | None # The org code parsed from archive_package_ref, or None if unparseable
423423
archive_package_code: str | None # The package code parsed from archive_package_ref, or None if unparseable
@@ -601,7 +601,7 @@ def load(self) -> dict[str, Any]:
601601
log_file_error=None,
602602
lp_restored_data=RestoreLearningPackageData(
603603
id=learning_package.id,
604-
key=learning_package.package_ref,
604+
package_ref=learning_package.package_ref,
605605
archive_package_ref=archive_package_ref,
606606
archive_org_code=org_code,
607607
archive_package_code=package_code,

0 commit comments

Comments
 (0)