Commit Graph

63838 Commits

Author SHA1 Message Date
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
Jenkins
0ae63dea7d chore: geoip2: update maxmind geolite country database 2023-09-13 16:59:15 -04:00
Yusuf Musleh
ee1b6b8a6d fix: Copy/Paste unit with python_lib.zip (#33164)
This fixes the issue when pasting a copied unit that contains
python_lib.zip file into another course. The python_lib.zip file was not
being correctly copied over to the new course's Files & Uploads page.
2023-09-13 12:22:55 -07:00
Yusuf Musleh
ac9aa91eb7 fix: Vertically center align Unit paste spinner (#33169) 2023-09-13 12:22:43 -07:00
Diana Huang
282b934299 fix: Add code owner to celery task. (#33238)
Ensures that the code owner attribute is set
on celery task run for entitlements.
2023-09-13 12:01:58 -04:00
Feanil Patel
52c7403ba9 Merge pull request #33157 from openedx/feanil/minimal_config_updates
feat: Be able to recieve e-mails in dev mode.
2023-09-13 11:09:14 -04:00
Kristin Aoki
f9c1af775c feat: change problem default display name (#33240) 2023-09-13 11:08:48 -04:00
Omar Al-Ithawi
3b869dd041 feat: install atlas translation tool (#32952)
Add the openedx-atlas to the kernel.in so it's available in all
environments including Atlas, Devstack and Native installation.
2023-09-13 08:11:07 -04:00
Irtaza Akram
71d99c8b1e Merge pull request #33132 from openedx/fix-got-both-positional-and-keyword-arguments-for-field
[Django 4.2]: Fix: got both positional and keyword arguments for field
2023-09-13 15:35:57 +05:00
Irtaza Akram
4191a37303 fix: expected query count django 4.2 (#33235) 2023-09-13 13:05:40 +05:00
Alexander J Sheehan
933485d348 Merge pull request #33221 from openedx/alex-sheehan-edx/upgrade-edx-enterprise-3aa1fdd
feat: Upgrade Python dependency edx-enterprise
2023-09-12 11:47:56 -04:00
alex-sheehan-edx
ae46cca395 feat: Upgrade Python dependency edx-enterprise
edx enterprise version bump

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2023-09-12 14:30:53 +00:00
Usama Sadiq
cc9721e808 fix: remove django-ipware constraint (#33225)
* fix: remove django-ipware constraint
2023-09-12 17:17:38 +05:00