94 Commits

Author SHA1 Message Date
Régis Behmo
22e67e757c v17.1.0 2024-02-09 09:53:17 +01:00
FahadKhalid210
575d38a931 fix security context
Close #6
2024-02-09 10:32:12 +05:00
Fahad Khalid
6c7972c7e0
feat: Convert user_id field from Int64 to UInt64
Close #12
2024-01-23 09:49:04 +01:00
FahadKhalid210
ce88178a2b feat: upgrade to quince 2023-12-11 18:22:16 +01:00
Régis Behmo
86c3798129 local.overhang.io -> local.edly.io
This is related to https://github.com/overhangio/tutor/issues/945
2023-12-09 15:54:28 +01:00
Régis Behmo
a156959518 chore: format 2023-12-06 16:13:57 +01:00
Régis Behmo
db88bdec10 fix: DOCKER_IMAGE typo that was breaking env 2023-11-27 08:39:51 +01:00
Emad Rad
3e68e6f8cb chore: cleanup with black and isort 2023-11-27 10:27:47 +05:00
Emad Rad
267c353367 fix: all configs moved to 1 place 2023-11-27 10:27:47 +05:00
FahadKhalid210
808f87f986 This reverts commit 22fa480998929b67ae8e13ec286e447abffbb800. 2023-11-22 10:20:08 +05:00
Régis Behmo
22fa480998 v14.0.0: minimal upgrade
We'll have to migrate to plugin API v1 and to the newest releases of
superset/clickhouse/vector.
2023-11-21 18:02:32 +05:00
Régis Behmo
6394227a16 feat: simplify nightly version management
By pulling the version suffix from tutor, we avoid git conflicts when
merging the release branch in nightly.
2023-11-20 17:39:47 +01:00
FahadKhalid210
710761251a sync auth roles updated 2023-11-15 15:03:31 +05:00
Régis Behmo
43453166bc fix: convert graded field to boolean 2023-10-10 15:44:56 +05:00
Régis Behmo
c495970020 fix: nightly package version
The package version may not include the "-nightly" suffix. Otherwise,
`pip install .` fails with:

    setuptools.extern.packaging.version.InvalidVersion: Invalid version: '...-nightly'
2023-09-07 18:39:53 +02:00
Régis Behmo
54af15a686 v16.0.3 2023-09-07 18:14:28 +02:00
Ravi Khetani
8e6b645b70 fix: mismatching redirect uri, when running behind web proxy 2023-09-07 18:11:12 +02:00
Régis Behmo
4a7f188102 v16.0.2 2023-09-04 15:34:52 +02:00
Muhammad Faraz Maqsood
02b29e64d7
feat: add graded field to course_blocks table
---------

Co-authored-by: Muhammad Faraz  Maqsood <faraz.maqsood@a006-01130.home>
2023-08-28 09:06:50 +02:00
Régis Behmo
80e8538037 fix: assign proper database name to superset user
When running `do cairn-createuser`, the created db did not have the
right name. If the user had been created earlier with SSO, then the
Clickhouse DB did not exist.
2023-08-19 08:17:52 +02:00
Régis Behmo
a22f4c3d14 fix: cannot list resource pods
Looks like the vector container now requires new permissions. This was
detected here: https://github.com/openedx/tutor-contrib-aspects/issues/180#issuecomment-1639147060
2023-07-31 09:12:17 +02:00
Régis Behmo
961d2c92c1 v16.0.1 2023-07-17 10:18:16 +02:00
Jayram Nai
e4ca341e53 fix: user creation issue with Palm 2023-07-17 10:16:52 +02:00
Régis Behmo
5bf17dda91 feat: upgrade to Palm
This upgrade includes SSO login. Finally! We can now login to Superset
via the LMS. Thanks to OARS for providing the base security manager
implementation!
2023-06-15 00:13:57 +02:00
Régis Behmo
6f3637e34f fix: support empty spaces in superset passwords
Close #2.
2023-06-02 09:54:54 +02:00
Régis Behmo
fda8baab19 chore: handle nightly version numbers
Here, we make it possible to add a "-nightly" suffix to the package
version. This suffix will find its way to the Docker image tags. Thus,
the nightly branch will have different image tags. This will resolve
some confusion, as image tags are currently identical in nightly and
master.
2023-05-26 16:28:10 +02:00
Régis Behmo
6906bfaddc v15.0.6 2023-05-09 09:16:32 +02:00
Régis Behmo
a7fe5914c6 feat: enable dashboard embedding by default
Embedding is allowed per domain for admin users.
2023-05-09 09:16:01 +02:00
Régis Behmo
774f6e2a3e v15.0.5 2023-04-13 11:19:44 +02:00
Régis Behmo
490565333e fix: run open edx behind a web proxy
Without the ENABLE_PROXY_FIX setting, running Open edX behind a web
proxy leads superset to redirect to http, and to the lms login page.
2023-04-13 11:19:44 +02:00
Régis Behmo
08fc27cf8f v15.0.4 2023-03-17 09:16:55 +01:00
Régis Behmo
b5940bab8c fix: clickhouse image building in the UK
CI was failing during `apt update` with the following error:

	E: The repository 'https://repo.clickhouse.com/deb/stable main/ Release' does not have a Release file.

