Commit cdcf40c
authored
fix: Don't pass version_num to create_next_container_version (#551)
The original version of this code depended upon `version_num` being popped out
of `valid_published` before `valid_published` got expanded. A recent change
changed the argument order, leading to:
TypeError: create_next_container_version() got an unexpected keyword argument
'version_num'
whenever restoring an archive with any published containers. This commit
restores the original code's order of operations, but a bit more explicitly.
Bumps from 0.39.2 to 0.40.0 (it would be 0.39.3, but the previous
commit had breaking changes and neglected to bump the minor version)1 parent 2d5a17b commit cdcf40c
4 files changed
Lines changed: 12 additions & 7 deletions
File tree
- src
- openedx_content/applets/backup_restore
- openedx_core
- tests/openedx_content/applets/backup_restore
- fixtures/library_backup/entities
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
829 | 829 | | |
830 | 830 | | |
831 | 831 | | |
832 | | - | |
833 | | - | |
834 | | - | |
| 832 | + | |
| 833 | + | |
835 | 834 | | |
836 | 835 | | |
| 836 | + | |
837 | 837 | | |
838 | | - | |
839 | 838 | | |
840 | 839 | | |
841 | 840 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
75 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
76 | 82 | | |
77 | 83 | | |
78 | 84 | | |
| |||
0 commit comments