126 Commits

Author SHA1 Message Date
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
Régis Behmo
ffaea14212 v14.0.0: minimal upgrade
We'll have to migrate to plugin API v1 and to the newest releases of
superset/clickhouse/vector.
2022-06-13 21:05:07 +02:00
Régis Behmo
337a17f471 v13.0.7 2022-05-09 16:34:12 +02:00
Régis Behmo
059546ab8a feat: add "cairn-superset-settings" patch 2022-05-09 16:33:45 +02:00
Régis Behmo
f076d52f0d v13.0.6 2022-03-21 09:58:23 +01:00
Régis Behmo
bab403c361 feat: Superset language
A nice language flag will be added to the superset sidebar when the
LMS/CMS have a different language.
2022-03-21 09:57:55 +01:00
Régis Behmo
ee3dbb912f harmonize setting names 2022-03-17 10:05:42 +01:00
Régis Behmo
665c091dc9 v13.0.5 2022-03-10 17:54:00 +01:00
Régis Behmo
4161ff4f58 fix: permissions error when mounting custom migrations
See: https://discuss.overhang.io/t/custom-reg-form-extrainfo-does-not-exits-in-cairn/2508/8
2022-03-10 17:51:58 +01:00
Régis Behmo
82febd4ebb v13.0.4 2022-03-09 09:56:18 +01:00
Régis Behmo
2e28c5d551 fix: "unhealthy" superset containers
Superset container were reported as "unhealthy" because the healthcheck
was not testing the right port.
2022-03-09 09:55:41 +01:00
Régis Behmo
2adb2f57ed v13.0.3 2022-02-21 12:12:29 +01:00
Régis Behmo
b1f9cabed3 fix: chown: cannot read directory clickhouse error
The error was caused by the fact that the clickhouse container attempts to chown
the data directory.

See: https://discuss.overhang.io/t/cairn-clickhouse-failed/2414
2022-02-21 12:02:28 +01:00
Régis Behmo
88b8ac66c5 v13.0.2 2022-01-27 10:59:01 +01:00
Régis Behmo
8a4fd731f1 fix: k8s deployment securityContext syntax error 2022-01-27 10:59:01 +01:00
Régis Behmo
2e7f3d588d v13.0.1 2021-12-24 12:35:05 +01:00
Régis Behmo
5e53a77d3f fix: permissions of clickhouse job 2021-12-24 12:34:41 +01:00
Régis Behmo
54049ee28a feat: upgrade to maple 2021-12-20 22:44:40 +01:00
Régis Behmo
546a0cf8f7 feat: upgrade to maple 2021-12-13 08:39:39 +01:00