Usama Sadiq
588f11b100
refactor: apply lint-amnesty to pylint violations
2021-04-27 14:43:31 +05:00
Dillon Dumesnil
82414f5b5e
Merge pull request #27401 from edx/ddumesnil/enable-dates-tab-aa-741
...
feat: AA-741: Enables the dates tab for all enrolled learners
2021-04-26 10:56:08 -07: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
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
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
Dillon Dumesnil
0a08852600
feat: AA-741: Enables the dates tab for all enrolled learners
...
Removes the relative dates flag check as it is no longer
necessary to show the dates tab
2021-04-22 15:22:26 -04: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
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
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
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
Usama Sadiq
2b55959a8e
refactor: apply lint-amnesty on existing violations
2021-04-20 23:51:31 +05: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
Awais Qureshi
348f080bf9
Merge pull request #26466 from edx/BOM-2340
...
BOM-2340
2021-04-15 14:55:31 +05:00
Igor Degtiarov
70ab50181a
fix: Hide enterprise/login button if enterprise integration disabled. ( #27130 )
...
* fix: Hide enterprise/login button if enterprise integration disabled.
[BTR-52](https://openedx.atlassian.net/browse/BTR-52 )
Fix an issue with existing button for enterprise login on the login page
when enterprise integration is disabled.
* Address review comments
2021-04-15 11:54:56 +05:00
Ali Akbar
ece9f42177
Merge pull request #27335 from edx/aakbar/fix-pw-reset
...
fix: allow staff or superuser to reset password from support tools
2021-04-14 20:50:10 +05:00
Julia Eskew
7dbad0bd9a
learning_sequence doc tweaks and new type annotation style ( #27311 )
...
* docs: Add a statement comment. Update learning sequences README.
* refactor: Add Python3.6+-style type annotations to attrs classes where possible.
2021-04-14 11:12:01 -04:00
stvn
ffcfc05a61
refactor: Move BetaTesterFactory helper to common/
2021-04-14 07:26:39 -07:00
stvn
22fb1ec124
refactor: Move InstructorFactory helper to common/
2021-04-14 07:26:39 -07:00
stvn
2fa36fb0cf
refactor: Move StaffFactory helper to common/
2021-04-14 07:26:39 -07:00
stvn
5dd8302d8b
refactor: Move GlobalStaffFactory helper to common/
2021-04-14 07:26:39 -07:00
stvn
7d33d0d1e9
Merge PR #27289 refactor/lms-to-core/get-course-by-id
...
* Commits:
refactor: Import a single function, not the whole module
refactor: Move get_course_by_id helper from LMS to core
2021-04-14 07:08:19 -07:00
Dillon Dumesnil
3a89ed4275
Merge pull request #27262 from edx/ddumesnil/switch-relative-dates-to-course-waffle-aa-677
...
refactor: AA-677: Switch relative dates to CourseWaffleFlag
2021-04-14 06:17:08 -07:00
Awais Qureshi
2be5184e38
BOM-2340
...
Testing pylint-pytest package
2021-04-14 17:40:18 +05:00
Awais Qureshi
377fa3468f
Merge branch 'factory-boy' of github.com:edx/edx-platform into factory-boy
2021-04-14 16:47:43 +05:00
Awais Qureshi
d26a076131
refactor: upgrading factory-boy.
2021-04-14 16:44:37 +05:00
Ali-D-Akbar
fcf8a0e221
fix: allow staff or superuser to reset password from support tools
2021-04-14 16:26:47 +05:00
Awais Qureshi
adf960ddc0
Merge branch 'master' into factory-boy
2021-04-14 15:19:18 +05:00
Awais Qureshi
6b6e87e797
refactor: upgrading factory-boy.
2021-04-14 15:17:32 +05:00
Awais Qureshi
af17c05b9c
refactor: upgrading factory-boy.
2021-04-14 15:10:55 +05:00
stvn
eba78682c9
test: Test (incorrect) behavior of discussions API access
...
As implemented, course staff members will not have access to this API
endpoint. This will be addressed with pending work [1].
- [1] https://openedx.atlassian.net/browse/TNL-8231
2021-04-13 23:57:49 -07:00
stvn
4f0415f5cb
test: Add tests for discussions API access
...
This checks for expected API access [1];
data integrity will be checked later [2].
This work exposes that the code currently does _not_ grant access to
_course_ staff, only _global_ staff. This is being addressed next [3].
Fix: TNL-8229 [1]
- [1] https://openedx.atlassian.net/browse/TNL-8229
- [2] https://openedx.atlassian.net/browse/TNL-8230
- [3] https://openedx.atlassian.net/browse/TNL-8231
2021-04-13 23:57:49 -07:00
stvn
43698fff0a
refactor: Move get_course_by_id helper from LMS to core
...
This helper is used by the LMS, CMS, _and_ `openedx.core`,
so let's move it to `openedx.core` to reduce import complexity.
The following files no longer import from LMS:
- cms/djangoapps/contentstore/management/commands/edit_course_tabs.py
- lms/djangoapps/ccx/migrations/0006_set_display_name_as_override.py
- openedx/core/djangoapps/ccxcon/api.py
- openedx/core/djangoapps/verified_track_content/models.py
- openedx/features/course_experience/plugins.py
Note: The LTI XBlock has a dependency on this import path (!?);
a fix can be found here [1].
- [1] https://github.com/edx/xblock-lti-consumer/pull/154
2021-04-13 23:25:48 -07:00
Hammad Ahmad Waqas
d904534fc8
Merge pull request #27239 from edx/hammad/ENT-4361
...
ENT-4361 | Added user's "id" and "email" as public fields in ACCOUNT_VISIBILITY_CONFIGURATION.
2021-04-13 17:21:43 +05:00
Ali Akbar
d1856c27a1
Merge pull request #27284 from edx/aakbar/PROD-2337
...
Allow reset password from Support Tools
2021-04-12 21:32:20 +05:00
HammadAhmadWaqas
3aa9248dcf
* Added user's "id" and "email" as public fields in ACCOUNT_VISIBILITY_CONFIGURATION.
...
* Updated api/user/v1/accounts list view to search based on multiple emails as well.
2021-04-12 21:13:53 +05:00
Ali-D-Akbar
2b5cb1caad
fix!: allow reset password from support tools
2021-04-12 21:06:41 +05:00
Albert (AJ) St. Aubin
c2db5c8906
[bug] Added in check for MySQL OperationalError for local development
...
[MICROBA-951]
When running the notify_credentials command locally there is an
OperationalError thrown by MySQL when there are no more results
available for the queryset iterator. This change catches that exception,
checks state, and then logs according to that state. This code runs in
production without issue. This changes allows for the code to be run
locally without a separate code path.
2021-04-12 10:36:49 -04:00
Jawayria
e3a449d63e
Merge pull request #26604 from edx/jawayria/bom-2408-6
...
BOM_2408: Removed unused imports from openedx/core/djangoapps/user_api
2021-04-12 14:46:14 +05:00
Jawayria
953f1fa05c
Merge pull request #26615 from edx/jawayria/bom-2408-7
...
BOM-2408: Removed unused imports from openedx/core/{djangolib, lib} a…
2021-04-12 14:45:52 +05:00
Uzair Rasheed
488069f0cf
Merge pull request #27292 from edx/add-separate-ratelimit-var
...
Add independent ratelimit setting for forms
2021-04-10 14:46:53 +05:00
stvn
29384d1aa4
Merge PR #27295 bd03/api/decorator-permissions
...
* Commits:
fix: Stop using view_auth_classes helper in discussions API
2021-04-09 10:07:14 -07:00
stvn
fc39c3e073
fix: Stop using view_auth_classes helper in discussions API
...
as it conflicts with the manually-assigned `permission_classes`;
the decorator erases them.
2021-04-09 09:38:27 -07:00
uzairr
1d5a95facb
Add independent ratelimit setting for forms
...
Currently, login and registration forms and view to log the user in
are sharing same ratelimit settings which is causing too much noise
while rendering forms.This PR will introduce a separate
setting for logistration forms.
VAN-436
2021-04-09 21:10:08 +05:00
Jawayria
7024f51a17
Merge pull request #26603 from edx/jawayria/bom-2408-5
...
BOM-2408: Removed unused imports from openedx/core/djangoapps/{themin…
2021-04-09 19:32:12 +05:00