Commit Graph

58641 Commits

Author SHA1 Message Date
alangsto
50d57a64bb MST-757 Move exam registration to async task (#27398)
Synchronously registering proctored exams while saving content to studio is causing a significant slow down. The function that registers the exams has been moved to an async task. In addition, a signal handler on_course_publish has also been moved to the async task, as it relies on exam registration being complete before being executed.
2021-04-26 12:04:04 -04:00
Adam Stankiewicz
9892f358fc chore: bump edx-enterprise to 3.22.9 (#27410) 2021-04-26 11:20:15 -04:00
Julia Eskew
4462ed37b2 Revert "update login api" (#27416)
This PR might be causing e2e tests to fail. Reverting and merging without waiting on tests.
2021-04-26 10:07:36 -04:00
Ned Batchelder
443730509c build: no need for this hackathon testing plugin
This was to support an experiment in using coverage test contexts to
record what tests ran each line of code (informally known as
who-tests-what, or wtw).   It never became operational.
2021-04-23 18:12:05 -04:00
Mubbshar Anwar
2ab1f8f9c9 Merge pull request #27380 from edx/VAN-366
Add country code in MFEAppContextView
2021-04-23 20:05:59 +05:00
mubbsharanwar
709e31a2aa Add country code in MFEAppContextView
add new api MFEAppContextView to handle country code
add unit test MFEAppContextViewTest
this newly created api will be marged in TPAContextViewTest when margeing code in master branch

VAN-366
2021-04-23 19:12:35 +05:00
Uzair Rasheed
36c767cdda Merge pull request #27338 from edx/update-login-api
update login api
2021-04-23 18:05:58 +05:00
uzairr
5103f59df9 upgrade login api
Modify the existing login api in a way that
it will allow the user to login via username as well.
currently it is only allowing email to log the user in.

VAN-445
2021-04-23 17:21:18 +05:00
Kyle McCormick
b0d41f6ebb refactor: simplify ProblemBlock inheritance hierarchy (#27363)
Previously, ProblemBlock's implementation was split between
CapaMixin/CapaFields (in capa_base.py) and ProblemBlock
(in capa_module.py), the former being the base classes of the
latter. The split existed for a historical reason:
as a former XModule, ProblemBlock was once split
between CapaDescriptor (author-facing) and CapaModule
(learner-facing). Since ProblemBlock has been converted
to being a pure XBlock, the division between the base
classes and the block class are no longer necessary
nor semantically helpful.

docs: Flesh out ProblemBlock's docstring a bit.
2021-04-22 12:44:15 -04:00
Ali Akbar
973ca69c1e Merge pull request #27395 from edx/aakbar/update_thresholds
updating thresholds after security fixes #27391
2021-04-22 17:11:10 +05:00
Muhammad Ammar
9bb4c421e1 Merge pull request #27396 from edx/ammar/upgrade-edx-enterprise-pkg
upgrade edx-enterprise to 3.22.8
2021-04-22 17:03:38 +05:00
Justin Hynes
35cfca0be1 Merge pull request #27357 from edx/jhynes/microba-1164_revoke-program-certs-bugfix
fix: fix bug with `revoke_program_certificates` task
2021-04-22 07:38:32 -04:00
muhammad-ammar
732c567154 upgrade edx-enterprise to 3.22.8 2021-04-22 15:05:28 +05:00
Waheed Ahmed
5aa8245133 add username suggestions functionality (#27387)
Added username suggestions functionality upon username already exists
validation error for both registration and registration validation
endpoints.

VAN-52
2021-04-22 14:08:40 +05:00
Ali-D-Akbar
3da5198a5f chore: updating thresholds after security fixes #27391 2021-04-22 13:43:03 +05:00
edX Transifex Bot
55b1375c7c geoip2: update maxmind geolite country database 2021-04-21 17:11:09 -04:00
edx-pipeline-bot
15f3900095 Merge pull request #27391 from edx/private_to_public_025fb5e
Mergeback PR from private to public.
2021-04-21 17:07:01 -04:00
Ali Akbar
025fb5ed66 Merge pull request #228 from edx/aakbar/xss-security-fixes
Fix XSS for numerous files
2021-04-22 01:16:47 +05:00
Julia Eskew
efa13ff1d2 fix: TNL-8233: Change exception raised at problem creation failure from generic exception to LoncapaProblemError. (#27361)
Raising this specific exception will cause the failure to be handled more gracefully by problem rescoring code.
2021-04-21 16:13:23 -04:00
Albert (AJ) St. Aubin
a1fe3d58dc [bug] Corrected issue where program dash showed incorrect completed
count

[MICROBA-1163]

This change will correct an issue in the Program Dashboard where a user
would see a course as completed, but not see their Certificate because
it was not available to them yet.
2021-04-21 16:03:33 -04:00
Justin Hynes
a7bc9d1cc1 fix: fix bug with revoke_program_certificates task
[MICROBA-1164]
* cast `course_key` as a string when scheduling the `revoke_program_certificates` task
* Update existing unit tests
* Move test utility method in test_tasks.py out from the middle of the test cases
* Fix spelling in test function name
2021-04-21 14:43:03 -04:00
Albert (AJ) St. Aubin
a21d0ff224 [bug] Updated confusing text about when a certificated is available
Currently when a certificate availability date is set the text on the
course dasboard is confusing to the learner and could lead them to the
wrong conclusions. The cert should not be available until on or after
the available date.
2021-04-21 12:43:53 -04:00
Alex Dusenbery
012dc084f6 chore: upgrade edx-enterprise to 3.22.7, which upgrades python requirements. 2021-04-21 12:11:57 -04:00
Hammad Ahmad Waqas
c097cfc23e Merge pull request #27382 from edx/hammad/ENT-4483
ENT-4483 | added search_emails endpoint in accounts.
2021-04-21 20:16:57 +05:00
HammadAhmadWaqas
7489f14baf added search_emails endpoin in accounts. 2021-04-21 13:59:53 +05:00
Zaman Afzal
0d7245d346 Removed the waffle switch ENABLE_MULTIPLE_SSO_ACCOUNTS_ASSOCIATION_TO_SAML_USER (#27379) 2021-04-21 13:14:15 +05:00
Awais Jibran
e05d4a9c47 Monitor error in NR when OLX validation fails. (#27381) 2021-04-21 11:56:54 +05:00
Usama Sadiq
2b55959a8e refactor: apply lint-amnesty on existing violations 2021-04-20 23:51:31 +05:00
Usama Sadiq
ab41a7daee refactor: Apply lint-amnesty on pylint violations 2021-04-20 21:43:59 +05:00
Awais Jibran
62c8805e3e Refactor + Tests: Course Import Feature (#27369)
* Code Refactoring
This PR bumps code coverage by adding unit tests & clean up some code for improving code quality and maintainability.
2021-04-19 23:49:42 +05:00
Ali Akbar
9e8684cc72 Merge pull request #27367 from edx/aakbar/xss-disable-2
Refactor: disable xsslint for numerous files
2021-04-19 15:51:30 +05:00
Saad Yousaf
bb3be323f0 [TNL-8235] - Fix breaking code by updating the exception when load_file fails. (#27368)
Co-authored-by: SaadYousaf <saadyousaf@A006-00314.local>
2021-04-19 13:30:14 +05:00
edX requirements bot
65afd7fe75 Updating Python Requirements (#27375) 2021-04-19 12:41:21 +05:00
Ali-D-Akbar
de87916768 refactor: disable xsslint: PROD-2310 2021-04-19 12:37:08 +05:00
Ali-D-Akbar
d84251de3b refactor: disable xsslint: PROD-2307 2021-04-19 12:21:43 +05:00
Ali-D-Akbar
e8f548fa9c refactor: disable xsslint: PROD-2309 2021-04-19 12:21:43 +05:00
Ahtisham Shahid
b73c0f0a90 Refactored InvalidProctoringProvider exception code (#27366) 2021-04-19 11:54:58 +05:00
stvn
1f3058a051 Merge PR #27328 bd03/api/permissions
* Commits:
  fix: Grant course staff access to discussions API
  refactor: Make discussions helper method more accessible
2021-04-16 12:02:20 -07:00
Alex Dusenbery
4134809b96 fix: improves performance of enterprise role assignment admin page. edx-enterprise 3.22.6
* Deletes custom get_search_results() method, since `enterprise_customer__name` is now a viable search field
* Improves pagination by asking for an estimated row count from Mysql INFORMATION_SCHEMA.TABLES
* Turns 1 + N query into 1 query via proper use of list_select_related

ENT-4384
2021-04-16 14:44:23 -04:00
stvn
49594d92e6 fix: Grant course staff access to discussions API
to match expected behavior.
2021-04-16 11:23:44 -07:00
stvn
5284f397b4 refactor: Make discussions helper method more accessible
so we can use it elsewhere.
2021-04-16 11:23:44 -07:00
Kyle McCormick
b1fa2bdae6 refactor: make embargo app go through geoinfo API (#27350)
Consolidates all usage of geoip database within
geoinfo app.
2021-04-16 14:00:04 -04:00
Felipe Montoya
313eef2fad Merge pull request #27339 from eduNEXT/lmm/fix_server_error_page
fix: Import missing function in server_error template.
2021-04-16 12:45:00 -05:00
Awais Jibran
9722e37492 Enable Course Olx Validation during Course Import (#27300)
* Enable import failure and email with Errors/Warnings

This PR enables course import failure in case of olx validation errors. Here is the flow.
  * Course Import tries to import foo.tar.gz into their course shell
  * Course olx contains validation errors
  * During course import, olx is validated and import is failed with the error message "Course olx validation failed. Please check your email."
  * System generates an email with ERRORs & WARNINGs in the body of the email.

This PR also adds a waffle flag contentstore.bypass_olx_failure. The purpose of this test flag is to allow course teams to unblock by enabling them to bypass the
the olx-validation failure.
The workaround is shared on the ticket TNL8214.

* Disable olx validation out of the box.
2021-04-16 18:45:59 +05:00
Ali-D-Akbar
eb2c369750 refactor: disable xsslint: PROD-2311 2021-04-16 17:13:05 +05:00
Ali-D-Akbar
5631d695a4 refactor: disable xsslint: PROD-2308 2021-04-16 17:13:05 +05:00
Ali-D-Akbar
30b8edc0ac refactor: disable xsslint: PROD-2306 2021-04-16 17:13:05 +05:00
edX requirements bot
4e66032186 Updating Python Requirements (#27364) 2021-04-16 15:43:59 +05:00
Ali-D-Akbar
a4437cb786 refactor: fix xss PROD-2301 2021-04-16 15:29:38 +05:00
Ali-D-Akbar
70bda87669 refactor: fix xss PROD-2300 2021-04-16 14:10:07 +05:00