Commit Graph

65817 Commits

Author SHA1 Message Date
Feanil Patel
3e2d78b37b feat!: Move the docs out of the guides subdirectory.
Now that the content in `guides` is all of the edx-platform docs, move
them all into the top-level docs directory to reduce confusion.

BREAKING CHANGE: Guides are now just docs.  This will require updating
the publishing settings so that RTD looks for the conf in a different
location.
2023-07-18 14:31:49 -04:00
Feanil Patel
1e27084e35 feat!: Drop the separate technical docs.
BREAKING CHANGE: The technical docs will not be published independent of
the rest of the edx-platform docs.
2023-07-18 14:29:28 -04:00
Zachary Hancock
d1da82a325 fix: proctortrack version update to fix end exam error (#32762) 2023-07-18 13:17:00 -04:00
Feanil Patel
8780e606f7 Merge pull request #32768 from openedx/feanil/redirect_technical_guides
Redirect Technical docs pages to the new edx-platform docs site.
2023-07-18 10:52:13 -05:00
Kyle McCormick
4aedeb8988 refactor: remove XModule JS from Django Pipeline (#32530)
`module-js` and `module-descriptor-js` are old JavaScript group
indicators, left over from when we managed XModule assets via Django
Pipeline. We would like to get rid of them in order to make it easier to
build XModule JS without using Python.

There is one single usage of `module-js` in the entire platform (the
rest have been replaced with Webpack references, which is the
less-outdated way of managing XModule assets :). The lone `module-js`
reference was added in 2013 [1] so that circuit diagrams would display
in the course wiki. However, the ability to render circuits in the wiki
was removed in 2015 [2], so it is safe to remove the reference.

There is also one single usage of `module-descriptor-js`. It's in the
legacy bulk email editor, which hackily cribs from the old HtmlBlock
editor. Fortunately, we are able to simply replace the Django Pipeline
reference with the equivalent XModule JS Webpack bundle. (Note: The old
email editor is currently still supported, but is currently being
replaced by frontend-app-communications, so this hack will be gone
eventually).

Finally, this commit also sneaks in one styling fix: it adds the
HtmlBlockEditor CSS back to the aforementioned legacy bulk email page.
The missing CSS was causing a read-only 1-line codemirror editor to
appear below the HTML editor [3]. This bug was introduced during the
original XModule SCSS decoupling [4], which removed builtin block CSS
from the LMS-wide bundle, thus removing the HTML editor CSS from the
bulk email page. We imagine that nobody noticed because the bug only
exists in master (not Palm) and frontend-app-communications seems to be
globally enabled on edx.org. As a simple fix, we add the new CSS link to
the legacy bulk email page, and it renders fine again [5].

References:

1. 3fc59b3da5
2. https://github.com/openedx/edx-platform/pull/10324
3. Before fix: https://github.com/openedx/edx-platform/assets/3628148/25fc41b2-403d-4339-8c49-0b04664dfa02
4. https://github.com/openedx/edx-platform/pull/32018
5. After fix: https://github.com/openedx/edx-platform/assets/3628148/9a5d74f1-cc83-4ebe-8f0c-ee270f7721b8

Part of: https://github.com/openedx/edx-platform/issues/32481
2023-07-18 09:32:12 -04:00
Emily Rosario-Aquin
6ff8538dc6 Merge pull request #32595 from openedx/ea/ent-7031
feature: upgrade course enrollment from audit to verified
2023-07-18 08:04:58 -05:00
Nawfal Ahmed
8cd0cb0d07 feat: get subscription upsell values from env (#32770) 2023-07-18 17:43:39 +05:00
Mubbshar Anwar
6562fad7df revert: Removing save_far_later models (#32712)
This is the second phase of removing save_for_later app in which migrations would be run to drop the DB tables.

VAN-1451
2023-07-18 17:07:28 +05:00
Mubbshar Anwar
2e2687ad38 revert: Removing the save_far_later (#32710)
Removing the save_for_later app after analysing the experiment results. We are not going to make this feature permanent.

VAN-1451
2023-07-18 15:35:27 +05:00
Ahtisham Shahid
13a5cfc66f fix: use search instead of list for users in notification admin (#32769) 2023-07-18 12:13:03 +05:00
Feanil Patel
83265e0791 chore: Run make upgrade. 2023-07-17 17:23:28 -04:00
Feanil Patel
74887d7b46 build: Update make upgrade order.
Now that doc.txt depends on base.txt, update the order in which we run
`make upgrade` to generate the docs requirmeents file.
2023-07-17 17:22:21 -04:00
Feanil Patel
e644ade6df docs: Redirect all technical doc pages.
We publish the two pages that were being published under here to the new
edx-platform docs under docs.openedx.org so update this doc site to
redirect to that site for all pages.

Once this version has been published, we should be safe to remove this
doc project from the platform and all future changes should go through
the single edx-platform docs site.
2023-07-17 17:05:26 -04:00
Feanil Patel
238db45f84 Merge pull request #32752 from openedx/feanil/rtd_test_branch
Update to allow RTD to build these Docs
2023-07-17 15:45:32 -05:00
Emily Aquin
134b4bcff6 feat: upgrade course enrollment from audit to verified 2023-07-17 20:11:06 +00:00
Braden MacDonald
9b9b88df52 chore: remove some usages of six (Python2 compat) (#32554)
* get rid of six.text_type(s)
* get rid of six.b()
* get rid of six.string_types
* get rid of six.PY2/six.PY3
* get rid of six.iteritems() and six.viewvalues()
2023-07-17 12:18:43 -07:00
Kyle McCormick
5060ec5e1e revert: build: copy from node_modules using NPM postinstall hook, not Paver (#32766)
Reverts openedx/edx-platform#32717 since it is breaking the Docker build,
both in the edx-platform CI, and for Tutor Nightly.

    edx@0.1.0 postinstall
    scripts/copy-node-modules.sh

    sh: 1: scripts/copy-node-modules.sh: not found

The problems seems to be that `npm install` is run before `scripts/`
is copied in, but the new post-install hook counts on
`scripts/copy-node-modules.sh` existing.

This reverts commit 4b64d8342d.
2023-07-17 14:34:55 -04:00
Kyle McCormick
95e0cdef28 Revert "build: copy from node_modules using NPM postinstall hook, not Paver (#32717)"
This reverts commit 4b64d8342d.
2023-07-17 14:06:05 -04:00
Feanil Patel
1de6ff7ad2 chore: Run make upgrade 2023-07-17 14:01:16 -04:00
Feanil Patel
90c4155509 docs: Don't build certain doc strings for now.
We ran into memory issues at RTD so skip the xmodule, cms and common
docs for now so we can get some of the stuff up.  We can come back to it
later once we make things better.
2023-07-17 14:01:16 -04:00
leangseu-edx
df6c0fc69f fix: work around existing css that fail to draw mathjax (#32764) 2023-07-17 13:43:17 -04:00
Kyle McCormick
4b64d8342d build: copy from node_modules using NPM postinstall hook, not Paver (#32717)
During the review of ADR 17 [1], Régis pointed out [2] that the shell script
which replaces Paver's `process_npm_assets`  could be automatically invoked as
an NPM post-install hook, ensuring that the step is seamlessly executed whenever
`npm install` is run. I had avoided using that suggestion, as I worried that it
would make it harder to move node_modules out of the edx-platform directory in
Tutor's openedx image.

Since then, two things have changed. Firstly, Tutor v16's new persistent mounts
interface [3] has lessened the importance of moving node_modules. Secondly, I
have realized that using a post-install hook would not preclude us from
modifying the underlying script (scripts/copy-node-modules.sh) to look in an
alternative location for node_modules, should that end up being something we
want to do.

This commit modifies the ADR based on those findings, stubs out Paver's
`process_npm_assets`, and adds the suggested post-install hook and replacement
Bash script.

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/31790#discussion_r1122802492
3. https://github.com/overhangio/tutor/blob/master/CHANGELOG.md#v1600-2023-06-14

Part of: https://github.com/openedx/edx-platform/issues/31604
2023-07-17 13:26:58 -04:00
David Ormsbee
53718094a5 fix: update Studio DEFAULT_FILE_STORAGE to s3boto3
s3boto is no longer a supported backend in django-storages, so this was
causing failues on startup when trying to run with the tutor-minio
plugin.
2023-07-17 11:46:09 -04:00
Mohammad Ahtasham ul Hassan
06923c7948 feat: use username for course completion API instead of lms_user_id (#32761) 2023-07-17 20:17:12 +05:00
Feanil Patel
a44336057d build: Install edx-platform as a part of the docs setup. 2023-07-17 10:49:44 -04:00
Feanil Patel
376211950f build: Add base requirements to docs.
If we want to build autodocs from the code, we need the dependencies of
the code installed as a part of the docs build.
2023-07-17 10:49:44 -04:00
Muhammad Umar Khan
3b1ff5cda8 build: add pymemcache dependency (#32748)
* build: add pymemcache dependency

* feat: Upgrade Python dependency pymemcache (#32749)

build: add pymemcache dependency

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-07-17 17:20:34 +05:00
Yagnesh1998
6e8c10c791 Merge branch 'openedx:master' into edx-depr31 2023-07-17 15:54:46 +05:30
github-actions[bot]
bc98d9c273 feat: Upgrade Python dependency pip-tools (#32760)
build: update pip-tools

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>
2023-07-17 14:43:27 +05:00
Mohammad Ahtasham ul Hassan
1af9803cc0 fix: fix revocation utility comparison (#32751)
* fix: fix revocation utility comparison
2023-07-15 00:14:19 +05:00
Mohammad Ahtasham ul Hassan
34766474c0 fix: fix entitlement revocation task (#32750) 2023-07-14 20:12:59 +05:00
github-actions[bot]
6ab06502e0 feat: Upgrade Python dependency lti-consumer-xblock (#32747)
fix: broken lms function call in LTI xblock

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

Co-authored-by: Zacharis278 <Zacharis278@users.noreply.github.com>
2023-07-14 14:29:03 +00:00
Mohammad Ahtasham ul Hassan
024096a589 temp: add temporary logging for entitlement revocation (#32746)
* temp: add temporary logging for entitlement revocation
2023-07-14 16:04:17 +05:00
Awais Ansari
5d72ba3518 feat: add show_preference flag in course enrollment API response (#32726)
* feat: add show_preference flag in course enrollment API response

* refactor: fix lint issue in get_paginated_response
2023-07-14 12:26:49 +05:00
Ahtisham Shahid
eebd7d236b fix: added correct url in notification content_url (#32725)
* fix: added correct URL in notification content_url
* fix: updated logic to compare user ids
2023-07-14 10:44:14 +05:00
Kyle McCormick
24130fe260 test: disable docs build in CI, for now (#32741)
@feanil is overhauling the docs structure of edx-platform currently.
Recently, a change he made upped the docs build time from <15mins
to >40mins. Rather than revert the changes he is making, we're going
to take the docs build check out of CI for now. He plans to re-enable
the build check, but as a ReadTheDocs build, not a GitHub Action.
He's actively working on the docs, so he's not worried about any
regressions that may pop up while the check is disabled.

It's worth noting that the current docs check does not actually
publish its output anywhere.
2023-07-13 14:46:03 -04:00
Feanil Patel
b2e2655c3b Merge pull request #32735 from openedx/feanil/add_redirecting
Prep guides to replace "Technical Docs" by adding redirecting.
2023-07-13 14:36:10 -04:00
Hamzah Ullah
e9f096fc73 chore: bumping enterprise package version to 4.0.0 (#32731) 2023-07-13 18:32:14 +00:00
Diana Huang
70822203a1 feat: Update migration command. (#32728)
We are planning on deprecating paver,
starting with paver update_db. This replaces a call
to paver with its replacement, `make migrate`.

https://github.com/openedx/devstack/issues/1085
2023-07-13 14:11:33 -04:00
Alexander J Sheehan
4eac3ef507 Merge pull request #32738 from openedx/alex-sheehan-edx/upgrade-edx-enterprise-472104a
feat: Upgrade Python dependency edx-enterprise
2023-07-13 13:37:18 -04:00
alex-sheehan-edx
0ca7ec23da feat: Upgrade Python dependency edx-enterprise
integrated channels content exporter sanitizing delete payloads

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2023-07-13 17:17:10 +00:00
Piotr Surowiec
fa06be106e Revert "feat: remove field-data binding from the runtime [FC-0026]" (#32740)
* Revert "feat: remove `field-data` service from runtime initialization"

This reverts commit 6c435bb68c.

* Revert "feat: remove field data binding from the runtime"

This reverts commit 5f46ea52cd.
2023-07-13 13:04:02 -04:00
Feanil Patel
9707fe5164 chore: Run make upgrade 2023-07-13 12:10:11 -04:00
Feanil Patel
b1f0619152 docs: Manually add some redirects.
Since we want to replace the existing technical docs with this guides
project and we already build the technical docs into this project now.
Adding these redirects will allow it to be a drop-in replacement for the
existing published technical docs project.
2023-07-13 12:10:11 -04:00
Feanil Patel
cee0e75566 docs: Add config for redirecting pages.
We want to be able to move pages around and have sphinx automatically
redirect to the now location when that happens.  This will allow us to
re-organize safely as we figure out the best way to layout the
documentation.
2023-07-13 12:10:11 -04:00
Diana Huang
472104a1a6 fix: Add pkg-config to other package install block. (#32732)
We are still seeing issues running devstack provisioning
of LMS because it's missing pkg-config. We believe this might
be the location we need to add the package to.
2023-07-13 11:40:14 -04:00
Mohammad Ahtasham ul Hassan
00f049b9e9 fix: fix course completion utility (#32734) 2023-07-13 20:12:02 +05:00
Leangseu Kim
aa987c3c0a feat: add open responses card to page and resources 2023-07-13 10:35:23 -04:00
Piotr Surowiec
c6bd98e51a Revert "refactor: reuse services and wrappers between XBlocks" (#32730)
This reverts commit 36cc415fc2.
2023-07-13 10:05:34 -04:00
Shahbaz Shabbir
f6071490e8 feat: add a command to fetch unsubscribed emails from Braze 2023-07-13 18:13:14 +05:00