Commit Graph

63850 Commits

Author SHA1 Message Date
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
Yusuf Musleh
3eb4e0ce9c feat: Update new files notification banner styles (#33197)
Uses the updated styles for the notification based on the new designs.
Includes a button to open view the files directly in the notification.

This also fix a bug where the notification was not appearing when paste
a whole Unit.
2023-09-15 08:58:50 -07:00
Yusuf Musleh
0d15ca7240 fix: Escape CDATA special char on xblock serialize (#33239)
This fixes a bug in xblock serialization when trying to copy a
unit/component that contains an HTML xblock with the characters "]]>"
which is a special character in CDATA.
2023-09-15 08:58:23 -07:00
Muhammad Soban Javed
ceb6628963 chore: upgrade edx-sgae to 0.23.0 (#33254)
Co-authored-by: Muhammad Soban Javed <iamsobanjaved@gmai.com>
2023-09-15 20:12:55 +05:00
Tim McCormack
eeb35733bb fix: Update cors_csrf middleware for Django 4.0 (#33262)
Remove use of Django's `CSRF_COOKIE_USED`, which is no longer leaked
outside of the dynamic scope of the Django csrf middleware as of Django
4.0. Specifically, https://github.com/django/django/pull/14688 replaced
that META entry and a request attribute with a single META entry
`CSRF_COOKIE_NEEDS_UPDATE`, which is then set back to False once the CSRF
cookie is set by the middleware's process_response.

We'll send the cross-domain cookie if the decorator requests it and the
value is present, regardless of whether the same-domain cookie would have
been sent. (And we'll still *set* `CSRF_COOKIE_NEEDS_UPDATE` to ensure that
a cookie gets generated.)

See https://github.com/openedx/edx-platform/issues/33207
2023-09-15 14:34:25 +00:00
Kyle McCormick
265701c01d feat!: remove library_sourced block (#33257)
Originally, we planned to add support for V2 libraries and for static
(hand-selected) library block reference via new block type: library_sourced.

We have since decided that it would be better to add those capabilities
in-place to the existing library_content block. This will ease V1->V2
library migration and make adoption of the new features easier for current
library users. It will also avoid duplication of logic between two block types,
we we fear would be error-prone. For details, see this ADR:
 https://github.com/openedx/edx-platform/pull/33231

So, we are removing the library_sourced block.
This block has existed in edx-platform for a few years now, but was not
enabled by default and never officially supported. It was only usable via the
experimental V2 content library feature. Operators who added library_sourced
blocks to their course will now see them render as `HiddenBlock` instances, i.e.:

> ERROR: "library_sourced" is an unknown component type...

This should not impact other component types in such courses and should not
impact import/export.
2023-09-15 10:04:38 -04:00
Kristin Aoki
e820162572 fix: add public video share valid course key check (#33260) 2023-09-15 09:05:59 -04:00
Ahtisham Shahid
202e79093c fix: Integraty error in enrollments api (#33265) 2023-09-15 17:41:20 +05:00
Muhammad Adeel Tajamul
5fcad886cb fix: notification tray icon was not visible to non-verified users (#33247) 2023-09-15 16:14:24 +05:00
Ahtisham Shahid
6ff8e42bba fix: removed user object from logs (#33264) 2023-09-15 07:44:26 +00:00
Nathan Sprenkle
548d302610 chore: ORA bump to 5.4.0 (#33255) 2023-09-14 14:06:57 -04:00
German
d3a6615deb chore: update location config for devstack-experimental (#33256)
* Update location in devstack-experimental to fix issue while re-indexing
* Updated the devstack.py to point to edx.devstack.elasticsearch710 host
* Enabed the ENABLE_COURSEWARE_INDEX and ENABLE_COURSEWARE_SEARCH
2023-09-14 14:21:47 -03:00
Robert Raposa
5953b1140b docs: update documentation link in README (#33244) 2023-09-14 11:56:17 -04:00
Jansen Kantor
88b6f3894e fix: turn off atomic requests for course api get views (#33230)
* fix: turn off atomic requests for course api get views

* test: fix test
2023-09-14 10:40:28 -04:00
salmannawaz
648a30249a Deprecation of edx-user-state-client repo (#33218)
* chore: add code for edx-user-state-client in edx-platform
2023-09-14 18:53:37 +05:00
Awais Qureshi
529069726d chore: removing django-history pin. (#33250)
* chore: removing django-history pin.
2023-09-14 15:09:02 +05:00
Muhammad Umar Khan
fdae21a5e7 chore: unpin redis client version (#33215) 2023-09-14 14:19:39 +05:00
Ahtisham Shahid
90ca72a34e chore: added log to track changes in user notification pref (#33237)
* chore: added log to track changes in user notification pref
2023-09-14 13:31:00 +05:00
github-actions[bot]
0592b762d6 feat: Upgrade Python dependency edx-enterprise (#33242)
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: kiram15 <kiram15@users.noreply.github.com>
Co-authored-by: Kira Miller <31229189+kiram15@users.noreply.github.com>
2023-09-13 15:19:17 -06:00