diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b7ec0a..5c69151 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,18 @@ instructions, because git commits are used to generate release notes: + +## v19.0.0 (2024-10-31) +- [Feature] Add a new bucket to handle private media for openedx-learning. (by @Faraz32123) + +- 💥 [Deprecation] Drop support for python 3.8 and set Python 3.9 as the minimum supported python version. (by @Faraz32123) + +- 💥[Improvement] Rename Tutor's two branches (by @DawoudSheraz): + * Rename **master** to **release**, as this branch runs the latest official Open edX release tag. + * Rename **nightly** to **main**, as this branch runs the Open edX master branches, which are the basis for the next Open edX release. + +- 💥[Feature] Upgrade to Sumac. (by @Faraz32123) + ## v18.0.1 (2024-10-31) diff --git a/README.rst b/README.rst index bae7cc3..a592724 100644 --- a/README.rst +++ b/README.rst @@ -40,7 +40,7 @@ Note to Azure users: you will have to manually grant public access rights to the DNS records ----------- -It is assumed that the ``MINIO_HOST`` DNS record points to your server. When running MinIO on your laptop, the MinIO Web UI will be available at http://minio.local.edly.io. In development mode, the MinIO interface will be available at http://minio.local.edly.io:9001. +It is assumed that the ``MINIO_HOST`` DNS record points to your server. When running MinIO on your laptop, the MinIO Web UI will be available at http://minio.local.openedx.io. In development mode, the MinIO interface will be available at http://minio.local.openedx.io:9001. Web UI ------ diff --git a/changelog.d/20241111_172400_faraz.maqsood_remove_py38_references.md b/changelog.d/20241111_172400_faraz.maqsood_remove_py38_references.md deleted file mode 100644 index 8b70c7b..0000000 --- a/changelog.d/20241111_172400_faraz.maqsood_remove_py38_references.md +++ /dev/null @@ -1 +0,0 @@ -- 💥 [Deprecation] Drop support for python 3.8 and set Python 3.9 as the minimum supported python version. (by @Faraz32123) diff --git a/changelog.d/20241119_170533_dawoud.sheraz_branch_rename.md b/changelog.d/20241119_170533_dawoud.sheraz_branch_rename.md deleted file mode 100644 index 0385bc2..0000000 --- a/changelog.d/20241119_170533_dawoud.sheraz_branch_rename.md +++ /dev/null @@ -1,3 +0,0 @@ -- 💥[Improvement] Rename Tutor's two branches (by @DawoudSheraz): - * Rename **master** to **release**, as this branch runs the latest official Open edX release tag. - * Rename **nightly** to **main**, as this branch runs the Open edX master branches, which are the basis for the next Open edX release. diff --git a/setup.py b/setup.py index 966b195..5381166 100644 --- a/setup.py +++ b/setup.py @@ -34,8 +34,8 @@ packages=find_packages(exclude=["tests*"]), include_package_data=True, python_requires=">=3.9", - install_requires=["tutor>=18.0.0,<19.0.0"], - extras_require={"dev": "tutor[dev]>=18.0.0,<19.0.0"}, + install_requires=["tutor>=19.0.0,<20.0.0"], + extras_require={"dev": "tutor[dev]>=19.0.0,<20.0.0"}, entry_points={"tutor.plugin.v1": ["minio = tutorminio.plugin"]}, classifiers=[ "Development Status :: 5 - Production/Stable", diff --git a/tutorminio/__about__.py b/tutorminio/__about__.py index 28cc149..0122a6f 100644 --- a/tutorminio/__about__.py +++ b/tutorminio/__about__.py @@ -1 +1 @@ -__version__ = "18.0.1" +__version__ = "19.0.0" diff --git a/tutorminio/patches/openedx-common-settings b/tutorminio/patches/openedx-common-settings index be605a5..7bc9c86 100644 --- a/tutorminio/patches/openedx-common-settings +++ b/tutorminio/patches/openedx-common-settings @@ -3,6 +3,10 @@ VIDEO_IMAGE_SETTINGS["STORAGE_KWARGS"]["location"] = VIDEO_IMAGE_SETTINGS["STORA VIDEO_TRANSCRIPTS_SETTINGS["STORAGE_KWARGS"]["location"] = VIDEO_TRANSCRIPTS_SETTINGS["STORAGE_KWARGS"]["location"].lstrip("/") GRADES_DOWNLOAD["STORAGE_KWARGS"] = {"location": GRADES_DOWNLOAD["STORAGE_KWARGS"]["location"].lstrip("/")} GRADES_DOWNLOAD["STORAGE_KWARGS"]["bucket_name"] = "{{ MINIO_GRADES_BUCKET_NAME }}" +OPENEDX_LEARNING["MEDIA"]["BACKEND"] = DEFAULT_FILE_STORAGE +OPENEDX_LEARNING["MEDIA"]["OPTIONS"] = { + 'bucket_name': "{{ MINIO_OPENEDX_LEARNING_BUCKET_NAME }}", +} # Ora2 setting ORA2_FILEUPLOAD_BACKEND = "s3" diff --git a/tutorminio/plugin.py b/tutorminio/plugin.py index 9ac07d3..65c4cc0 100644 --- a/tutorminio/plugin.py +++ b/tutorminio/plugin.py @@ -24,6 +24,7 @@ "VIDEO_UPLOAD_BUCKET_NAME": "openedxvideos", "HOST": "files.{{ LMS_HOST }}", "CONSOLE_HOST": "minio.{{ LMS_HOST }}", + "OPENEDX_LEARNING_BUCKET_NAME": "openedxlearning", "GRADES_BUCKET_NAME": "openedxgrades", "QUERYSTRING_AUTH": True, # https://hub.docker.com/r/minio/minio/tags diff --git a/tutorminio/templates/minio/tasks/minio/init.sh b/tutorminio/templates/minio/tasks/minio/init.sh index 2ccff20..a3946a6 100644 --- a/tutorminio/templates/minio/tasks/minio/init.sh +++ b/tutorminio/templates/minio/tasks/minio/init.sh @@ -1,5 +1,5 @@ mc config host add minio http://minio:9000 {{ OPENEDX_AWS_ACCESS_KEY }} {{ OPENEDX_AWS_SECRET_ACCESS_KEY }} --api s3v4 -mc mb --ignore-existing minio/{{ MINIO_BUCKET_NAME }} minio/{{ MINIO_FILE_UPLOAD_BUCKET_NAME }} minio/{{ MINIO_VIDEO_UPLOAD_BUCKET_NAME }} minio/{{ MINIO_GRADES_BUCKET_NAME }} +mc mb --ignore-existing minio/{{ MINIO_BUCKET_NAME }} minio/{{ MINIO_FILE_UPLOAD_BUCKET_NAME }} minio/{{ MINIO_VIDEO_UPLOAD_BUCKET_NAME }} minio/{{ MINIO_GRADES_BUCKET_NAME }} minio/{{ MINIO_OPENEDX_LEARNING_BUCKET_NAME }} {% if MINIO_GATEWAY != "azure" %} # Make common file upload bucket public (e.g: for forum image upload)