Commit Graph

63571 Commits

Author SHA1 Message Date
michaelroytman
7598a81b57 feat: replace learning_assistant_launch_url with learning_assistant_enabled in courseware API
This commit replaces the learning_assistant_launch_url field of the CoursewareInformation view of the courseware API with a learning_assistant_enabled field. learning_assistant_enabled is a boolean that represents whether the Xpert Learning Assistant is enabled for the requesting user, based on the associated CourseWaffleFlag. This change is necessary because we are no longer leveraging the Learning Assistant LTI tool.
2023-08-09 10:29:11 -05:00
Zubair Shakoor
4fd2241896 fix: chardet bumped to 5.2.0 in all the requirements files (#32956) 2023-08-09 10:01:40 -04:00
Muhammad Soban Javed
b085ce4b6a chore: upgrade edx-enterprise to 4.0.11 (#32943) 2023-08-08 21:01:39 +05:00
github-actions[bot]
2a4a01e19e feat: Upgrade Python dependency edx-organizations (#32937)
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2023-08-08 19:24:20 +05:00
Awais Qureshi
8e6dc4868f chore: upgrading edx-enterprise to 4.0.10 (#32940)
* chore: upgrading edx-enterprise to 4.0.10

* chore: Update base.txt

* chore: bumping edx-enterprise ver.
2023-08-08 18:56:03 +05:00
github-actions[bot]
b6471c152e feat: Upgrade Python dependency edx-name-affirmation (#32938)
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-08-08 18:10:34 +05:00
github-actions[bot]
b1e3d49f6c feat: Upgrade Python dependency edx-proctoring (#32936)
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-08-08 18:10:20 +05:00
Zubair Shakoor
eecf4c7e96 build: bumped the package have django42 support now (#32921) 2023-08-08 17:32:07 +05:00
Awais Qureshi
4da29d914d chore: adding migrations related with django-history. (#32935) 2023-08-08 16:04:06 +05:00
Awais Qureshi
52bdb70438 chore: Adding new migrations. These are coming due to django-simple-history (#32927) 2023-08-08 14:42:09 +05:00
Muhammad Soban Javed
2732934e74 fix: re-enable Django deprecation warnings (#32277)
* fix: re-enable Django deprecation warnings
---------

Co-authored-by: UsamaSadiq <usama7274@gmail.com>
2023-08-07 22:08:00 +05:00
Erica Nwoga
4e75a89ff5 fead: added django admin forms (#32926)
* feat: added django admin forms
2023-08-07 13:01:12 -04:00
Jenkins
7c41be708e chore(i18n): update translations 2023-08-07 12:05:42 -04:00
Zachary Hancock
8d405ac588 feat: upgrade proctortrack JS (#32922) 2023-08-07 10:52:04 -04:00
Syed Ali Abbas Zaidi
8480dbc228 chore: apply amnesty on existing not fixable issues (#32215)
* fix: eslint operator-linebreak issue

* fix: eslint quotes issue

* fix: react jsx indent and props issues

* fix: eslint trailing spaces issues

* fix: eslint line around directives issue

* fix: eslint semi rule

* fix: eslint newline per chain rule

* fix: eslint space infix ops rule

* fix: eslint space-in-parens issue

* fix: eslint space before function paren issue

* fix: eslint space before blocks issue

* fix: eslint arrow body style issue

* fix: eslint dot-location issue

* fix: eslint quotes issue

* fix: eslint quote props issue

* fix: eslint operator assignment issue

* fix: eslint new line after import issue

* fix: indent issues

* fix: operator assignment issue

* fix: all autofixable eslint issues

* fix: all react related fixable issues

* fix: autofixable eslint issues

* chore: remove all template literals

* fix: remaining autofixable issues

* chore: apply amnesty on all existing issues

* fix: failing xss-lint issues

* refactor: apply amnesty on remaining issues

* refactor: apply amnesty on new issues

* fix: remove file level suppressions

* refactor: apply amnesty on new issues
2023-08-07 19:13:19 +05:00
Awais Qureshi
e94af3c2d3 feat: upgrading django-simple-history without migrations. (#32880)
* feat: upgrading django-history without migrations.

* feat: upgrading django-history==3.1.1.
2023-08-07 18:09:19 +05:00
Mohammad Ahtasham ul Hassan
df197837cb fix: remove extras and enhance existing subs logging (#32919) 2023-08-07 18:01:50 +05:00
Muhammad Umar Khan
1584dbc7a3 Upgrade edx-django-utils and django-config-models (#32917)
* feat: Upgrade Python dependency django-config-models (#32916)

chore: upgrade django-config-models

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

Co-authored-by: mumarkhan999 <mumarkhan999@users.noreply.github.com>

* feat: Upgrade Python dependency edx-django-utils (#32918)

chore: upgrade edx-django-utils

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

Co-authored-by: mumarkhan999 <mumarkhan999@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: mumarkhan999 <mumarkhan999@users.noreply.github.com>
2023-08-07 16:23:00 +05:00
Muhammad Adeel Tajamul
f90f1af117 fix: added new_comment and new_response to core notification (#32894) 2023-08-07 12:02:52 +05:00
Syed Sajjad Hussain Shah
7f06e72f5e fix: redirection issue with enterprise selection page flow (#32909)
VAN-1511
2023-08-07 10:09:55 +05:00
Jenkins
58f44a8176 chore(i18n): update translations 2023-08-06 17:05:09 -04:00
Ahtisham Shahid
7e23feeb33 fix: update discussions blackout dates logic to use discussions confi… (#32896) 2023-08-04 18:02:26 +05:00
Ahtisham Shahid
b37286e035 fix: Update notification sending logic for discussions (#32879) 2023-08-04 14:12:12 +05:00
Kristin Aoki
69cab96714 feat: remove 403 for disabled advanced settings (#32906) 2023-08-03 19:52:34 +00:00
Erica Nwoga
7d97ecfe9b feat: added proctoringpiisignature model (#32903)
* feat: added proctoringpiisignature model
2023-08-03 15:34:17 -04:00
github-actions[bot]
e0f8668e95 feat: Upgrade Python dependency edx-event-bus-kafka (#32905)
Better error logging for events that failed to publish

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

Co-authored-by: rgraber <rgraber@users.noreply.github.com>
2023-08-03 14:40:57 -04:00
ruzniaievdm
0d93075a01 fix: api for schedule and details page MFE page (#32890) 2023-08-03 11:41:52 -04:00
Erica Nwoga
87a6664013 feat: created ltipiisignature model (#32853)
* feat: created ltipiisignature model
2023-08-03 10:17:52 -04:00
Ejaz Ahmad
1b9d9bfc45 Merge pull request #32902 from openedx/eahmadjaved/ENT-7373-7374-hook
feat: hook for course hasStarted attribute
2023-08-03 18:08:47 +05:00
Muhammad Bilal Tahir
962e45196f feat: hook for course hasStarted attribute 2023-08-03 17:00:34 +05:00
Ejaz Ahmad
5acc4e58fa Merge pull request #32901 from openedx/jajjibhai008/upgrade-openedx-filters-03299af
feat: Upgrade Python dependency openedx-filters
2023-08-03 15:35:11 +05:00
jajjibhai008
5914b2144d feat: Upgrade Python dependency openedx-filters
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2023-08-03 09:12:11 +00:00
Jenkins
03299af168 chore: geoip2: update maxmind geolite country database 2023-08-02 16:59:04 -04:00
Braden MacDonald
1aed4e66af [FC-0009] Studio backend APIs to support copying and pasting of entire Units (#32812)
* feat: tests for copying units in content_staging app

* chore: convert old tests to pytest style

* feat: make pasting units work (in Studio backend API)

* refactor: make XmlMixin.parse_xml more like standard XBlock behavior
2023-08-02 12:24:10 -07:00
Chris Chávez
9bea44732b System defined taxonomies (#32869)
* feat: System defined taxonomies

* style: models.py moved to models/base.py

* feat: New Content System defined models

* style: Lint and migration

* fix: Fix migration error

* chore: Rebase and compile requirements

* refactor: adds ContentTaxonomyMixin for use when creating content system taxonomies

Pulls the ContentTaxonomy-specific logic into a mixin class to bring
the Content-specific logic into other Taxonony subclasses.

* fix: Tests

* test: System defined model validations

* fix: Move language taxonomy creation to openedx-learning

* style: Rename of OrganizationSystemDefinedTaxonomy

* style: nits

* chore: Update openedx-learning dependency

---------

Co-authored-by: Jillian Vogel <jill@opencraft.com>
2023-08-02 12:22:23 -07:00
Tim McCormack
8beb6277b3 Revert "Revert "temp: remove flaky tests video/transcripts/test_views.py (#32697)" (#32719)" (#32897)
This reverts commit 86eb49a7ed.
2023-08-02 16:04:46 +00:00
Piotr Surowiec
c3b7b57d8a fix: do not reinitialize the MakoService in the MakoDescriptorSystem (#32895)
Without this, Studio raises the "mako.exceptions.TemplateLookupException" with
the "Can't locate template for uri 'discussion/_discussion_inline_studio.html'"
message.
2023-08-02 09:12:18 -04:00
Moeez Zahid
df63305e24 fix: Fix Apple registration during migration (#32893) 2023-08-02 13:22:53 +05:00
Agrendalath
f6a60cdc1c fix: do not instantiate the PartitionService during XBlock validation in Studio 2023-08-01 21:24:23 +02:00
Erica Nwoga
0bde216d6f feat: added ltipiitool model (#32790)
* feat: added ltipiitool model

* feat: added ltipiitool model

* feat: created ltipiitool model

* chore: squashed ltipiitool mirgation files for agreements app.

* chore: fixed migration files
2023-08-01 11:39:25 -04:00
Yusuf Musleh
b97007e182 feat: Handle JSInput extra files when copying/pasting (#32847)
This takes into account the extra files that are usually required when
copying problems containing JSInputs. Static files such as additional
CSS and JS files needed to interact and style the problem.
2023-07-31 11:12:10 -07:00
Jesper Hodge
6598abbb6b Studio content api videos (#32803)
* refactor: extract methods to video_storage_handlers

* refactor: move private functions

* refactor: move functions to videos_storage_handlers

* refactor: asset_storage_handlers

* feat: add video api views

* feat: add video urls

* feat: add mock videos post

* refactor: mock video upload url

* fix: json extraction

* fix: url pattern for video deletion

* fix: video url views

* fix: lint

* fix: lint

* fix: tests

* fix: tests

* fix: tests

* Feat  studio content api transcripts (#32858)

* feat: add transcript endpoints

feat: add transcript upload endpoint, check that transcripts for deletion exist

fix: remove transcript credentials view cause out of scope

* fix: lint

* feat: TNL-10897 fix destroy() args to kwargs bug

---------

Co-authored-by: Bernard Szabo <bszabo@edx.org>

---------

Co-authored-by: Bernard Szabo <bszabo@edx.org>
2023-07-31 13:37:00 -04:00
stv
96699d577c build: swap default file storage _away_ from deprecated lib
The S3BotoStorage backend was deprecated in favor of the S3Boto3Storage
backend. This change updates the default backend to use the latter.

style: This re-links and rewords a relevant comment that had been
disconnected during previous refactoring.

docs: ade79308a3/docs/backends/amazon-S3.rst (migrating-from-boto-to-boto3)

Fixes: FAL-3431
Fixes: public-engineering/128
2023-07-31 15:33:27 +02:00
Jenkins
7be5246a3a chore(i18n): update translations 2023-07-30 17:04:43 -04:00
Katrina Nguyen
b94b0a8e40 Merge pull request #32870 from openedx/knguyen2/ENT-5809-version-bump
chore: version bump
2023-07-27 11:21:36 -07:00
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