Commit Graph

63433 Commits

Author SHA1 Message Date
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
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
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
SaadYousaf
51c826f41d feat: add tracking events for notifications app 2023-07-13 16:24:33 +05:00
edX requirements bot
f2d30d9fbd chore: Updating Python Requirements (#32729) 2023-07-13 13:39:32 +05:00
Mohammad Ahtasham ul Hassan
7fe5229bbb feat: Add new entitlement expiration endpoint (#32677)
* feat: add new entitlements expiration endpoint
2023-07-13 13:38:20 +05:00
Jenkins
5379daf83e chore: geoip2: update maxmind geolite country database 2023-07-12 17:08:57 -04:00
Feanil Patel
595501f8cf Merge pull request #32614 from openedx/feanil/reorg_guides
feanil/reorg guides
2023-07-12 16:02:03 -04:00
Feanil Patel
f60735a4eb Merge pull request #32573 from open-craft/yusuf-musleh/list-courses-details-by-key
feat: list courses details by keys
2023-07-12 16:01:38 -04:00
Feanil Patel
eba2856293 build: Re-org docs deps.
Some doc buildig deps were in development.in explicitly while others
weren't.  Update development.in to pull in doc.txt and then remove
direct additions of the doc requirements from development.in
2023-07-12 15:06:23 -04:00
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
Yusuf Musleh
4ad8ba1b41 feat: list courses details by keys
This adds the ability to get a list of detailed courses based on their
keys provided in the newly added `keys` query param in the `GET /courses/v1/courses/`
endpoint.
2023-07-12 17:22:38 +03: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