Commit Graph

63513 Commits

Author SHA1 Message Date
Jenkins
06e738e64a chore: geoip2: update maxmind geolite country database 2023-07-26 16:59:01 -04:00
Jillian
8098169eca feat: adds Content Tagging (#32661)
* refactor: moves is_content_creator

from cms.djangoapps.contentstore.helpers to common.djangoapps.student.auth

* feat: adds content tagging app

Adds models and APIs to support tagging content objects (e.g. XBlocks,
content libraries) by content authors. Content tags can be thought of as
"name:value" fields, though underneath they are a bit more complicated.

* adds dependency on openedx-learning<=0.1.0
* adds tagging app to LMS and CMS
* adds content tagging models, api, rules, admin, and tests.
* content taxonomies and tags can be maintained per organization by
  content creators for that organization.
2023-07-26 10:32:59 -07:00
Kyle McCormick
9d4163d31f build: include built-in XBlock JS directly rather than copying it (#32480)
As part of the static asset build, JS modules for most built-in XBlocks were
unnecessarily copied from the original locations (under xmodule/js and
common/static/js) to a git-ignored location (under common/static/xmodule), and
then included into the Webpack builld via
common/static/xmodule/webpack.xmodule.config.js.

With this commit, we stop copying the JS modules. Instead, we have
common/static/xmodule/webpack.xmodule.config.js just reference the original
source under xmodule/js and common/static/js.

This lets us us radically simplify the xmodule/static_content.py build script.
It also sets the stage for the next change, in which we will check
webpack.xmodule.config.js into the repository, and delete
xmodule/static_content.py entirely.

common/static/xmodule/webpack.xmodule.config.js before:

    module.exports = {
        "entry": {
            "AboutBlockDisplay": [
                "./common/static/xmodule/modules/js/000-b82f6c436159f6bc7ca2513e29e82503.js",
                "./common/static/xmodule/modules/js/001-3ed86006526f75d6c844739193a84c11.js",
                "./common/static/xmodule/modules/js/002-3918b2d4f383c04fed8227cc9f523d6e.js",
                "./common/static/xmodule/modules/js/003-b3206f2283964743c4772b9d72c67d64.js",
                "./common/static/xmodule/modules/js/004-274b8109ca3426c2a6fde9ec2c56e969.js",
                "./common/static/xmodule/modules/js/005-26caba6f71877f63a7dd4f6796109bf6.js"
            ],
            "AboutBlockEditor": [
                "./common/static/xmodule/descriptors/js/000-b82f6c436159f6bc7ca2513e29e82503.js",
                "./common/static/xmodule/descriptors/js/001-19c4723cecaa5a5a46b8566b3544e732.js"
            ],
            // etc
        }
    };

common/static/xmodule/webpack.xmodule.config.js after:

    module.exports = {
        "entry": {
            "AboutBlockDisplay": [
                "./xmodule/js/src/xmodule.js",
                "./xmodule/js/src/html/display.js",
                "./xmodule/js/src/javascript_loader.js",
                "./xmodule/js/src/collapsible.js",
                "./xmodule/js/src/html/imageModal.js",
                "./xmodule/js/common_static/js/vendor/draggabilly.js"
            ],
            "AboutBlockEditor": [
                "./xmodule/js/src/xmodule.js",
                "./xmodule/js/src/html/edit.js"
            ],
            // etc
        }
    };

Part of: https://github.com/openedx/edx-platform/issues/32481
2023-07-26 13:27:38 -04:00
Muhammad Umar Khan
51079e5cf3 fix: remove record exception to avoid error rate on NR (#32850) 2023-07-26 17:13:12 +00:00
Raymond Zhou
370ea809f4 feat: upd batch enrollment email msg (#32837) 2023-07-26 12:35:38 -04:00
Diego Velasquez
547e5b1f7b chore: remove warnings from defusedxml package (#32652)
Co-authored-by: Diego Velásquez <diego@emptor.io>
2023-07-26 12:20:56 -04:00
Jansen Kantor
4331ee210b fix: learner home serializer key error (#32842)
* fix: allow missing authOrgId

---------

Co-authored-by: Leangseu Kim <lkim@edx.org>
2023-07-26 11:49:51 -04:00
Kyle McCormick
3e67719a24 build: npm run build (experimental) (#32823)
This PR implements much of the static assets rework ADR [1], including:

* `npm run build[-dev]`, and its subcommands,
* `npm run webpack[-dev]` and
* `npm run compile-sass[-dev]`.

This is backwards-compatible. `paver update_assets` should not be affected.
The new command warns that it is "experimental" for a few reasons:

* `npm run build` will fail in the webpack phase unless you first
run  `xmodule_assets`. This will be changed soon [2].

* We have tested the new build, but not quite so thoroughly that we'd
recommend it as the production default yet. Once the xmodule_assets
work lands, we'll share this on the forums so early adopters can try it
out.

* The commands lack some top-level documentation. Once they stabilize more,
we'll add a section to the README that explains how and when to use `npm run
build` and its subcommands and its env vars.

* `npm run watch` is not yet implemented.

References:
1. https://github.com/openedx/edx-platform/blob/master/docs/decisions/0017-reimplement-asset-processing.rst
2. https://github.com/openedx/edx-platform/pull/32685

Part of: https://github.com/openedx/edx-platform/issues/31604
2023-07-26 08:04:45 -04:00
Muhammad Umar Khan
23d696675f chore: replace memcachecache with pymemcache backend (#32845) 2023-07-26 16:50:39 +05:00
Ahtisham Shahid
f4616f02c8 fix: use student role for zoom in case of global staff. (#32818)
* fix: use student role for zoom in case of global staff.

* fix: added request cache to avoid duplicate db calls.
2023-07-26 14:19:21 +05:00
Katrina Nguyen
8d49a8628d Merge pull request #32844 from openedx/knguyen2/ENT-5808
chore: version bump
2023-07-25 17:52:47 -07:00
knguyen2
46cae7a92b chore: version bump 2023-07-25 23:56:36 +00:00
Feanil Patel
5d3eca432e Merge pull request from GHSA-3q74-3rfh-g37j
Co-authored-by: Jesper Hodge <jhodge@outlook.de>
2023-07-25 14:06:06 -04:00
Rômulo Penido
c54070989b feat!: add new content authoring event signals 2023-07-25 16:45:39 +02:00
Yagnesh1998
02127673f8 feat: remove paver update_db in depr (#32832) 2023-07-25 10:08:37 -04:00
Ejaz Ahmad
3426901fe4 Merge pull request #32773 from openedx/btahir/ENT-7373-7374
feat: enrollment mode and organisation auth id
2023-07-25 16:56:18 +05:00
Muhammad Ammar
7087c2ad5a Merge pull request #32796 from openedx/ammar/remove-optional-depdencies
remove optional python dependencies
2023-07-25 16:54:38 +05:00
muhammad-ammar
584a52eeb3 chore: remove optional dependencies 2023-07-25 16:00:33 +05:00
Muhammad Umar Khan
004a0f5c75 chore: add monitoring on course strcuture cache failure (#32831) 2023-07-25 14:49:43 +05:00
edX requirements bot
a44c6d3d4a chore: Updating Python Requirements (#32829) 2023-07-25 12:48:44 +05:00
Mubbshar Anwar
daa52f3ba9 feat: embedded form redirection experience (#32814)
Redirection for embedded registration experience

VAN-1535
2023-07-25 11:56:33 +05:00
Ahtisham Shahid
4379c089f1 fix: updated disucssions notifications templates (#32819) 2023-07-25 11:23:59 +05:00
Leangseu Kim
626100596d fix: add correct css and call back for mathjax 2023-07-24 13:27:50 -04:00
Katrina Nguyen
6bdeb34109 Merge pull request #32825 from openedx/openedx/knguyen2/ENT-7268
chore: edx-enterprise version bump
2023-07-24 10:12:23 -07:00
knguyen2
2640b291b1 chore: edx-enterprise version bump 2023-07-24 16:46:56 +00:00
Kristin Aoki
948f23a011 feat: return denied when waffle flag disabled (#32795) 2023-07-24 12:32:53 -04:00
Muhammad Umar Khan
25afbb194e chore: add log statement >=1MB data (#32821) 2023-07-24 20:58:46 +05:00
github-actions[bot]
35ff87f68d feat: Upgrade Python dependency edx-enterprise (#32809)
fix: skipping rate limited api response errors

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-07-24 09:07:40 -06:00
Dmytro
bf74a8bf7b fix: discussion could not be loaded in course units (#32456)
Discussion:
 - https://github.com/openedx/wg-build-test-release/issues/276
2023-07-24 10:50:43 -04:00
Tim McCormack
77cef4cd07 build: Fix Axim oncall team reference in codeowners (#32800) 2023-07-24 14:16:29 +00:00
Muhammad Adeel Tajamul
f39ba90c55 feat: added search and filter in django admin for notification models (#32771) 2023-07-24 15:46:01 +05:00
Jenkins
2fc917a70c chore(i18n): update translations 2023-07-23 17:04:42 -04:00
Agrendalath
e746986820 feat: create Course Limited Staff role
This is an experimental approach to introduce a role which has all Course Staff
permissions, except for the Studio access.

Co-authored-by: 0x29a <demid@opencraft.com>
2023-07-21 15:09:41 +02:00
Kyle D. McCormick
4f393a1f15 docs: update static assets ADR with the new plan 2023-07-21 07:43:57 -04:00
kenclary
705ff1ba7c Merge pull request #32600 from openedx/kenclary/TNL-10873
feat: basic get/post endpoint for v2 xblocks. TNL-10873
2023-07-20 18:07:34 -04:00
Ken Clary
d6f824db40 feat: basic get/post endpoint for v2 xblocks. TNL-10873 2023-07-20 16:03:32 -04:00
Alexander J Sheehan
aea511e506 Merge pull request #32799 from openedx/alex-sheehan-edx/upgrade-edx-enterprise-ebd9605
feat: Upgrade Python dependency edx-enterprise
2023-07-20 15:12:02 -04:00
alex-sheehan-edx
d28d094af8 feat: Upgrade Python dependency edx-enterprise
fix: removing items to delete dependency on the catalog service

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2023-07-20 18:45:05 +00:00
Jesper Hodge
7fc32f80b8 add assets to studio content api (#32676)
The purpose of this is to expose the assets_handler endpoint as a public endpoint as part of the studio content API MVP. This allows a course author to register an oauth application in django admin and then retrieve, create and delete assets with this endpoint. You can only update the "locked" attribute for an asset.
2023-07-20 14:18:11 -04:00
Kyle D. McCormick
fb5383a108 build: ensure that non-Tutor systems handle copy-node-modules.sh
Two fixes:

* In the (in-repo, non-Tutor) Dockerfile, add copy-node-modules.sh
  before `npm install`, since it is needed by the new postinstall hook.

* In paver/assets.py, run copy-node-modules.sh for backwards com-
  patibility, just for cases where `SKIP_NPM_INSTALL` is enabled
  (which would prevent our new postinstall hook from running
  automatically!). We will deprecate the paver asset commands all at
  once once the new non-paver stuff is 100% working.
2023-07-20 13:46:21 -04:00
Kyle McCormick
a6f04d8ca3 build: copy from node_modules using NPM postinstall hook, not Paver (RE-MERGE)
Re-merge of 4b64d8342d

The commit after this one contains the fix for the issue that led to the
revert.
2023-07-20 13:46:21 -04:00
SaadYousaf
ebd9605911 feat: add tracking event for notifications app mark all as read 2023-07-20 14:38:12 +05:00
connorhaugh
41ec0852e9 feat: command to delete v1 libraries (#32786)
This PR adds a management command to delete v1 content libraries. CLI options are given for a singular library, as well as all libraries. The command raises some errors related to grading, as it uses the code to delete courses, but that is something I can live with for a quick and dirty version of this capability. Also, the pruner will have to be run later to remove any orphan blocks left behind by removing the inde
2023-07-19 15:05:34 -04:00
github-actions[bot]
8a3c9169d1 feat: Upgrade Python dependency ora2 (#32793)
bump to ora version to include flexible peer grading override changes

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: jansenk <jansenk@users.noreply.github.com>
2023-07-19 18:23:14 +00:00
Jansen Kantor
4c5815cd87 fix: ora pages and resources link (#32791) 2023-07-19 13:59:55 -04:00
Braden MacDonald
57420ed613 feat: expand mypy static type checking (#32591)
* chore: typing + fixes for content_staging
* chore: typing + fixes for learning_sequences
* chore: typing + fixes for content_libraries
* chore: typing + fixes for new XBlock runtime
* feat: type hinting more code with mypy
2023-07-19 09:58:19 -07:00
Agrendalath
92b684004e refactor: reuse services and wrappers between XBlocks (fixed)
This re-applies commit 36cc415 with handling an invalid context_key in the
`PartitionService`. It can happen when rendering a `LibraryContentBlock` in
Studio because this service is initialized by the modulestore when validating
an XBlock to gather its error messages in the `studio_xblock_wrapper`.
2023-07-19 18:01:59 +02:00
Jenkins
d79625ee72 chore(i18n): update translations 2023-07-19 11:34:52 -04:00
Yagnesh1998
03b189fc7c feat: Remove FOOTER_ORGANIZATION_IMAGE django settings depr52 (#32757)
* feat: Remove FOOTER_ORGANIZATION_IMAGE django settings depr52

* feat: Update api.py

* feat: Update api.py

* feat: Update footer.html

* feat: change in logo images path

* feat: Update footer.html

as per Diana's suggestion white space is removed.
2023-07-19 10:54:29 -04:00
Agrendalath
6825088801 Revert "Revert "feat: remove field-data binding from the runtime [FC-0026]" (#32740)"
This reverts commit fa06be106e.
2023-07-19 15:36:26 +02:00