Commit Graph

63399 Commits

Author SHA1 Message Date
Feanil Patel
dcebcc4d0d docs: Make the generated docs visible.
There is still a lot of improvements that could be made to make the
generated docs better organized.  However, before this change we were
generating the docs but they weren't in the doc tree so you couldn't
actually browse to them.  So we fix that first so that we can start
getting feedback about how to organize them.
2023-07-12 15:06:23 -04:00
Feanil Patel
50f164a6ff docs: Rename guides to concepts.
The guides map pretty closely to the concept docs in diataxis so rename
them as such to align to the standard naming we're moving to.
2023-07-12 15:06:23 -04:00
Feanil Patel
bdf9870cf7 docs: Move how-tos and references to sub-folders. 2023-07-12 15:05:15 -04:00
Feanil Patel
8682d1d95a chore: Run make compile-requirements to add sphinx-design. 2023-07-12 15:05:15 -04:00
Feanil Patel
0167b09a3b docs: Add the new sphinx-design extension.
This gives us the abuliity to add some nice responsive web components to
our docs. In particular girds and cards.
2023-07-12 15:05:15 -04:00
alangsto
cb3a0e91e9 feat: return lti launch url (#32718) 2023-07-12 14:25:59 -04:00
Diana Huang
e28bbe9446 feat: Add migrate Make command. (#32705)
To make edx-platform more consistent with other IDAs and to
help deprecate more of paver, we are adding the ability to
run `make migrate` in a local environment as a replacement
for `paver update_db`.

https://github.com/openedx/devstack/issues/1085
2023-07-12 12:47:23 -04:00
Kyle McCormick
86eb49a7ed Revert "temp: remove flaky tests video/transcripts/test_views.py (#32697)" (#32719)
This reverts commit 6b19eab038.
2023-07-12 12:00:29 -04:00
Ahtisham Shahid
cd6c754198 fix: resolved logical issues with notification task (#32724) 2023-07-12 15:21:56 +05:00
Ahtisham Shahid
4921db5995 feat: added logic to handle core notifications (#32708)
* feat: added logic to handle core notifications
2023-07-12 12:06:24 +05:00
Muhammad Adeel Tajamul
89bede4dd6 test: added tests to validate notification preference constant (#32666) 2023-07-12 11:02:51 +05:00
leangseu-edx
2025a3b55f fix: MathJax equations flickering (#32696)
* Revert "Revert "fix: mathjax resize on sindow resize (#32606)""

This reverts commit 9dac65a35a.

* fix: mathjax wrap overflow and flickering
2023-07-11 11:19:44 -04:00
Nawfal Ahmed
5c0dddd9bd fix: fix padding for mobile users in program dashboard (#32711) 2023-07-11 19:54:33 +05:00
Ahtisham Shahid
cd7e48c5d7 feat: update/create notifiction pref while sending notifications (#32665)
* feat: update user pref while sending notifications

* feat: added flag and bulk create in task
2023-07-11 18:46:41 +05:00
Awais Qureshi
cd0f925187 chore: Adding pin to avoid test failures. (#32641)
* chore: Adding pin to avoid test failures.
2023-07-11 15:00:39 +05:00
Nawfal Ahmed
84f4d2fb6f fix: ui fixes for subscription programs (#32693)
* fix: hide title for mobile users in program dashboard

* fix: fix subscription trial remaining days logic
2023-07-11 14:17:29 +05:00
Awais Ansari
aeae341559 feat: add non_editable for core notifications (#32695)
* feat: add non_editable for core notifications

* test: add test case for non_editable in core notification

* refactor: remove breakpoint from test cases
2023-07-11 12:21:04 +05:00
Jenkins
b70e3dc6ae chore(i18n): update translations 2023-07-10 18:04:53 -04:00
Dmytro
bb4beab5eb fix: Incorrect symbols on wiki create article page (#32628)
The message was being double-escaped by React with the
StatusAlertRenderer. This fixes the problem by removing the
first layer of HTML-escaping so it is only escaped once.
2023-07-10 17:25:06 -04:00
connorhaugh
00b1ce28b9 feat: add library copy management command (#32598)
This PR introduces the "copy" management command, which copies v1 libraries into v2 libraries.
2023-07-10 15:45:18 -04:00
Robert Raposa
6b19eab038 temp: remove flaky tests video/transcripts/test_views.py (#32697)
The JS tests for CMS.Views.Metadata.VideoList are
flaky and failing, often on Initialize, so the entire
file is being removed.

More details on the flakiness can be found here:
https://github.com/openedx/edx-platform/issues/32690

Private ticket for fixing:
https://2u-internal.atlassian.net/browse/CR-5904
2023-07-10 14:50:00 -04:00
Braden MacDonald
162175f0c4 chore: get rid of edx_six - not needed anymore (#32555)
* chore: get rid of edx_six - not needed anymore
* chore: remove reference to TODO that was completed.
2023-07-10 11:16:57 -07:00
Braden MacDonald
7a89f2e5d3 fix: remove deprecated django-debug-toolbar Logging Panel (#32553) 2023-07-10 11:16:16 -07:00
Mohamed Akram
e770d8beef test: check modulestore settings deprecations (#32601) 2023-07-10 18:59:18 +02:00
Feanil Patel
f45af063f8 Merge pull request #32612 from openedx/feanil/merge_tech_docs
docs: Add feature toggle and settings to the guide.
2023-07-10 11:07:07 -04:00
Navin Karkera
051ecb4dc7 feat: temporary setting to configure topic name for xblock events 2023-07-10 19:54:35 +05:30
Awais Qureshi
b528a27237 fix: upgrading celery version and fixing tests. (#32468)
* fix: upgrading celery version and fixing tests.

---------

Co-authored-by: edX requirements bot <49161187+edx-requirements-bot@users.noreply.github.com>
Co-authored-by: zubairshakoorarbisoft <zubair.shakoor@arbisoft.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: awais786 <awais786@users.noreply.github.com>
2023-07-10 18:36:30 +05:00
ayesha waris
c5c52a8f9e fix: changes count_by_app_name in counts api to return apps with zero… (#32629)
* fix: changes count_by_app_name in counts api to return apps with zero unseen count

* refactor: initialised count_by_app_name_dict with zeros
2023-07-10 16:14:02 +05:00
Saleem Latif
027c6a1647 Merge pull request #32679 from openedx/saleem-latif/upgrade-edx-enterprise-ee87173
feat: Upgrade Python dependency edx-enterprise
2023-07-10 12:57:27 +05:00
saleem-latif
18359a8ba3 feat: Upgrade Python dependency edx-enterprise
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/saleem-latif/ENT-7303`
2023-07-10 11:47:37 +05:00
leangseu-edx
9dac65a35a Revert "fix: mathjax resize on sindow resize (#32606)"
This reverts commit a68fd49103.
2023-07-07 15:20:47 -04:00
Braden MacDonald
e705820d0d refactor: Remove unneeded filter from static asset copy/paste code. (#32660) 2023-07-07 09:47:06 -07:00
Robert Raposa
6d6893ca56 Merge pull request #32638 from openedx/robrap/restore-teams-test
test: fix team tests for multiple courses
2023-07-07 11:08:07 -04:00
Nathan Sprenkle
452433a731 feat: configurable roll-forward of flex grading (#32584)
Add ability to roll-forward ORA flex peer grading feature. Where enabled
for an Organization or course, flex peer grading will be turned on at the
course level for new course runs and course reruns. Where disabled,
a new course or course rerun will preserve existing / default setting
value.
2023-07-07 10:42:58 -04:00
Jansen Kantor
87c2e09bfd fix: public video page missing sass (#32682) 2023-07-07 14:04:09 +00:00
Robert Raposa
0a4bc11d8c test: fix team tests for multiple courses
The original tests looked like helpers,
but we are guessing that they were supposed
to be tests.

Additionally, one test had a small bug as written.
It would be more resilient to actually parse the
JSON, but that work is being left for a later time.
For now, it works, but is not resilient.

The original PR can be found here:
https://github.com/openedx/edx-platform/pull/10804
2023-07-07 09:34:17 -04:00
Mohammad Ahtasham ul Hassan
ee871730c8 feat: add course_status utility (#32545)
* feat: add course_status utility
2023-07-07 12:38:05 +05:00
John Nagro
74e3bb9fd4 fix: correct bug in sapsf country to code mapping (#32675) 2023-07-06 20:28:38 +00:00
Jansen Kantor
7d27a66a60 fix: videoblockpreview to videoblockdisplay (#32673)
#32592 changed some webpack loading, and renamed the video display bundle from VideoBlockPreview to VideoBlockDisplay but the code for the public view did not include the updated name.
2023-07-06 14:55:34 -04:00
Kira Miller
b9105a45d9 feat: upgrade github action to support pinned dependencies (#32619)
* fix: edx-enterprise downgrade

* fix: update script

* feat: upgrade action to support pinned dependecies

* Update .github/workflows/upgrade-one-python-dependency.yml

---------
2023-07-06 12:36:19 -06:00
Kyle McCormick
f4540c30e8 fix: flow ?site_theme down through Studio container preview
In ~Palm and earlier, all built-in XBlock Sass was included into CMS
(and LMS) styles before being compiled. So, if a site theme was meant to
affect built-in XBlock styling, those changes would be manifested
directly in the base CMS CSS that is included into every single Studio
page. When the user provided the `?site_theme` querystring parameter,
which is intended to allow devs & admins to view Studio through a given
theme, CMS would look up the given theme and serve the corresponding
base CMS CSS, which would affect the built-in XBlocks views (as
expected).

After ~Palm, built-in XBlocks styles are handled more similarly to to
pure XBlock styles, in that they are only requested when CMS tries to
render the block. In Studio, blocks are not rendered by the original
request, but by a subsequent AJAX request to the `/container_preview`
enpoint. Thus, passing the `?site_theme` query parameter to the original
request will apply the given theme to Studio's chrome, but the theme
will _not_ apply to built-in XBlock views, whose CSS is now loaded via
async request.

To fix this, we simply pass Studio's querystring parameters (including
`?site_theme`) along to the `/container_view` AJAX request. This will
cause CMS to correctly serve the built-in XBlock CSS from the theme
specified by `?site_theme`, rather than whatever the current theme is.

Part of: https://github.com/openedx/edx-platform/issues/32292
2023-07-06 11:58:06 -04:00
Kyle McCormick
127c5c1ce2 fix: make built-in XBlock Sass theme-aware again
In ~Palm and earlier, all built-in XBlock Sass was included into LMS and CMS
styles before being compiled. The generated CSS was coupled together with
broader LMS/CMS CSS. This means that comprehensive themes have been able to
modify built-in XBlock appearance by setting certain Sass variables. We say that
built-in XBlock Sass was, and is expected to be, "theme-aware".

Shortly after Palm, we decoupled XBlock Sass from LMS and CMS Sass [1]. Each
built-in block's Sass is now compiled into two separate CSS targets, one for
block editing and one for block display. The CSS, now located at
`common/static/css/xmodule`, is injected into the running Webpack context with
the new `XModuleWebpackLoader`. Built-in XBlocks already used
`add_webpack_to_fragment` in order to add JS Webpack bundles to their view
fragments, so when CSS was added to Webpack, it Just Worked.

This unlocked a slieu of simplifications for static asset processing [2];
however, it accidentally made XBlock Sass theme-*unaware*, or perhaps
theme-confused, since the CSS was targeted at `common/static/css/xmodule`
regardless of the theme. The result of this is that **built-in XBlock views will
use CSS based on the Sass variables _last theme to be compiled._** Sass
variables are only used in a handful of places in XBlocks, so the bug is subtle,
but it is there for those running off of master. For example, using edX.org's
theme on master, we can see that there is a default blue underline in the Studio
sequence nav [3]. With this bugfix, it becomes the standard edX.org
greenish-black [4].

This commit makes several changes, firstly to fix the bug, and secondly to leave
ourselves with a more comprehensible asset setup in the `xmodule/` directory.

* We remove the `XModuleWebpackLoader`, thus taking built-in XBlock Sass back
  out of Webpack.

* We compile XBlock Sass not to `common/static/css/xmodule`, but to:

  * `[lms|cms]/static/css` for the default theme, and
  * `<THEME_ROOT>/[lms|cms]/static/css`, for any custom theme.

  This is where the comprehensive theming system expects to find themable
  assets. Unfortunately, this does mean that the Sass is compiled twice, both
  for LMS and CMS. We would have liked to compile it once to somewhere in the
  `common/`, but comprehensive theming does not consider `common/` assets to be
  themable.

* We split `add_webpack_to_fragment` into two more specialized functions:
  * `add_webpack_js_to_fragment` , for adding *just* JS from a Webpack bundle,
    and
  * `add_sass_to_fragment`, for adding static links to CSS compiled themable
    Sass (not Webpack). Both these functions are moved to a new module
    `xmodule/util/builtin_assets.py`, since the original module
    (`xmodule/util/xmodule_django.py`) didn't make a ton of sense.

* In an orthogonal bugfix, we merge Sass `CourseInfoBlock`, `StaticTabBlock`,
  `AboutBlock` into the `HtmlBlock` Sass files. The first three were never used,
  as their styling was handled by `HtmlBlock` (their shared parent class).

* As a refactoring, we change Webpack bundle names and Sass module names to be
  less misleading:
  * student_view, public_view, and author_view: was `<Name>BlockPreview`, is now
    `<Name>BlockDisplay`.
  * studio_view: was `<Name>BlockStudio`, is now `<Name>BlockEditor`.

* As a refactoring, we move the contents of `xmodule/static` into the existing
  `xmodule/assets` directory, and adopt its simper structure. We now have:
  *  `xmodule/assets/*.scss`: Top-level compiled Sass modules. These could be
     collapsed away in a future refactoring.
  * `xmodule/assets/<blocktype>/*`: Resources for each block, including both JS
    modules and Sass includes (underscore-prefixed so that they aren't
    compiled). This structure maps closely with what externally-defined XBlocks
    do.
  * `xmodule/js` still exists, but it will soon be folded into the
    `xmodule/assets`.

* We add a new README [4] to explain the new structure, and also update a
  docstring in `openedx/lib/xblock/utils` which had fallen out of date with
  reality.

* Side note: We avoid the term "XModule" in all of this, because that's
  (thankfully) become a much less useful/accurate way to describe these blocks.
  Instead, we say "built-in XBlocks".

Refs:
1. https://github.com/openedx/edx-platform/pull/32018
2. https://github.com/openedx/edx-platform/issues/32292
3. https://github.com/openedx/edx-platform/assets/3628148/8b44545d-0f71-4357-9385-69d6e1cca86f
4. https://github.com/openedx/edx-platform/assets/3628148/d0b7b309-b8a4-4697-920a-8a520e903e06
5. https://github.com/openedx/edx-platform/tree/master/xmodule/assets#readme

Part of: https://github.com/openedx/edx-platform/issues/32292
2023-07-06 11:58:06 -04:00
Zachary Hancock
ab3d322bc9 feat: update edx-proctoring JS library (#32668) 2023-07-06 10:25:15 -04:00
alangsto
6f00f63da6 feat: add course waffle flag for learner assistant (#32657) 2023-07-06 10:19:58 -04:00
Yagnesh1998
a68a1ed434 feat: Removed JWT_AUTH_REFRESH_COOKIE in depr. (#32664) 2023-07-06 09:14:30 -04:00
Awais Qureshi
516ad77985 Upgrade drf (#32667)
* chore: upgrading drf.

* feat: Upgrade Python dependency djangorestframework (#32563)

Upgrading drf to latest version.

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>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: awais786 <awais786@users.noreply.github.com>
2023-07-06 18:02:21 +05:00
Nawfal Ahmed
139d0b2392 feat: sort subscription programs in program dashboard (#32651) 2023-07-06 09:01:40 +00:00
Ahtisham Shahid
b477a20ad2 Added notifications for discussions events (#32432)
* feat: added notifications for discussions app

* feat: added unit tests for handler

* feat: updated openedx-events package

* fix: updated notification creation logic and tests

* refactor: updated openedx-event version and event name

* refactor: moved logic to separate methods
2023-07-06 13:33:20 +05:00
Awais Ansari
67b97705c8 refactor: update non-editable into snake case non_editable (#32654) 2023-07-06 12:17:29 +05:00
Jenkins
5ccdd2126f chore: geoip2: update maxmind geolite country database 2023-07-05 16:59:02 -04:00