6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-11-16 10:05:18 +00:00
Commit Graph

1902 Commits

Author SHA1 Message Date
Régis Behmo
439b7d08f0 feat: upgrade to quince.2 2024-02-09 22:16:15 +01:00
Abdul-Muqadim-Arbisoft
d99b2feeb3 fix: remove pkg_resources for python 3.12 compatibility
pkg_resources is available in python 3.12 only if setuptools is
explicitely installed, which is not always the case. We fix that by
replacing all usage of pkg_resources with importlib_resources and
importlib_metadata.

Close #966
2024-02-09 22:06:30 +01:00
Kyle D. McCormick
4a30c4ab35 feat: enhance importdemocourse ; add importdemolibraries 2024-02-08 10:38:27 -05:00
Régis Behmo
487ca89885 chore: add missing test fixture and changelog entry
We somehow forgot to include these files in a previous commit...
2024-02-08 11:21:30 +01:00
Régis Behmo
60a5f25c9b fix: save env on plugins enable
Environment was not updated correctly on `tutor plugins enable ...`
because of a caching issue. To bypass this issue, we improve the caching
mechanism and introduce a new `lru_cache` decorator.

Close #989.
2024-02-07 10:15:35 +01:00
Régis Behmo
b597af481c chore: remove useless test file
This test fixture has been happily living in the test folder for 4
years...
2024-02-07 10:15:35 +01:00
Kshitij Sobti
2924b92cea fixup!: Apply review feedback 2024-01-30 09:47:32 +01:00
Kshitij Sobti
f7174fbdce fix: Fix tutor when using docker compose versions > 2.24.1 2024-01-30 09:47:32 +01:00
Régis Behmo
07cbd69ce3 v17.0.1 2024-01-25 16:55:26 +01:00
Muhammad Faraz Maqsood
e106787927
doc: update steps to release a new version
close #983

---------

Co-authored-by: Muhammad Faraz  Maqsood <faraz.maqsood@a006-01130.home>
2024-01-23 10:36:48 +01:00
Régis Behmo
a04d57f526 docs: extra hooks functions and utilities 2024-01-23 09:06:23 +01:00
Muhamed Cicak
7fdc8fc1ff
docs: fix google analytics example
Fixed extra indentation for the Google Analytics plugin example. The extra indentation makes the plugin fail when being activated.
2024-01-22 13:25:01 +01:00
ravikhetani
b832f519ca
fix: correctly render .webp and .otf files in env
This partially addresses #985.

---------

Co-authored-by: Ravi Khetani <r.khetani@institute.global>
2024-01-22 13:18:29 +01:00
Régis Behmo
94d5afa637 fix: security issues with jinja2 and pycryptodome
See:
https://github.com/overhangio/tutor/security/dependabot/32
https://github.com/overhangio/tutor/security/dependabot/29
2024-01-22 13:16:08 +01:00
Régis Behmo
bfeb860299 docs: remove useless openedx hooks section
That section was empty anyway.
2024-01-22 12:49:12 +01:00
Régis Behmo
efd8df600d security: fix JWT scopes in XBlock callbacks
See:
https://github.com/openedx/edx-platform/security/advisories/GHSA-qx8m-mqx3-j9fm
https://github.com/openedx/edx-platform/pull/34047
2024-01-22 10:39:15 +01:00
Régis Behmo
9d3d9e60f5 ci: fix reference to personal access token
Turns out, github.token is not a PAT
https://github.com/actions/add-to-project/issues/462#issuecomment-1712561302
2024-01-12 12:28:45 +01:00
Régis Behmo
ab158fb939 ci: fix github token in auto-add to project 2024-01-12 12:13:29 +01:00
Syed Muhammad Dawoud Sheraz Ali
4e3e3e14e5
build: Github action to auto-add new issues and PRs to project 2024-01-12 12:10:53 +01:00
Régis Behmo
9f3f74a998 docs: fix minor issues 2024-01-12 11:50:24 +01:00
Abdul-Muqadim-Arbisoft
fdd230f353
docs: more precise contribution instructions 2024-01-08 10:22:28 +01:00
Régis Behmo
a9f0d021b1 docs: demo.openedx.edly.io -> sandbox.openedx.edly.io 2023-12-21 10:01:07 +01:00
Régis Behmo
68203f47be fix: RsaKey.dq attribute error
Running `tutor config save` with an outdated version of pycryptodome was
failing with the following error:

    Error: Missing configuration value: 'Crypto.PublicKey.RSA.RsaKey object' has no attribute 'dq'

This is because the "dq" attribute was only introduced in pycryptodome
3.17.0: https://www.pycryptodome.org/src/changelog#january-2023

To resolve this issue we bump the minimum requirements.

Close #962
2023-12-19 09:32:19 +01:00
Alejandro Cardenas
afb85aaab6
feat: add CONFIG INTERACTIVE action
New hook Action that allows tutor plugins to interact with the configuration at the time of the interactive questionnaire that happens during `tutor local/dev launch`.
2023-12-15 10:31:35 +01:00
Régis Behmo
c51d02a8af docs: update logos 2023-12-14 15:29:39 +01:00
Danyal Faheem
4d66b6ba7b docs: add web proxy instructions for podman rootless mode 2023-12-14 14:54:27 +01:00
Régis Behmo
0ccf48690a feat: upgrade to quince 2023-12-11 20:41:32 +01:00
Overhang.IO
71e469174f Merge remote-tracking branch 'origin/master' into nightly 2023-12-10 22:19:14 +00:00
Régis Behmo
ada5b36a62 v16.1.8 2023-12-10 22:59:03 +01:00
Régis Behmo
0d997c9479 feat: auto-mount edx-platform python requirements
These changes make to possible to run:

    tutor mounts add /path/to/my-xblock

