Get rid of calls to `set_request_cache_with_short_name`
This method from the toggle legacy classes should not actually be exposed to all. So we get rid of it by manually setting the cached value. While we are at it, we convert the STORAGE_BACKING_FOR_CACHE legacy waffle switch to its modern version. As the flag is not being used elsewhere, this should not break anything. We take the opportunity to modernize waffle switches from block_structure.config: to do so we convert the INVALIDATE_CACHE_ON_PUBLISH and RAISE_ERROR_WHEN_NOT_FOUND waffle switches from legacy classes to their modern equivalents. These switches are not used outside of edx-platform, so this change should not trigger any error.
Showing
- lms/djangoapps/course_api/blocks/tests/test_api.py 3 additions, 3 deletionslms/djangoapps/course_api/blocks/tests/test_api.py
- openedx/core/djangoapps/content/block_structure/config/__init__.py 16 additions, 21 deletions...ore/djangoapps/content/block_structure/config/__init__.py
- openedx/core/djangoapps/content/block_structure/management/commands/generate_course_blocks.py 2 additions, 3 deletions...k_structure/management/commands/generate_course_blocks.py
- openedx/core/djangoapps/content/block_structure/manager.py 2 additions, 3 deletionsopenedx/core/djangoapps/content/block_structure/manager.py
- openedx/core/djangoapps/content/block_structure/signals.py 1 addition, 1 deletionopenedx/core/djangoapps/content/block_structure/signals.py
- openedx/core/djangoapps/content/block_structure/store.py 12 additions, 19 deletionsopenedx/core/djangoapps/content/block_structure/store.py
- openedx/core/djangoapps/content/block_structure/tasks.py 3 additions, 3 deletionsopenedx/core/djangoapps/content/block_structure/tasks.py
- openedx/core/djangoapps/content/block_structure/tests/test_manager.py 3 additions, 3 deletions.../djangoapps/content/block_structure/tests/test_manager.py
- openedx/core/djangoapps/content/block_structure/tests/test_signals.py 2 additions, 2 deletions.../djangoapps/content/block_structure/tests/test_signals.py
- openedx/core/djangoapps/content/block_structure/tests/test_store.py 5 additions, 5 deletions...re/djangoapps/content/block_structure/tests/test_store.py
- openedx/core/djangoapps/coursegraph/management/commands/tests/test_dump_to_neo4j.py 1 addition, 3 deletions...ursegraph/management/commands/tests/test_dump_to_neo4j.py
Loading
Please register or sign in to comment