Commit Graph

60000 Commits

Author SHA1 Message Date
Matthew Piatetsky
ae618151a9 fix: Remove debugging flag that is no longer necessary and refactor 2021-09-29 15:05:14 -04:00
Usama Sadiq
746a33fee2 fix: update pylintrc with edx-lint==5.2.0 (#28863) 2021-09-28 17:32:19 +05:00
Usama Sadiq
eaf2e68d2a build: Use DeploymentMonitoringMiddleware in settings (#28850) 2021-09-28 15:31:26 +05:00
edX requirements bot
5d28ae7541 chore: Updating Python Requirements (#28858) 2021-09-28 12:29:15 +05:00
Chris Pappas
f248f4f80e chore: bumping edx-enterprise to 3.28.20 (#28856) 2021-09-27 15:44:22 -04:00
David Ormsbee
deaf80f346 revert: "[BD-13] Let ModuleSystem use UserService" (#28857)
This caused a regression where anonymous_id values were not as expected.
Reverting for now, with investigation to follow.
2021-09-27 15:42:35 -04:00
Awais Qureshi
e3c83bd86f Merge pull request #28827 from edx/django32/BOM-2846-issue
fix: Added durable argument to transaction.atomic.
2021-09-27 18:33:45 +05:00
Phillip Shiu
1d78705c86 fix: enterprise user check fails for courses without verified track (#28839) 2021-09-24 15:35:02 -04:00
John Nagro
82e117b6ad fix: moodle shortname -> idnumber cont (#28838)
fix: moodle shortname -> idnumber cont

edx-enterprise release

[3.28.19]
---------
* fix: additional Moodle field changes

ENT-4902
2021-09-24 13:46:25 -04:00
David Ormsbee
3827f4c90d Merge pull request #28440 from open-craft/jill/BD-13-user-service
[BD-13] Let ModuleSystem use UserService
2021-09-24 09:26:43 -04:00
M. Zulqarnain
0fa556992c BOM-2850: Upgrade django-cors-headers to 3.5.0 (#28833)
* chore: upgrade django-cors-headers

* chore: Updating Python Requirements (#28834)

Co-authored-by: edX requirements bot <49161187+edx-requirements-bot@users.noreply.github.com>
2021-09-24 17:06:06 +05:00
Uzair Rasheed
a67c1f5143 Merge pull request #28605 from edx/add-hipb-api-client
add hipb api client
2021-09-24 14:32:57 +05:00
uzairr
c83750ff58 add hipb api client 2021-09-24 13:09:14 +05:00
David Ormsbee
03382ae400 revert: feat: Added support for enterprise id in course_grade_passed_first_time event" (#28831) 2021-09-23 17:56:07 -04:00
alangsto
bcdd0351a8 chore: update edx-name-affirmation version (#28830) 2021-09-23 11:23:42 -04:00
Awais Qureshi
ca8f964399 Update db.py 2021-09-23 20:01:08 +05:00
Muhammad Soban Javed
84a9850d1b Merge pull request #28828 from edx/iamsobanjaved/fix-ratelimitbackend-django30
fix: install django-ratelimit-backend from commit hash
2021-09-23 18:26:50 +05:00
Awais Qureshi
70e594e63f fix: Added durable argument to transaction.atomic. It is implemented in django32. 2021-09-23 18:00:42 +05:00
Usama Sadiq
78799f25ee fix: Fixed new pylint warnings (#28726) 2021-09-23 17:54:27 +05:00
Usama Sadiq
023f4144ab fix: fix new pylint warnings (#28725) 2021-09-23 17:54:15 +05:00
Usama Sadiq
484cd536e2 fix: Fixed new pylint warnings (#28724) 2021-09-23 17:54:04 +05:00
Soban Javed
7e56d9c729 fix: install django-ratelimit-backend from commit hash
Previously we're installing with tag but somehow it wasn't bringing the exact version we wanted.
2021-09-23 17:22:05 +05:00
Awais Qureshi
129a27314f fix: Added durable argument to transaction.atomic. It is implemented in django32. 2021-09-23 17:15:08 +05:00
Awais Qureshi
5772b89f54 fix: Added durable argument to transaction.atomic. It is implemented in django32. 2021-09-23 15:38:58 +05:00
Awais Qureshi
cb0a56fb0d fix: Added durable argument to transaction.atomic. It is implemented in django32. 2021-09-23 15:24:43 +05:00
Awais Qureshi
bae25765a6 fix: Added durable argument to transaction.atomic. It is implemented in django32. 2021-09-23 15:21:43 +05:00
Kshitij Sobti
32748788bf fix!: use bleach instead of custom code to sanitise forum posts (#28641)
The rest API for discussions was using custom HTML sanitisation code that
matched the behaviour of the client-side library. This replaces the custom
code with bleach for better security.
2021-09-23 11:37:05 +05:00
Ivo Branco
6f0255bc60 Fix use a registration field order when using a registration extension form (#26633) 2021-09-23 11:07:49 +05:00
Jillian Vogel
927016a8df refactor: fixes tests
* UserStubService now takes user, user_is_staff, and anonymous_user_id
* get_test_system() creates a UserStubService with an anonymous_user_id of 'student'
* Removes references to deprecated ModuleSystem attributes from test code
* Fixes and simplifies the ConditionalBlock tests, using get_module provided by TestModuleSystem instead of trying to mock out all the pieces.
2021-09-23 12:04:03 +09:30
Jillian Vogel
753839276f refactor: removes calls to deprecated ModuleSystem attributes
Removes references to these deprecated attributes from the platform code:
* runtime.anonymous_student_id
* runtime.seed
* runtime.user_id
* runtime.user_is_staff

Related changes:

* Ensure that all platform XBlocks which use these attributes "need" the user service.
* ProblemBlock: Removes check for existence of runtime.seed attribute in preparation for removal of this attribute from ModuleSystem.
* edxnotes: Catches NoSuchServiceError just in case some XBlocks using notes don't have the user service.
* UserTagsService refactor: pass user and course_id on creation
2021-09-23 11:46:43 +09:30
Jillian Vogel
c41e7fb93a refactor: deprecate ModuleSystem user attributes in favor of user service
The following ModuleSystem attributes are deprecated by this change, and should be pulled directly from the user service instead:

* anonymous_student_id
* seed
* user_id
* user_is_staff

Related changes:

* Removes the `user` and `anonymous_student_id` parameters from the ModuleService constructor.
* Stores anonymous_user_id in XBlockDjangoUserService's opt_attr
* Pulls out constants used by DjangoXBlockUserService opt_attr so they can be used in the platform code.
* LmsModuleSystem uses the user service created in wrapper function for runtime.publish to avoid requiring the user
  service to be "needed" by all XBlocks.
* LmsModuleSystem no longer checks for instances of XModuleDescriptor when deciding what kind of anonymous_user_id to
  provide:  all XModules are XBlocks, so this check is unnecessary.
* XBlockRuntime returns a user service when requested
* Adds tests for deprecated ModuleSystem attributes and changes to XBlockDjangoUserService.
2021-09-23 11:41:43 +09:30
Binod Pant
8f59d5e4a2 fix: 🐛 Remove add_user_to_course_cohort function (#28824)
it is not needed, and it causes a circular dep now for some reason which we don't need since we are removing that function altogether

ENT-4974
2021-09-22 21:15:39 -04:00
edX Transifex Bot
8fe01da8bc geoip2: update maxmind geolite country database 2021-09-23 02:29:25 +05:00
Felipe Montoya
dbb4658819 Merge pull request #28640 from eduNEXT/MJG/2nd_batch_openedx_events
[BD-32] feat: add 2nd batch of Open edX Events
2021-09-22 14:12:06 -05:00
edX Transifex Bot
0504d97ea2 chore(i18n): update translations 2021-09-22 21:50:45 +05:00
John Nagro
4efd0011f0 fix: logging fixes in edx-enterprise (#28821)
ENT-4902
2021-09-22 12:32:32 -04:00
Awais Qureshi
36cff05287 Merge pull request #28820 from edx/fixing-tox
fix: fixing file path in tox requirements.
2021-09-22 19:50:43 +05:00
Bianca Severino
24e7819a2c Merge pull request #28815 from edx/bseverino/remove-proctoring-mfe-flags
[MST-938] Remove special exam MFE flags
2021-09-22 09:59:58 -04:00
Awais Qureshi
6326bdb65b fix: fixing file path in tox requirements. 2021-09-22 18:42:35 +05:00
Bianca Severino
0484799f84 fix: remove special exam mfe flags 2021-09-22 09:07:33 -04:00
alangsto
c8a44cbdc3 chore: update edx-proctoring version (#28812) 2021-09-22 08:42:55 -04:00
Awais Qureshi
38e16d56b6 Merge pull request #28750 from edx/dj-cookie-samesite
fix: Don't use django-cookies-samesite on Django >= 3.1
2021-09-22 16:41:16 +05:00
M. Zulqarnain
8142e631fc build: Quality on GH Actions (#28561) 2021-09-22 13:24:18 +05:00
Awais Qureshi
57a033d0ae feat: Don't Use django-cookies-samesite on Django > 3.1 2021-09-22 09:49:03 +05:00
Binod Pant
333afbeab1 feat: logging fixes and import fixes in edx-enterprise (#28813)
ENT-4953, ENT-4974, ENT-4805
2021-09-21 17:10:06 -04:00
julianajlk
a7759582df fix: privacy banner close button issue in Track Selection (#28814) 2021-09-21 16:58:26 -04:00
julianajlk
94378cb06c feat: add JS for upgrade button redirect in Track Selection (#28805)
REV-2387
2021-09-21 13:34:10 -04:00
Matjaz Gregoric
5487ff5906 Fix RTL issue with capa problems (#28562)
* fix: resolve styling cap RTL styling issue

Margins were incorrect in the RTL version of the stylesheet.

* fix: move style overrides from lms-course to capa

These styles were only applied to the LTR version of the stylesheet, but
we want them in the RTL version as well.
2021-09-21 10:44:35 -04:00
Awais Qureshi
9118c8decc Merge pull request #28736 from edx/upgrade-issue-64/dj-req
fix: django.contrib.staticfiles.storage.CachedStaticFilesStorage is…
2021-09-21 19:09:01 +05:00
Phillip Shiu
6d7dcef8d6 fix: correct typo, content is locked, not lost (#28802) 2021-09-21 09:49:55 -04:00