Commit Graph

65547 Commits

Author SHA1 Message Date
hamzawaleed01
2ea6c25e44 feat: add PA role 2024-08-12 16:35:22 +05:00
Muhammad Adeel Tajamul
5aa69589c4 feat: added truncate and alert in notification (#35214) 2024-08-05 06:08:19 +05:00
Eemaan Amir
c135fddd55 fix: removed extra space and colon from ORA notification content (#35206) 2024-08-02 12:22:34 +05:00
Chris Chávez
2788f2bc3b feat: New fields in library v2 details API view (#35091) 2024-08-01 11:50:13 -07:00
Deborah Kaplan
a7f6cf160c feat: removing the from the retirement pipeline (#35215)
although the demographics IDA has not been entirely deprecated as yet,
it is about to be, so removing from the retirement pipeline.
2024-08-01 13:23:50 -04:00
Jillian
20f7dbda7a fix: content search last_published date [FC-0059] (#35195)
* fix: use versioning.last_publish_log for components
* chore: bump openedx-learning to 0.10.1
2024-08-02 02:48:31 +09:30
Feanil Patel
2ba6fd5f69 Merge pull request #35212 from openedx/feanil/geoip2-bot-update-country-database-0359d52
Update GeoLite Database
2024-08-01 10:55:27 -04:00
feanil
73c3211c77 chore: geoip2: update maxmind geolite country database 2024-08-01 03:06:57 +00:00
Tim McCormack
0359d5204d fix: Prevent error page recursion (#35209)
We sometimes see rendering errors in the error page itself, which then
cause another attempt at rendering the error page. I'm not sure _exactly_
how the loop is occurring, but it looks something like this:

1. An error is raised in a view or middleware and is not caught by
   application code
2. Django catches the error and calls the registered uncaught error
   handler
3. Our handler tries to render an error page
4. The rendering code raises an error
5. GOTO 2 (until some sort of server limit is reached)

By catching all errors raised during error-page render and substituting in
a hardcoded string, we can reduce server resources, avoid logging massive
sequences of recursive stack traces, and still give the user *some*
indication that yes, there was a problem.

This should help address https://github.com/openedx/edx-platform/issues/35151

At least one of these rendering errors is known to be due to a translation
error. There's a separate issue for restoring translation quality so that
we avoid those issues in the future (https://github.com/openedx/openedx-translations/issues/549)
but in general we should catch all rendering errors, including unknown
ones.

Testing:

- In `lms/envs/devstack.py` change `DEBUG` to `False` to ensure that the
  usual error page is displayed (rather than the debug error page).
- Add line `1/0` to the top of the `student_dashboard` function in
 `common/djangoapps/student/views/dashboard.py` to make that view error.
- In `lms/templates/static_templates/server-error.html` replace
  `static.get_platform_name()` with `None * 7` to make the error template
  itself produce an error.
- Visit <http://localhost:18000/dashboard>.

Without the fix, the response takes 10 seconds and produces a 6 MB, 85k
line set of stack traces and the page displays "A server error occurred.
Please contact the administrator."

With the fix, the response takes less than a second and produces three
stack traces (one of which contains the error page's rendering error).
2024-07-31 17:36:08 +00:00
github-actions[bot]
46c972eb15 feat: Upgrade Python dependency edx-enterprise (#35205)
fix: serialize 'course_key' from the CourseDetails model by @brobro10000 in #2185

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

Co-authored-by: brobro10000 <82611798+brobro10000@users.noreply.github.com>
2024-07-30 15:02:33 +00:00
Hamza Waleed
657a138d85 Merge pull request #35204 from openedx/hamzawaleed01/upgrade-edx-enterprise-39dd3c0
feat: Upgrade Python dependency edx-enterprise
2024-07-30 18:30:36 +05:00
hamzawaleed01
459b0a4907 feat: Upgrade Python dependency edx-enterprise
created migration to create a system-wide enterprise role named `enterprise_provisioning_admin`.

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-07-30 12:54:43 +00:00
Awais Qureshi
39dd3c002b feat: converting existing api to drf base api. (#35039)
Adding generic permission class. Added standard authentication classes.
2024-07-30 13:18:49 +05:00
Eemaan Amir
085a2f5815 refactor: deprecated course update notification waffle flag (#35190) 2024-07-30 11:57:51 +05:00
Kristin Aoki
8d0ada54c4 feat: add waffle flag for beta testing new problem editor parser (#35184)
* feat: add waffle flag for beta testing new problem editor parser

* chore: remove commented out code

* fix: failing test
2024-07-26 12:00:42 -04:00
Deborah Kaplan
089b34a6bf feat: removing the demographics application stage 2 (#35186)
* removing the application folder
* removing references in all other files

FIXES: APER-3560
2024-07-26 11:13:35 -04:00
Muhammad Umar Khan
e9e4a3d041 feat!: upgrade pymongo (#35179) 2024-07-26 15:34:17 +05:00
MueezKhan246
96fb549994 Merge pull request #35187 from openedx/MueezKhan246/upgrade-edx-enterprise-12569b4
feat: Upgrade Python dependency edx-enterprise
2024-07-26 14:38:13 +05:00
MueezKhan246
7620c434a5 feat: Upgrade Python dependency edx-enterprise
fixed search fetch crashing because of server taking too long for api request logs

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-07-26 08:31:53 +00:00
Muhammad Anas
3b8973ad01 fix: disable submit button for archived courses (#34920)
* fix: disable submit button for archived courses
2024-07-26 10:52:32 +05:00
Deborah Kaplan
12569b459f feat: removing djangoapp demographics, step 1 (#35182)
* feat: removing djangoapp `demographics`, step 1

This step removes the models, the references to the models, and adds a
migration to drop both tables  (`HistoricalUserDemographics`  didn't
have a corresponding model but was still a valid table).

Once this has deployed, this will be removed from `INSTALLED_APPS` and
completely removed.

No other apps  in the repository currently reference this djangoapp  in
code or tables.

FIXES: APER-3560
2024-07-25 19:06:24 +00:00
Jillian
6b5d812d38 feat: adds sortable fields to studio content search index (#35103) 2024-07-25 18:18:49 +00:00
Daniel Valenzuela
78b691b56a refactor: inheritable authoring mixin callbacks for editing & duplication (#33756) 2024-07-25 10:30:37 -07:00
Rômulo Penido
238dca732e fix: skip block indexing if it raises an error while loading (#35139)
* fix: skip block indexing if it raises an error while loading
* test: add tests to the issue
2024-07-26 02:15:57 +09:30
Feanil Patel
88c3507551 Merge pull request #35181 from openedx/feanil/fix_bad_merge
fix: Remove errant pluses from a bad merge.
2024-07-25 11:58:06 -04:00
Feanil Patel
1fa8e07f1c style: Fix a pylint and other style violations. 2024-07-25 11:06:17 -04:00
Feanil Patel
68ef001c91 fix: Remove errant pluses from a bad merge. 2024-07-25 10:24:36 -04:00
Feanil Patel
cb729a3ced Merge commit from fork
fix: libraries across orgs
2024-07-25 10:12:57 -04:00
connorhaugh
25437d2a72 docs: imporved comment 2024-07-25 10:12:16 -04:00
connorhaugh
df635e0fae fix: libraries across orgs 2024-07-25 10:12:16 -04:00
Feanil Patel
ff77964414 Merge commit from fork
fix: cohorts data can be private
2024-07-25 10:08:25 -04:00
Muhammad Umar Khan
5198496703 Revert "feat!: upgrade pymongo (#34675)" (#35178)
This reverts commit cbd4904e1b.
2024-07-25 18:42:03 +05:00
Muhammad Umar Khan
cbd4904e1b feat!: upgrade pymongo (#34675) 2024-07-25 16:03:06 +05:00
Eemaan Amir
03a8f5daf7 refactor: refactored notifications app and removed unused code (#35160) 2024-07-25 11:09:00 +05:00
Tim McCormack
f0507b7fc0 fix: Delete translations more conservatively (#35169)
This was deleting `conf/locale/en/LC_MESSAGES/.gitignore` which was
introduced in https://github.com/openedx/edx-platform/pull/34628 such that
`make pull_translations` (which depends on `clean_translations`) was
leaving the git working directory dirty.

Deleting just the mo/po files will avoid this.

Relates to https://github.com/edx/edx-arch-experiments/issues/732
2024-07-24 20:50:07 +00:00
Feanil Patel
baf5de2097 Merge pull request #35130 from openedx/repo_checks/ensure_workflows
Update standard workflow files.
2024-07-24 10:53:40 -04:00
Awais Ansari
1fb20b3598 feat: update account verification email context (#35165) 2024-07-24 14:40:58 +05:00
Muhammad Adeel Tajamul
ce290db4c1 feat: added snowflake events for email notifications (#35158) 2024-07-24 14:39:02 +05:00
MueezKhan246
188be30e35 Merge pull request #35168 from openedx/MueezKhan246/upgrade-edx-enterprise-e12ec1b
feat: Upgrade Python dependency edx-enterprise
2024-07-24 13:23:18 +05:00
jawad khan
b77b90a344 fix: Enable courseware access api for all types of course(expired, cl… (#35155)
* fix: Enable courseware access api for all types of course(expired, closed etc)
2024-07-24 01:40:41 +05:00
Juliana Kang
40ddfeb3b8 feat: Add override on percentage config to the First Purchase Discount (#35167)
REV-4098
2024-07-23 15:43:34 -04:00
MueezKhan246
726835e266 feat: Upgrade Python dependency edx-enterprise
fixed 500 error for search filter for api request logs in admin view

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-07-23 17:42:21 +00:00
Kristin Aoki
896b011e88 fix: downgrade django-storages to 1.14.3 (#35156)
* fix: downgrade django-storages to 1.14.3

* fix: change max version

* feat: Recompile Python dependencies (#35164)

Commit generated by workflow `openedx/edx-platform/.github/workflows/compile-python-requirements.yml@refs/heads/master`

Co-authored-by: KristinAoki <42981026+KristinAoki@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-23 13:15:01 -04:00
Muhammad Adeel Tajamul
e12ec1b153 feat: added group_by_id field in notifications model (#35137) 2024-07-23 14:28:56 +05:00
Katrina Nguyen
7ae80be815 Merge pull request #35154 from openedx/katrinan029/upgrade-edx-enterprise-a196977
feat: Upgrade Python dependency edx-enterprise
2024-07-22 14:23:29 -07:00
katrinan029
d35d13b733 feat: Upgrade Python dependency edx-enterprise
version bump

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-07-22 20:43:01 +00:00
Juliana Kang
a19697786f feat: Add First Purchase Discount override (#35143)
REV-4098
2024-07-22 14:01:07 -04:00
Muhammad Soban Javed
004cd29cf3 chore!: uprgade social-auth-app-django to version 5.4.1 (#35045)
* chore!: uprgade social-auth-app-django to version 5.4.1

* chore: add migration from social_django
2024-07-22 18:27:57 +05:00
Muhammad Anas
8f7496d00e fix: DiscussionsConfigurations admin error 2024-07-22 09:08:49 -04:00
Juliana Kang
475b49c3ca feat: Add waffle flag for First Purchase Discount override (#35133)
REV-4097
2024-07-19 08:59:55 -04:00