Commit Graph

63526 Commits

Author SHA1 Message Date
knguyen2
e3fd89d55b chore: version bump 2023-07-27 17:55:41 +00:00
Yusuf Musleh
884d898cbc feat: Add subsection grading policy mismatch validation (#32813)
Adds validation for the grading assignment and grading policy, showing a
warning in Studio if there is a mismatch.
2023-07-27 10:28:10 -07:00
Raymond Zhou
122ae72403 feat: add game block button waffle flag checks (#32859) 2023-07-27 13:20:26 -04:00
Kyle McCormick
303bf5ef3c build: npm run watch (experimental) (#32866)
Implements the `npm run watch` section of the assets ADR [1], plus some
modifications since I decided to switch from pywatchman to watchdog (see
ADR changes for justification). This will replace `paver watch_assets`
(edx-platform) and `openedx-assets watch-themes` (Tutor).

Specifically, this PR adds three experimental commands:

* `npm run watch-sass` : Watch for Sass changes with watchdog.
* `npm run watch-webpack` : Invoke Webpack-watch for JS changes.
* `npm run watch` : Invoke both `watch-sass` and `watch-webpack` simultaneously.

These commands are only intended to work in development mode. They have
been tested both on bare-metal edx-platform and through `tutor dev run`
on on Linux.

Before removing the "experimental" label, we need to:

* Test through Devstack on Linux.
* Test through Devstack and `tutor dev run` on macOS.
* Test on bare-metal macOS. Might not work, which is OK, but we should
  document that.
* Document the commands in edx-platform's README.
* Confirm that this not only works through `tutor dev run`, but also as
  a suitable replacement in the `watchthemes` service that Tutor runs
  automatically as part of `tutor dev start`. Tweak if necessary.

References:

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

Part of: https://github.com/openedx/edx-platform/issues/31612
2023-07-27 16:33:32 +00:00
Kyle McCormick
355779983e build: commit builtinblocks Webpack config and stub out xmodule_assets (#32685)
The Webpack configuration file for built-in XBlock JS used to be
generated at build time and git-ignored. It lived at
common/static/xmodule/webpack.xmodule.config.js. It was generated
because the JS that it referred to was also generated at build-time, and
the filenames of those JS modules were not static.

Now that its contents have been made entirely static [1], there is no
reason we need to continue generating this Webpack configuration file.
So, we check it into edx-platform under the name
./webpack.builtinblocks.config.js. We choose to put it in the repo's
root directory because the paths contained in the config file are
relative to the repo's root.

This allows us to behead both the xmodule/static_content.py
(`xmodule_assets`) script andthe  `process_xmodule_assets` paver task, a
major step in removing the need for Python in the edx-platform asset
build [2]. It also allows us to delete the `HTMLSnippet` class and all
associated attributes, which were exclusively used by
xmodule/static_content.py..

We leave `xmodule_assets` and  `process_xmodule_assets` in as stubs for
now in order to avoid breaking external code (like Tutor) which calls
Paver; the entire pavelib/assets.py function will be eventually removed
soon anyway [3]. Further, to avoid extraneous refactoring, we keep one
method of `HTMLSnippet` around on a few of its former subclasses:
`get_html`. This method was originally part of the XModule framework;
now, it is left over on a few classes as a simple internal helper
method.

References:
1. https://github.com/openedx/edx-platform/pull/32480
2. https://github.com/openedx/edx-platform/issues/31800
3. https://github.com/openedx/edx-platform/issues/31895

Part of: https://github.com/openedx/edx-platform/issues/32481
2023-07-27 14:32:29 +00:00
Ejaz Ahmad
c0e9dc9edd Merge pull request #32865 from openedx/jajjibhai008/upgrade-edx-enterprise-34f9fc4
feat: Upgrade Python dependency edx-enterprise
2023-07-27 18:56:28 +05:00
Muhammad Adeel Tajamul
54467b4583 fix: fixed provider not setting in course discussion settings (#32863)
Co-authored-by: adeel.tajamul <adeel.tajamul@arbisoft.com>
2023-07-27 17:05:37 +05:00
Ejaz Ahmad
06d8a791af Merge branch 'master' into jajjibhai008/upgrade-edx-enterprise-34f9fc4 2023-07-27 16:55:51 +05:00
Awais Qureshi
5f7d82ebe2 chore: upgrading deprecated import. (#32864) 2023-07-27 16:54:33 +05:00
jajjibhai008
6c1db43077 feat: Upgrade Python dependency edx-enterprise
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2023-07-27 11:13:09 +00:00
Usama Sadiq
34f9fc4ae9 fix: include new assets.txt file in make upgrade (#32860)
* fix: include new assets.txt file in make upgrade
* test: update click version to resolve upgrade job failure
* chore: Updating Python Requirements (#32861)
2023-07-27 16:03:07 +05:00
Diego Velasquez
e92e0e263b chore: remove warnings for assertNotRegexpMatches method (#32753)
Co-authored-by: Diego Velásquez <diego@emptor.io>
2023-07-27 15:37:24 +05:00
salmannawaz
e4a1039144 Docker multi-arch images push for linux/amd64, linux/arm64 (#32686)
* fix: push docker multi-arch images

---------

Co-authored-by: Salman Nawaz <salman.nawaz@A006-01081.local>
2023-07-27 14:45:07 +05:00
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