feat: upgrade to Sumac

This commit is contained in:
Régis Behmo 2024-12-16 20:34:40 +01:00 committed by GitHub
commit 85f981145f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 26 additions and 14 deletions

View File

@ -19,6 +19,25 @@ instructions, because git commits are used to generate release notes:
<!-- scriv-insert-here -->
<a id='changelog-19.0.0'></a>
## v19.0.0 (2024-10-22)
- [Improvement] Added CORS for embeded Dashboards. (by @Fahadkhalid210)
- [Bugfix] Fix legacy warnings during Docker build. (by @regisb)
- [Improvement] Auto import course structure to clickhouse on course publish by parsing CMS logs. (by @Danyal-Faheem)
- [Feature] Upgrade Clickhouse base image to 24.2.3.70. (by @Danyal-Faheem)
- [Deprecation] Drop support for python 3.8 as it has reached end of life. (by @Danyal-Faheem)
- 💥[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 @Danyal-Faheem)
<a id='changelog-18.0.0'></a>
## v18.0.0 (2024-06-20)

View File

@ -61,7 +61,7 @@ Then, restart your platform and run the initialization scripts::
tutor local launch
Open http(s)://data.<YOUR_LMS_HOST> in your browser. When running locally, this will be http://data.local.edly.io. (http://data.local.edly.io:2247 in development). Users authenticate with their LMS user. By default, they have access to the data generated by the courses in which they have the "staff role". Once a user has successfully logged-in, their account can be modified with the ``cairn-createuser`` command.
Open http(s)://data.<YOUR_LMS_HOST> in your browser. When running locally, this will be http://data.local.openedx.io. (http://data.local.openedx.io:2247 in development). Users authenticate with their LMS user. By default, they have access to the data generated by the courses in which they have the "staff role". Once a user has successfully logged-in, their account can be modified with the ``cairn-createuser`` command.
For instance, to convert an existing user to administrator status, run::
@ -187,7 +187,7 @@ In this example, the following folder should be created in the plugin:: ``tutorc
Development
-----------
In development, the Superset user interface will be available at http://data.local.edly.io:2247.
In development, the Superset user interface will be available at http://data.local.openedx.io:2247.
To reload Vector configuration after changes to vector.toml, run::

View File

@ -1 +0,0 @@
- [Improvement] Added CORS for embeded Dashboards. (by @Fahadkhalid210)

View File

@ -1 +0,0 @@
- [Bugfix] Fix legacy warnings during Docker build. (by @regisb)

View File

@ -1 +0,0 @@
- [Improvement] Auto import course structure to clickhouse on course publish by parsing CMS logs. (by @Danyal-Faheem)

View File

@ -1 +0,0 @@
- [Deprecation] Drop support for python 3.8 as it has reached end of life. (by @Danyal-Faheem)

View File

@ -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.

View File

@ -43,8 +43,8 @@ setup(
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": ["cairn = tutorcairn.plugin"]},
classifiers=[
"Development Status :: 5 - Production/Stable",

View File

@ -1 +1 @@
__version__ = "18.0.0"
__version__ = "19.0.0"

View File

@ -1,5 +1,5 @@
# https://hub.docker.com/r/clickhouse/clickhouse-server/tags
FROM docker.io/clickhouse/clickhouse-server:24.1.8.22
FROM docker.io/clickhouse/clickhouse-server:24.2.3.70
RUN apt update && apt install -y python3
COPY ./scripts /scripts

View File

@ -29,7 +29,7 @@ class OpenEdxSsoSecurityManager(SupersetSecurityManager):
def get_user_info(self):
"""
Make calls to the LMS API to fetch user information
http://local.edly.io:8000/api-docs/#/user/user_v1_me_read
http://local.openedx.io:8000/api-docs/#/user/user_v1_me_read
"""
username = self.get_lms_api("/api/user/v1/me")["username"]
account = self.get_lms_api(f"/api/user/v1/accounts/{username}")