Commit Graph

63346 Commits

Author SHA1 Message Date
Kristin Aoki
6dfd706bca feat: add page redirect when mfe flag enabled (#32637)
Co-authored-by: Jesper Hodge <19345795+jesperhodge@users.noreply.github.com>
2023-07-05 14:39:00 -04:00
Jesper Hodge
96f1397872 Refactor rename contentstore xblock services (#32581)
This PR addresses the renaming of the contentstore/xblock_services folder to contentstore/xblock_storage_handlers as a follow-up to PR #32282. The renaming is done to prevent naming conflicts with xblock runtime services and to make the purpose of the files more understandable. The file xblock_service.py has been renamed to view_handlers.py to better reflect its functionality.

Justification and Future Refactoring Outlook:
The xblock_storage_handlers folder contains service methods that implement the business logic for view endpoints located in contentstore/views/block.py. It is renamed to xblock_storage_handlers to reflect its responsibility of handling storage-related operations of xblocks, such as creation, retrieval, and deletion.

The view_handlers.py file includes business methods called by the view endpoints. These methods, such as handle_xblock, delete_orphans, etc., interact with the required modulestore methods, handle any errors, and aggregate and serialize data for the response.

The term 'handler' in the context of 'view_handlers.py' represents methods that facilitate business logic for view endpoints. It is critical to note the distinction between these 'handler methods' and the xblock_handler method. The xblock_handler is a view endpoint itself, residing in contentstore/views/block.py, and is well known in this context. Although its name might suggest otherwise, it is not a handler in the sense of the 'handler methods' we've defined in 'view_handlers.py'. To maintain consistency with existing naming conventions, it remains as xblock_handler.
2023-07-05 11:24:24 -04:00
Ben Warzeski
a68fd49103 fix: mathjax resize on sindow resize (#32606)
* fix: mathjax resize on sindow resize

* fix: add resize for mathjax in wiki and cms
2023-07-05 14:49:03 +00:00
Ejaz Ahmad
810bf97431 Merge pull request #32650 from openedx/eahmadjaved/ENT-7266
chore: bumping enterprise package version to 3.68.1
2023-07-05 14:03:01 +05:00
Ejaz Ahmad
29f451a94c Merge pull request #32649 from openedx/jajjibhai008/upgrade-edx-enterprise-5b7afab
feat: Upgrade Python dependency edx-enterprise
2023-07-05 13:23:50 +05:00
jajjibhai008
7ad48a3bca 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-05 08:21:07 +00:00
jajjibhai008
5b7afab0e4 chore: bumping enterprise package version to 3.68.1 2023-07-05 13:17:12 +05:00
Jody Bailey
02084fa372 feat: added endpoint for context needed for recommendations experiment (#32645)
* feat: added endpoint for context needed for recommendations experiment

* chore: Removed unnecessary decorator
2023-07-04 16:38:58 +02:00
Muhammad Adeel Tajamul
ac5b0870db feat: added support for translation in notifications (#32626) 2023-07-04 15:13:14 +05:00
github-actions[bot]
117539de3f feat: Upgrade Python dependency django (#32643)
security patch

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-07-04 12:28:08 +05:00
Muhammad Adeel Tajamul
a71c34a969 feat: added management command to delete expired notifications (#32556) 2023-07-04 11:59:54 +05:00
Feanil Patel
567704cc3a Merge pull request #32608 from openedx/feanil/small_fix
fix: Don't assume there is a context.
2023-07-03 11:29:16 -04:00
Feanil Patel
286a9cddaf Merge pull request #32559 from raju249/31696-unused-helper-functions
test: remove unused helper functions from test_views.py
2023-07-03 10:36:20 -04:00
Feanil Patel
82ee4cd4c3 Merge pull request #32611 from openedx/feanil/platform-docs
feanil/platform docs
2023-07-03 10:28:12 -04:00
Awais Ansari
e543a68990 feat: add pagination in course enrollment list API (#32546)
* feat: add pagination in course enrollment list API

* refactor: enrollment course list API

* refactor: follow best practice in course enrollment list API
2023-07-03 13:52:15 +05:00
Jenkins
dab865c4ee chore(i18n): update translations 2023-07-02 17:04:33 -04:00
Braden MacDonald
83f54aeebe refactor: Split base.in into kernel.in (required) and bundled.in (optional) (#32552)
Plus remove a few unused and indirect dependencies
2023-06-30 09:51:43 -07:00
kenclary
d6b76c800e Merge pull request #32566 from open-craft/navin/youtube-transcripts-language-codes
feat: configure acceptable language codes for youtube transcripts
2023-06-30 11:10:36 -04:00
John Nagro
6d5dcdf77a fix: improve username generation (#32613) 2023-06-30 09:47:02 -04:00
Piotr Surowiec
5c424b42af Merge pull request #32420 from open-craft/agrendalath/fc-0026-cache_runtime_services_and_wrappers
feat: reuse runtime services and wrappers between XBlocks [FC-0026]
2023-06-30 15:29:52 +02:00
Agrendalath
6a8e695a0e refactor: remove redundant masquerade handling from runtime initialization
This part was added in 3d7246ecc8.
Then, 0dd4978f37 refactored the approach, but
did not remove these lines.
2023-06-30 15:06:43 +02:00
Agrendalath
36cc415fc2 refactor: reuse services and wrappers between XBlocks 2023-06-30 15:06:43 +02:00
Piotr Surowiec
80374ed1ce Merge pull request #32357 from open-craft/agrendalath/fc-0026-field-data
feat: remove field-data binding from the runtime [FC-0026]
2023-06-30 15:06:17 +02:00
Edward Zarecor
462e8bef36 Merge branch 'master' into 31696-unused-helper-functions 2023-06-30 12:57:43 +02:00
Navin Karkera
93006b476d feat: configure acceptable language codes for youtube transcripts 2023-06-30 11:02:58 +05:30
Tim McCormack
437418d367 feat: Switch Dockerfile from npm install to npm ci; some cleanup (#32590)
Otherwise we're not really respecting the package-lock file and won't get
repeatable results.

Also:

- Clean up old error handling for npm<3. Were on npm 8 now. Probably
  can get rid of this.
- Use the shorthand `npm ci` rather than `npm clean-install` just for
  consistency with code elsewhere.
- Update comments in tests to be explicit about use of ci rather than
  install
2023-06-29 21:55:23 +00:00
connorhaugh
57fd22ba58 feat: ignore v2 xblocks in independence contract (#32602)
* feat: ignore v2 xblocks in independance contract

* docs: add documentation as to failure point
2023-06-29 16:08:14 -04:00
Feanil Patel
8c43868b52 docs: Rename swagger.yaml to lms-openapi.yaml
* Swagger was renamed to OpenAPI at some point so use the new name for
  clarity.

* Prefix with `lms` to make it clear that these are the APIs from the
  LMS and may not all be available in the CMS.
2023-06-29 15:37:10 -04:00
Feanil Patel
26262131ae docs: Remove the api docs sphinx project.
* This project was not being published anywhere.
* The previous commit that adds openapi generation capabilities to the
  `docs/guides` replaces what this was doing.
2023-06-29 15:37:10 -04:00
Feanil Patel
56cad59e97 docs: Generate rst from the existing swagger docs.
Use an existing 3rd party library to generate RST docs from the existing
swagger.yaml file.
2023-06-29 15:37:10 -04:00
Kristin Aoki
08e633d57e fix: missing and broken waffle flag links (#32587) 2023-06-29 13:21:18 -04:00
Feanil Patel
cf9c4e83bf fix: Don't assume there is a context.
Don't assume that there will be an extra `context` kwarg when using the
bookmark serializer.  We use it this way in the current code but that's
specific to us and not comon to all serializers.  There are a lot of API
documentation tools that automate introspecting serializers but they
won't know  that they have to send in a `context` to the serializer.

To make this serializer behave more like other serializers without
changing the behavior, we just need to check that the `context` value is
defined before we dig into it.  In the case that there is no `context`
we just treat it the same as if there is no `request` in the `context`.
2023-06-29 13:01:18 -04:00
Alexander J Sheehan
79a4339278 Merge pull request #32607 from openedx/asheehan-edx/bumping-enterprise-version-3.67.7
chore: bumping enterprise package version to 3.67.7
2023-06-29 12:56:20 -04:00
Jesper Hodge
799c0bf8a8 fix: problem dropdown does not cover text anymore (#32605) 2023-06-29 12:51:26 -04:00
Jansen Kantor
17c4fc03d4 feat: add course field for ORA flex peer override (#32594)
* feat: add course field for ORA flex peer override

* style: quality

* style: remove auto import
2023-06-29 12:48:33 -04:00
Alexander J Sheehan
85d06704b8 chore: bumping enterprise package version to 3.67.7 2023-06-29 16:27:36 +00:00
Yagnesh1998
751411951d feat: Remove block_structure.invalidate_cache_on_publish waffle flag … (#32517)
* feat: Remove block_structure.invalidate_cache_on_publish waffle flag depr33.

* feat: Update test_signals.py

* feat: Update signals.py

---------

Co-authored-by: Edward Zarecor <ezarecor@tcril.org>
2023-06-29 10:57:41 -04:00
Jenkins
7ef20f0b91 chore: geoip2: update maxmind geolite country database 2023-06-28 16:58:53 -04:00
Alexander J Sheehan
0302489189 Merge pull request #32596 from openedx/asheehan-edx/bumping-enterprise-version-3.67.6
chore: bumping enterprise package version to 3.67.6
2023-06-28 16:37:38 -04:00
Alexander J Sheehan
f673e8cc42 chore: bumping enterprise package version to 3.67.6 2023-06-28 20:16:39 +00:00
Jody Bailey
92301a245f fix: field adjustments to product recommendations endpoint (#32593)
* fix: field adjustments to product recommendations endpoint

* chore: formatting for files

* chore: indenting fix

* chore: removed f-strings
2023-06-28 15:46:33 +02:00
Rajendra Kadam
ad3b5610f1 test: remove unused helper functions from test_views.py
Since they were not used anywhere, it is ideal to delete them.

It would be redundant to keep them.
2023-06-28 14:35:53 +05:30
Kyle McCormick
478c301df5 docs: improve filters & events links in Hooks guide (#32588)
* point to upstream repos, not eduNEXT forks
* link to guides, not just source repos
* fix spelling of Open edX
2023-06-27 19:10:54 +00:00
Braden MacDonald
12a8d99824 feat: Copy/Paste associated static assets along with components (#32346)
* refactor: improve typing of StaticFile named tuple
* feat: copy static asset files into the clipboard
* feat: paste static assets
* feat: show notification in studio about pasted assets
* fix: HTML XBlocks would lose the editor="raw" setting when copy-pasted.
* feat: copy python_lib.zip to the clipboard when it seems to be in use
2023-06-27 12:06:43 -07:00
Alexander J Sheehan
32a3e2a94f Merge pull request #32586 from openedx/asheehan-edx/bumping-enterprise-version-3.67.5
chore: bumping enterprise package version to 3.67.5
2023-06-27 12:22:58 -04:00
Alexander J Sheehan
f34c777825 chore: bumping enterprise package version to 3.67.5 2023-06-27 15:53:24 +00:00
Awais Qureshi
4aca4d3fbb chore: Rename the bucket to bucket_name. (#32576)
https://github.com/jschneier/django-storages/blob/master/CHANGELOG.rst#1101-2020-09-13
2023-06-27 13:17:28 +05:00
Katrina Nguyen
85fee783c1 Merge pull request #32583 from openedx/openedx/knguyen2/ENT-6713
chore: edx-enterprise version bump
2023-06-26 13:00:53 -07:00
knguyen2
35cb53ad8e chore: edx-enterprise version bump 2023-06-26 19:34:06 +00:00
Kira Miller
6ab64b5a96 Merge pull request #32580 from openedx/kiram15/ENT-6882
chore: edx-enterprise version bump
2023-06-26 12:25:39 -06:00