Commit Graph

63868 Commits

Author SHA1 Message Date
salman2013
42ca0ddec4 chore: remove bok choy settings 2023-09-27 10:58:37 +05:00
Muhammad Adeel Tajamul
8c9232ace9 feat: updated notification admin (#33320) 2023-09-25 11:14:32 +05:00
Jenkins
6b262e7957 chore(i18n): update translations 2023-09-24 17:10:27 -04:00
Jesper Hodge
cd2ce32d73 CMS API serializers and validations (#33316)
Internal ticket: https://2u-internal.atlassian.net/browse/TNL-11077

This adds validations to all new CMS API endpoints via serializers.

Validations follow the "strong parameter" concept:
https://www.mintbit.com/blog/securing-ruby-on-rails-applications-part-3-use-strong-parameters#:~:text=Strong%20parameters%20are%20a%20feature,parameters%20to%20a%20controller%20action.
2023-09-22 17:49:49 -04:00
Muhammad Umar Khan
f9148f032f chore: upgrade dot (#33309)
* chore: upgrade dot



Co-authored-by: mumarkhan999 <mumarkhan999@users.noreply.github.com>
2023-09-22 15:36:17 +05:00
github-actions[bot]
735aae7639 feat: Upgrade Python dependency openedx-django-wiki (#33321)
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: awais786 <awais786@users.noreply.github.com>
2023-09-22 15:12:39 +05:00
Emily Rosario-Aquin
5b74eda2da Merge pull request #32849 from openedx/ea/ent-7453
chore: remove lms_enroll_user_in_course
2023-09-21 14:57:25 -05:00
Emily Rosario-Aquin
be9a97a617 Merge branch 'master' into ea/ent-7453 2023-09-21 14:04:28 -05:00
Rômulo Penido
e45460a2ce refactor: Move content_tagging django app so that CMS-only tests run (#33259) 2023-09-21 12:01:20 -07:00
Emily Aquin
8014b68cee chore: bump edx-enterprise 2023-09-21 18:44:03 +00:00
Emily Aquin
98721ec551 chore: remove lms_enroll_user_in_course 2023-09-21 18:18:35 +00:00
irfanuddinahmad
439a58e56c Merge pull request #33317 from openedx/iahmad/ENT-7633
chore: edx-enterprise upgrade
2023-09-21 22:46:16 +05:00
IrfanUddinAhmad
b494bd642d chore: edx-enterprise upgrade 2023-09-21 22:23:13 +05:00
Awais Qureshi
4943674fc1 feat!: upgrading django-storages to 1.13.2 (#33301)
* feat!: upgrading `django-storages` to `1.13.2`
2023-09-21 16:56:50 +05:00
Dmytro
f81b64f415 fix: get registration fields from site configuration (#33165)
Co-authored-by: Edward Zarecor <ezarecor@tcril.org>
Co-authored-by: Zainab Amir <zainab.amir@arbisoft.com>
2023-09-21 13:57:30 +05:00
Muhammad Adeel Tajamul
3aeaec35d9 feat: added notifications in legacy discussion experience (#33280) 2023-09-21 08:04:02 +05:00
Adam Stankiewicz
32a1820360 chore: upgrade to edx-enterprise 4.2.0 (#33305) 2023-09-20 18:32:47 +00:00
Tim McCormack
0304a31c65 docs: Fix second link in sharding doc (#33286) 2023-09-20 16:00:28 +00:00
Awais Qureshi
5e8decbd8e test: running django42 tests. (#33144) 2023-09-20 11:34:23 -04:00
Usama Sadiq
62e61cc78d build: add a composite migrations check (#33292) 2023-09-20 10:45:37 -04:00
alangsto
25a04b1654 fix: pin xblock-lti-consumer library (#33299) 2023-09-20 09:53:31 -04:00
Jenkins
d1e8026a8a chore(i18n): update translations 2023-09-20 09:21:28 -04:00
Awais Qureshi
c50e01e107 feat!: Django 4.0 and above, CSRF_TRUSTED_ORIGINS must include scheme. (#33226)
* feat!: Django 4.0 and above, CSRF_TRUSTED_ORIGINS must include scheme.

* feat!: Django 4.0 and above, CSRF_TRUSTED_ORIGINS must include scheme.

* fix: fix quality failure

* feat!: Django 4.0 and above, CSRF_TRUSTED_ORIGINS must include scheme.
2023-09-20 15:49:47 +05:00
Awais Qureshi
ead94c9d81 Upgrade django storages 1.12.3 (#33130)
* feat!: upgrading `django-storages` to `1.12.3`
2023-09-20 14:06:22 +05:00
Jesper Hodge
f197f9e61e add swagger for CMS API via drf-spectacular (#33282)
This adds two new urls: `<studio-base>/cms-api/ui` and `<studio-base>/cms-api/schema` with swagger ui and swaggerfile only for the new CMS API using drf-spectacular
2023-09-19 21:06:40 +00:00
Tim McCormack
67140624ed build: Install wget in development docker image (#33288)
It's needed by `make common_constraints.txt`. We're starting to see
failures running this command in lms-shell in devstack. This has probably
been going on the entire time, but the error suppression was only removed
recently in <https://github.com/openedx/edx-platform/pull/33271>.

The new RUN instruction for installing wget is added to the development
layer only, partly to limit image sizes and partly to make life harder for
any attacker who manages to gain code execution in production.

I've moved `USER app` from the end of the `base` layer to the start of the
`production` layer, since the only other layer (in this file) that builds
on `base` is `development`, which more or less immediately switches back
to root. (The intervening COPY instruction is not affected by the current
user.)

Ticket: https://github.com/openedx/edx-platform/issues/33287
2023-09-19 20:39:12 +00:00
Alexander J Sheehan
20ac79fa5b Merge pull request #33277 from openedx/alex-sheehan-edx/upgrade-edx-enterprise-3c3306c
feat: Upgrade Python dependency edx-enterprise
2023-09-19 11:36:01 -04:00
Robert Raposa
92e6c071d1 docs: move up docs link in README (#33281)
The documentation section, which now has an edx-platform
specific doc link, was moved closer to the top of the README
to make it stand out more.
2023-09-19 11:30:22 -04:00
alex-sheehan-edx
4a3370f4c9 feat: Upgrade Python dependency edx-enterprise
enterprise version bump

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2023-09-19 15:05:25 +00:00
Cristhian Garcia
4a9aed44e5 feat: emit log in / out tracking logs (#33219) 2023-09-19 11:03:34 -04:00
ABBOUD Moncef
9b44065ab0 fix: hide sequences & sections when access is restricted in units through cohorts (#33191)
This does two major things:

* Removes subsections from a student's course outline if the
  subsection's units are all restricted to a cohort that the student
  is not a part of (see CohortPartitionGroupsOutlineProcessor).
* Removes sections from the course outline if the user is not allowed
  to see any of its child subsections.
2023-09-19 10:05:02 -04:00
Tim McCormack
2d7f8afc2b docs: Fix link to sharding doc (#33278)
This should probably be turned into an ADR at some point, but for
now I've just recreated the page on the public wiki. (The space it
was in had been deleted during the 2U/Axim split.)
2023-09-19 12:54:36 +00:00
Rômulo Penido
3c3306ce85 feat: implement tag object rest api in cms (#33181) 2023-09-18 11:07:00 -07:00
Tim McCormack
fa66240d9a Revert "feat: Add an experimental custom attr for automatic Celery task code owner (#33180)" (#33272)
This reverts commit a1d840fd09.
2023-09-18 17:47:59 +00:00
Tim McCormack
1552ea0762 Add compile-requirements GH workflow and update requirements README (#33126)
Adds a GH workflow that will run `make compile-requirements` and create
a PR for it and overhauls the requirements README with info on how to
use the new workflows.

README changes:

- Group the workflow/makefile info under a new heading
- Switch to imperative for headings
- Move "Upgrade all dependencies" to end of list (uncommon for people to
  actually need this command, I suspect)
- Add "Add a dependency"
- Preamble about .in and .txt files and Mac vs. Linux, as well as about forks

Also, some style fixes to upgrade-one-python-dependency GH workflow:

- Fix indentation in inputs block
- Remove "-workflow" from job name (probably copied from another workflow)
- Wrap a long line
2023-09-18 17:32:51 +00:00
Tim McCormack
3fdb435be2 build: Fix common-constraints override to prevent doubled comment (#33271)
Sometimes this make target doubles or even triples the comment. I think
this is due to a temporary failure in the wget call, which is then ignored
and an additional comment is added onto the top. If this happens multiple
times in a row, you get multiple additions.

Removing the `|| touch` should fix this, and surface any errors that are
happening.
2023-09-18 16:32:18 +00:00
Kshitij Sobti
8342e6bb5c fix: loading of underscore and other text assets over CDN (#33124)
The text plugin for requirejs is used to load text assets such as .underscore files.
To avoid CORS issues when loading such assets from a different domain, such as a when
a CDN is in use, this plugin loads such assets as .js files by adding a script tag.

What this means in practice is that if you configure the platform to serve static
assets from a CDN, it will try to load `file.underscore.js` instead of
`file.underscore`. We can override this behaviour by providing a `useXhr` function
for the text plugin configuration. The plugin will use this function to determine
whether to use XHR or the script tag approach.

In this change we are asking it to always use XHR since the concerns about CORS
raised by the plugins documentation don't apply here.

ref: 3f9d4c19b3/README.md (xhr-restrictions)
2023-09-18 19:41:12 +05:00
Lakshya Khatri
3acb1d8590 docs: annotate lms progress tab ui waffle flag (#33233) 2023-09-18 10:06:12 -04:00
Kyle McCormick
07979774a6 docs: ADR: Evolving the library_content block schema (#33231)
Co-authored-by: connorhaugh <49422820+connorhaugh@users.noreply.github.com>
2023-09-18 13:47:08 +00:00
Omar Al-Ithawi
5dd13fb112 feat: upgrade edx-i18n-tools to v1.2.0 (#33236)
Upgrade to use the `--combine-po-files` parameter in future
ope-58 work.
2023-09-18 09:23:13 -04:00
Awais Qureshi
55260b9379 chore: upgrade dot (#33079)
Co-authored-by: Muhammad Umar Khan <m.umarkhan999@gmail.com>
2023-09-18 14:40:53 +05:00
Dmytro
20efcdc94c fix: User retirement 404 for state RETIRING_FORUMS (#33024) 2023-09-18 13:44:53 +05:00
Tim McCormack
25b18e83cd build: Add missing Celery task decorators, and add CI check for it (#33154) 2023-09-15 20:03:04 +00:00
Katrina Nguyen
3db436be0a Merge pull request #33270 from openedx/knguyen2/ENT-7697-version-bump
chore: version bump
2023-09-15 12:52:45 -07:00
María Fernanda Magallanes
76dbcdee6f feat: CourseEnrollmentAllowed API (#33059) 2023-09-15 11:43:59 -07:00
María Fernanda Magallanes
cddfc02fbc feat: add email support to the enrollment post and get methods (#33006) 2023-09-15 11:43:14 -07:00
knguyen2
a1f7ea0098 fix: merge conflicts 2023-09-15 18:39:15 +00:00
knguyen2
9bb1b1be70 chore: version bump 2023-09-15 18:34:34 +00:00
Rebecca Graber
02dd36cdc1 temp: pin openedx-events to before publish-by-config (#33266) 2023-09-15 13:32:28 -04:00
Yusuf Musleh
12ea8e91b4 fix: Pasting unit with LibraryContentBlock error (#33160) 2023-09-15 08:59:11 -07:00