The xblock directory with then be auto-magically bind-mounted in the
"openedx" image at build time, and the lms*/cms* containers at run time.

This makes it effectively possible to work as a developer on
edx-platform requirements.

We take the opportunity to move some openedx-specific code to a
dedicated module.

Close https://github.com/openedx/wg-developer-experience/issues/177
2023-12-10 22:57:08 +01:00
Régis Behmo
6da97d22f4 feat: local.overhang.io -> local.edly.io
The new domain name points to 127.0.0.1, just like the previous one. We
keep the local.overhang.io domain names for backward compatibility. In
the future, we hope to migrate to "*.openedx.io" but that will not
happen before Redwood.

Close #945
2023-12-09 15:51:31 +01:00
Régis Behmo
6582e3a9e0 fix: fill patch catch on plugin load/unload
Also, update docs on `tutor config save`.

Note that we had to fix an issue where the plugin unload callback was
being called too late.
2023-12-08 12:47:34 +01:00
Emad Rad
61d37b436d fix: save configs by enable/disable plugins.
before this, after enabling/disabling any plugins we should re-generate all files with tutor config save.
2023-12-08 12:47:34 +01:00
Overhang.IO
9a450730db Merge remote-tracking branch 'origin/master' into nightly 2023-12-08 11:02:42 +00:00
Emad Rad
8681ecade3 chore: fixed typos 2023-12-08 11:41:01 +01:00
Emad Rad
0ef86fc2a0 docs: add more clarity to debugging section 2023-12-08 11:41:01 +01:00
Overhang.IO
0c4b82f80c Merge remote-tracking branch 'origin/master' into nightly 2023-12-05 11:30:38 +00:00
Régis Behmo
d3aa7d9a52 docs: docs.tutor.overhang.io -> docs.tutor.edly.io
See: https://github.com/overhangio/tutor/issues/945
2023-12-05 11:46:56 +01:00
Régis Behmo
8d815bc317 Merge branch 'master' into nightly 2023-11-29 11:21:51 +01:00
Régis Behmo
ff8091bef2 feat: simplify nightly management
Bumping the `OPENEDX_COMMON_VERSION` in the master branch usually
creates a conflict when we merge the change in the nightly branch. To
avoid this conflict, we add some logic to the `OPENEDX_COMMON_VERSION`.

This change should be invisible for most users.

This partially addresses issue #936.
2023-11-29 10:49:53 +01:00
Overhang.IO
6860b5d57a Merge remote-tracking branch 'origin/master' into nightly 2023-11-29 08:38:33 +00:00
Régis Behmo
b1a581d98a chore: upgrade cryptography package
See https://github.com/overhangio/tutor/pull/951
2023-11-29 09:30:14 +01:00
Régis Behmo
913a1adae4 Merge branch 'master' into nightly 2023-11-23 12:58:04 +01:00
Omar Al-Ithawi
65ba0d2de2 fix: fix ulimits error for elasticsearch in Docker rootless mode
disable `ulimits` in rootless docker mode by setting them to zero
2023-11-23 12:36:07 +01:00
Overhang.IO
c4cc7279fc Merge remote-tracking branch 'origin/master' into nightly 2023-11-23 09:02:05 +00:00
Florian Haas
8fdb6f52d9 fix: Reduce MySQL binlog expiry from 30 days to 3
MySQL 8 defaults to a binlog expiry period of 2592000 seconds
(30 days), which for Tutor/Open edX purposes can be considered
excessive.

On the one hand, it is unlikely that a MySQL server configured for
Tutor uses MySQL replication at all (considering that up until Tutor
15 and MySQL 5.7, the binlog was disabled by default, rendering
replication impossible). Even if it does, a replica lagging more than
two days behind the primary server would be unacceptable.

Likewise, it is unlikely that an Open edX database is backed up less
than once a day, thus is is unlikely that Open edX admins would
benefit from the ability to do point-in-time restore over a 30-day
period.

On the other hand, having a 30-day binlog expiry period can
considerably increase the storage space requirements for the MySQL
container, particularly on busy Open edX platforms. When left
unchecked, this can even cause the MySQL container to run into "No
space left on device" situations, disabling the MySQL database
altogether. Thus, the MySQL default settings are likely to be a net
disadvantage for Open edX admins.

Finally, all of the above considerations apply only if the Open edX
administrator has chosen to run their own MySQL and not opted for a
DBaaS solution like AWS RDS.

Thus, it should be acceptable to run with a reduced binlog expiry
period of 3 days (rather than 30) by default.

Therefore, inject the --binlog-expire-logs-seconds=259200 argument
into the Tutor-generated command to start mysqld.

Reference:
https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_binlog_expire_logs_seconds
2023-11-23 09:39:55 +01:00
Régis Behmo
2b490e59a7 Merge branch 'master' into nightly 2023-11-20 16:33:20 +01:00
Régis Behmo
e02d4274ee v16.1.7 2023-11-17 10:34:21 +01:00
Régis Behmo
66fce06e44 fix: missing dev.txt file in pypi package
Close #943.
2023-11-17 10:32:53 +01:00
Régis Behmo
01971f572b v16.1.6 2023-11-16 22:38:10 +01:00