Note that this error was occurring in the UK and Germany, but not in
France.
2023-03-17 09:16:55 +01:00
Régis Behmo
237432a930 fix: clickhouse client permission error
Clickhouse client command was triggering a permission denied error:

$ tutor local run cairn-clickhouse cairn-client
Code: 586. DB::ErrnoException: Cannot create file:
//.clickhouse-client-history, errno: 13, strerror: Permission denied.
(CANNOT_CREATE_FILE)

Traceback (most recent call last):
  File "/scripts/cairn", line 161, in <module>
    main()
  File "/scripts/cairn", line 62, in main
    args.func(args)
  File "/scripts/cairn", line 68, in command_client
    subprocess.check_call(get_client_command())
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['clickhouse', 'client',
'--host', 'cairn-clickhouse', '--port', '9000', '--user', 'openedx',
'--password', 'xrIDmynTAiDuJeVZc5ar', '--multiline', '--multiquery',
'--database', 'openedx']' returned non-zero exit status 74.

This was because the home of the cairn client was set to "/".
2023-03-16 16:29:57 +01:00
Régis Behmo
c3f74e7f3e v15.0.3 2023-01-12 12:40:32 +01:00
Régis Behmo
59b2868bdd fix: celery non-beat worker
Fix is the same as for the beat worker.
2023-01-12 12:40:04 +01:00
Régis Behmo
5d8a4e0943 v15.0.2 2023-01-12 09:49:22 +01:00
Régis Behmo
6e168d7f22 fix: celery 5 deprecation of beat --app=...
In celery 5 the `--app` option must be used as a global option: `celery
--app=... beat ...`. This was causing the worker to fail.
2023-01-12 09:47:54 +01:00
Régis Behmo
4c6f78d466 v15.0.1 2023-01-05 11:42:34 +01:00
Régis Behmo
56797b0a06 fix: browser tab crash on large course completion chart
"Course completion" was causing browser crashes when it attempted to display
10k course items (which is the maximum allowed). Displaying 10000 bars does not
make sense anyway, so we threshold this number to 100.
2023-01-05 11:40:48 +01:00
Régis Behmo
a4de1d8783 fix: image push for CI 2022-12-12 19:27:00 +01:00
Régis Behmo
41b0e5bcc8 feat: upgrade to olive 2022-11-24 19:03:19 +01:00
Régis Behmo
a4e15fae5a v14.0.4 2022-10-17 15:50:48 +02:00
Régis Behmo
281e4ce7e6 fix: correctly configure redis instance
Superset was ignoring the cairn-redis container, so we decided to remove it.
But the superset celery worker was writing to the /0 database, which conflicts
with the default celery database from the lms/cms. We fix this issue by running
in a different database.
The CELERY_RESULT_BACKEND seemed to be completely useless, so we got rid of it.
2022-10-17 15:47:21 +02:00
Régis Behmo
f37e5f8eaf v14.0.3 2022-10-07 15:25:15 +02:00
Régis Behmo
30dd7714ce fix: upgrade vector and decrease log level to avoid spam
Vector is spamming us with messages concerning absent containers. Such messages include:

tutor_local-cairn-vector-1                  | 2022-10-07T13:09:27.053010Z  INFO source{component_kind="source" component_id=docker_logs component_type=docker_logs component_name=docker_logs}: vector::internal_events::docker_logs: Started watching for container logs. container_id=680c2bf183676caadee2c165b26493f90fb5d02cb15b9f2579a106fdd436f827

Or:

{“log”:“2022-10-07T07:19:17.839042Z INFO vector::internal_events::docker_logs: Started watching for container logs. container_id=a932d5916f9a1d1848224b71070591d16c813e83796d6850fa64b0a5f956d5ed\n”,“stream”:“stderr”,“time”:“2022-10-07T07:19:17.83961548Z”}
{“log”:“2022-10-07T07:19:17.839311Z INFO vector::internal_events::docker_logs: Stopped watching for container logs. container_id=cb9a4330dc154e02f02f6f6b49d9ddb04b5357083becdf6e9c5cbf49f4d01f68\n”,“stream”:“stderr”,“time”:“2022-10-07T07:19:17.83967086Z”}

See also: https://github.com/vectordotdev/vector/issues/8881

This issue has affected multiple users in the past. To address it, we first
tried to upgrade Vector, which did not help. Thus, we decided to reduce the
verbosity of Vector.
2022-10-07 15:24:59 +02:00
Régis Behmo
a802eed7d3 v14.0.2 2022-09-20 09:20:23 +02:00
Régis Behmo
f398600152 fix: superset user creation with existing email address
When creating a new user, but with an email address already associated
to a different user, the `cairn createuser` script crashes with an
obscure error. This slightly improves the error messsage.

See: https://discuss.openedx.org/t/cairn-password-reset/8226
2022-09-20 09:17:34 +02:00
Régis Behmo
3fa702356d feat: make it possible to parse 'timestamp' fields instead of 'time'
This is necessary for some customers who are not using the
common.djangoapps.track.shim.LegacyFieldMappingProcessor in
settings.EVENT_TRACKING_BACKENDS.
2022-07-04 10:07:15 +02:00
Régis Behmo
ecae5c1bcc v14.0.1 2022-06-27 10:53:59 +02:00
Régis Behmo
6d1947ef0b fix: broken init because of mysql's API change 2022-06-27 10:53:11 +02:00