Commit Graph

19803 Commits

Author SHA1 Message Date
Moeez Zahid
9123602386 refactor: Log exceptions in apple user migration (#32987) 2023-08-11 14:52:04 +05:00
Awais Qureshi
14d2cc8f95 chore: enabling migrations syncing test. (#32941) 2023-08-09 23:51:08 +05:00
Awais Qureshi
4da29d914d chore: adding migrations related with django-history. (#32935) 2023-08-08 16:04:06 +05:00
Muhammad Soban Javed
2732934e74 fix: re-enable Django deprecation warnings (#32277)
* fix: re-enable Django deprecation warnings
---------

Co-authored-by: UsamaSadiq <usama7274@gmail.com>
2023-08-07 22:08:00 +05:00
Syed Ali Abbas Zaidi
8480dbc228 chore: apply amnesty on existing not fixable issues (#32215)
* fix: eslint operator-linebreak issue

* fix: eslint quotes issue

* fix: react jsx indent and props issues

* fix: eslint trailing spaces issues

* fix: eslint line around directives issue

* fix: eslint semi rule

* fix: eslint newline per chain rule

* fix: eslint space infix ops rule

* fix: eslint space-in-parens issue

* fix: eslint space before function paren issue

* fix: eslint space before blocks issue

* fix: eslint arrow body style issue

* fix: eslint dot-location issue

* fix: eslint quotes issue

* fix: eslint quote props issue

* fix: eslint operator assignment issue

* fix: eslint new line after import issue

* fix: indent issues

* fix: operator assignment issue

* fix: all autofixable eslint issues

* fix: all react related fixable issues

* fix: autofixable eslint issues

* chore: remove all template literals

* fix: remaining autofixable issues

* chore: apply amnesty on all existing issues

* fix: failing xss-lint issues

* refactor: apply amnesty on remaining issues

* refactor: apply amnesty on new issues

* fix: remove file level suppressions

* refactor: apply amnesty on new issues
2023-08-07 19:13:19 +05:00
Awais Qureshi
e94af3c2d3 feat: upgrading django-simple-history without migrations. (#32880)
* feat: upgrading django-history without migrations.

* feat: upgrading django-history==3.1.1.
2023-08-07 18:09:19 +05:00
Mohammad Ahtasham ul Hassan
df197837cb fix: remove extras and enhance existing subs logging (#32919) 2023-08-07 18:01:50 +05:00
ruzniaievdm
0d93075a01 fix: api for schedule and details page MFE page (#32890) 2023-08-03 11:41:52 -04:00
Jenkins
03299af168 chore: geoip2: update maxmind geolite country database 2023-08-02 16:59:04 -04:00
Moeez Zahid
df63305e24 fix: Fix Apple registration during migration (#32893) 2023-08-02 13:22:53 +05:00
Yusuf Musleh
b97007e182 feat: Handle JSInput extra files when copying/pasting (#32847)
This takes into account the extra files that are usually required when
copying problems containing JSInputs. Static files such as additional
CSS and JS files needed to interact and style the problem.
2023-07-31 11:12:10 -07:00
Awais Qureshi
5f7d82ebe2 chore: upgrading deprecated import. (#32864) 2023-07-27 16:54:33 +05:00
Jenkins
06e738e64a chore: geoip2: update maxmind geolite country database 2023-07-26 16:59:01 -04:00
Jillian
8098169eca feat: adds Content Tagging (#32661)
* refactor: moves is_content_creator

from cms.djangoapps.contentstore.helpers to common.djangoapps.student.auth

* feat: adds content tagging app

Adds models and APIs to support tagging content objects (e.g. XBlocks,
content libraries) by content authors. Content tags can be thought of as
"name:value" fields, though underneath they are a bit more complicated.

* adds dependency on openedx-learning<=0.1.0
* adds tagging app to LMS and CMS
* adds content tagging models, api, rules, admin, and tests.
* content taxonomies and tags can be maintained per organization by
  content creators for that organization.
2023-07-26 10:32:59 -07:00
Leangseu Kim
626100596d fix: add correct css and call back for mathjax 2023-07-24 13:27:50 -04:00
Agrendalath
e746986820 feat: create Course Limited Staff role
This is an experimental approach to introduce a role which has all Course Staff
permissions, except for the Studio access.

Co-authored-by: 0x29a <demid@opencraft.com>
2023-07-21 15:09:41 +02: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
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
leangseu-edx
df6c0fc69f fix: work around existing css that fail to draw mathjax (#32764) 2023-07-17 13:43:17 -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
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
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
Shahbaz Shabbir
f6071490e8 feat: add a command to fetch unsubscribed emails from Braze 2023-07-13 18:13:14 +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
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
leangseu-edx
9dac65a35a Revert "fix: mathjax resize on sindow resize (#32606)"
This reverts commit a68fd49103.
2023-07-07 15:20:47 -04:00
John Nagro
74e3bb9fd4 fix: correct bug in sapsf country to code mapping (#32675) 2023-07-06 20:28:38 +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
Jenkins
5ccdd2126f chore: geoip2: update maxmind geolite country database 2023-07-05 16:59:02 -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
John Nagro
6d5dcdf77a fix: improve username generation (#32613) 2023-06-30 09:47:02 -04:00
Jenkins
7ef20f0b91 chore: geoip2: update maxmind geolite country database 2023-06-28 16:58:53 -04:00
Phillip Shiu
8072c3e9ef temp: fix entitlements_to_expire should be capped at entitlements_count (#32579) 2023-06-26 16:44:18 +00:00
Muhammad Zubair
2d0a8b44b7 feat: fixed failing checks related to linting and tests 2023-06-26 19:46:25 +05:00
Muhammad Zubair
3f84b14b92 feat: removed unnecessary ignore-liting message 2023-06-26 18:59:25 +05:00
Muhammad Zubair
4519ca405e chore: added standard logging and removed celery logging 2023-06-26 18:47:17 +05:00
Muhammad Zubair
87953991e0 feat: removed extra blank line 2023-06-26 15:40:09 +05:00
Phillip Shiu
e115cd9873 test: for entitlements tasks.expire_and_create_entitlements 2023-06-25 22:48:21 -04:00
Phillip Shiu
82338bd375 fix: SyntaxError: use CourseEntitlement.objects, not .object 2023-06-25 22:12:10 -04:00
Phillip Shiu
2af47c7128 temp: remove celery ignore_result=True
We are lacking information in Flower about our Celery tasks that are
marked as successful but are actually failing.

Attempt to remove ignore_result=True to see if this is suppressing
valuable debugging information.
2023-06-25 22:11:08 -04:00
Phillip Shiu
fb9bf9325e temp: fix use len(list) not list.count() in expire_and_create_entitlements (#32565) 2023-06-23 21:05:49 +00:00
Phillip Shiu
886227c88b temp: fix EncodeError for username in expire_and_create_entitlements (#32564)
On running the management command, we get the folowing error:

    kombu.exceptions.EncodeError: Object of type User is not JSON serializable

Pass a string of the username instead in the parameters of the tasks
created by the expire_and_create_entitlements management command.
2023-06-23 18:08:51 +00:00
Phillip Shiu
5996ae098b temp: fix EncodeError & correct EntitlementSupportDetail action name in expire_and_create_entitlements (#32562)
* fix: EntitlementSupportDetail.action is EXPIRE, not EXPIRED

* fix: pass list of entitlement ids, not QuerySet subset for Celery json parser

On running the management command, we get the folowing error:

    kombu.exceptions.EncodeError: Object of type CourseEntitlement is not JSON serializable

Pass a list of ints instead of a QuerySet object in the parameters of
the tasks created by the expire_and_create_entitlements management
command.
2023-06-23 14:31:12 +00:00
Phillip Shiu
5dfe83d154 chore: quality 2023-06-22 22:52:10 -04:00
Phillip Shiu
eee3db8820 perf: run select count(*) only once for entitlements.count()
Not much of an optimization, but might shave a couple seconds if the
number of entitlements on production are large.

Django will use the _result_cache if the QuerySet has already been
retrieved:

107865780a/django/db/models/query.py (L597-L598)
2023-06-22 22:42:49 -04:00
Phillip Shiu
d4ae7bfa06 fix: use newly created (not expired) entitlement id in logs and support records 2023-06-22 22:37:45 -04:00
Phillip Shiu
c973059ae7 feat: add start/end/length log information at beginning of each expire_and_create_entitlements task 2023-06-22 22:37:17 -04:00