diff --git a/CHANGELOG.md b/CHANGELOG.md index ecb5a782..3a9e1b9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,20 @@ Please do not update the unreleased notes. +## [v10.5.1](https://github.com/eduNEXT/eox-core/compare/v10.5.0...v10.5.1) - (2024-07-19) + +### Fixed + +- **Redwood Compatibility**: Corrected a build-time error, ensuring full + compatibility with the Redwood release. For this, a new `ImproperlyConfigured` + exception is handled when loading the API permissions. + +### Changed + +- **Improve Documentation**: Update the README to include a more detailed + description of the project and its features. A new how-to section was + included with information about API, Middlewares, and pipelines. + ## [v10.5.0](https://github.com/eduNEXT/eox-core/compare/v10.4.0...v10.5.0) - (2024-07-08) ### Added @@ -21,7 +35,7 @@ Please do not update the unreleased notes. ### Changed -- **Redwood Support**: Upgrade requirements base on edx-platform redwood +- **Redwood Support**: Upgrade requirements base on edx-platform Redwood release, update GitHub workflows with new actions version, and update integration test to use new Redwood release with Tutor. diff --git a/README.rst b/README.rst index 46bb41a2..dc525480 100644 --- a/README.rst +++ b/README.rst @@ -71,7 +71,7 @@ Compatibility Notes +------------------+--------------+ | Quince | >= 10.0 | +------------------+--------------+ -| Redwood | >= 10.5.0 | +| Redwood | >= 10.5.1 | +------------------+--------------+ ⚠️ The Maple version does not support Django 2.2 but it does support Django 3.2 as of eox-core 7.0. diff --git a/eox_core/__init__.py b/eox_core/__init__.py index 058fcd83..f935bd61 100644 --- a/eox_core/__init__.py +++ b/eox_core/__init__.py @@ -1,4 +1,4 @@ """ Init for main eox-core app """ -__version__ = '10.5.0' +__version__ = '10.5.1' diff --git a/eox_core/api/v1/permissions.py b/eox_core/api/v1/permissions.py index 09cb1f25..4ed89274 100644 --- a/eox_core/api/v1/permissions.py +++ b/eox_core/api/v1/permissions.py @@ -6,6 +6,7 @@ from django.conf import settings from django.contrib.auth.models import Permission, User from django.contrib.contenttypes.models import ContentType +from django.core.exceptions import ImproperlyConfigured from django.db.utils import ProgrammingError from rest_framework import exceptions, permissions @@ -18,14 +19,16 @@ def load_permissions(): if settings.EOX_CORE_LOAD_PERMISSIONS: try: content_type = ContentType.objects.get_for_model(User) - obj, created = Permission.objects.get_or_create( # pylint: disable=unused-variable + Permission.objects.get_or_create( codename='can_call_eox_core', name='Can access eox-core API', content_type=content_type, ) - except ProgrammingError: - # This code runs when the app is loaded, if a migration has not been done a ProgrammingError exception is raised - # we are bypassing those cases to let migrations run smoothly. + except (ProgrammingError, ImproperlyConfigured): + # This code runs when the app is loaded. If a migration has not been done, a + # ProgrammingError is raised. The ImproperlyConfigured exception typically + # indicates a configuration issue. We are bypassing these exceptions to allow + # the migrations to run smoothly when building the Open edX image. pass diff --git a/setup.cfg b/setup.cfg index 0506398e..502e5dbb 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 10.5.0 +current_version = 10.5.1 commit = False tag = False