feat: BLOCK_STRUCTURES_SETTINGS['PRUNING_ACTIVE'] toggle removed depr31

This commit is contained in:
Yagnesh
2023-06-17 02:31:07 +05:30
parent 0b455e0336
commit 14f90eba96
8 changed files with 0 additions and 29 deletions

View File

@@ -255,9 +255,6 @@ class BlockStructureModel(TimeStampedModel):
"""
Deletes previous file versions for data_usage_key.
"""
if not settings.BLOCK_STRUCTURES_SETTINGS.get('PRUNING_ACTIVE', False):
return
if num_to_keep is None:
num_to_keep = config.num_versions_to_keep()

View File

@@ -80,7 +80,6 @@ class BlockStructureModelTestCase(TestCase):
return bsm
@patch('openedx.core.djangoapps.content.block_structure.models.log')
@patch.dict(settings.BLOCK_STRUCTURES_SETTINGS, {'PRUNING_ACTIVE': False})
def test_update_or_create(self, mock_log):
serialized_data = 'initial data'