Commit Graph

60628 Commits

Author SHA1 Message Date
Jawayria
52a9d7e62a Merge pull request #29378 from edx/jawayria/bom-2606-10
chore: Applied lint-amnesty on lms/djangoapps/{course_api, course_blocks}
2021-12-20 15:36:58 +05:00
Jawayria
9434dc22dd Merge pull request #29379 from edx/jawayria/bom-2606-9
chore: Applied lint-amnesty on lms/djangoapps/{certificates, course_goals}
2021-12-20 15:36:38 +05:00
Jawayria
d465779ba0 Merge pull request #29380 from edx/jawayria/bom-2606-8
chore: Applied lint-amnesty on lms/djangoapps/{ccx, commerce}
2021-12-20 15:36:24 +05:00
Jawayria
4ce693b081 Merge pull request #29382 from edx/jawayria/bom-2606-6
chore: Applied lint-amnesty on lms/djangoapps/{badges, branding}
2021-12-20 15:35:06 +05:00
Waheed Ahmed
a85880ce46 chore: change ratelimit key for POST email param (#29638) 2021-12-20 15:09:59 +05:00
edX Transifex Bot
a42c1aa8cb chore(i18n): update translations 2021-12-19 16:40:09 -05:00
Jansen Kantor
7b2731dd06 chore: bump submissions to 3.4.3 and ora 3.7.7 (#29634) 2021-12-17 14:16:14 -05:00
Michael Roytman
492b17899b Merge pull request #29626 from edx/mroytman/MST-1254-change-_does_name_change_require_verification-to-use-passing-cert-statuses
Do Not Prevent Learner From Changing Name if Learner Is Not Enrolled in Verified Mode or Learner Has Non-Passable Certificate
2021-12-17 11:04:35 -05:00
Jawayria
2145358836 chore: Applied lint-amnesty on lms/djangoapps/{badges, branding} 2021-12-17 16:20:30 +05:00
Jawayria
5c9613bafd chore: Applied lint-amnesty on lms/djangoapps/{ccx, commerce} 2021-12-17 16:17:51 +05:00
Jawayria
826fc33274 chore: Applied lint-amnesty on lms/djangoapps/{certificates, course_goals} 2021-12-17 16:16:51 +05:00
Jawayria
59002b5702 chore: Applied lint-amnesty on lms/djangoapps/{course_api, course_blocks} 2021-12-17 16:05:40 +05:00
Zainab Amir
bc156a6d04 feat: send perf-lang custom attribute (#29632) 2021-12-17 14:12:48 +05:00
Long Lin
dee42c6498 chore: bump edx-enterprise version 2021-12-16 15:47:04 -05:00
michaelroytman
ea3dc9cad6 fix: Do Not Prevent Learner From Changing Name With Non-Verified Enrollment/Non-Passable Certificate
The _does_name_change_require_verification(user_profile, old_name, new_name) method of the accounts user_api determines whether a learner can change their name from old_name to new_name. Originally, it delegated solely to the NameChangeValidator class of the edx-name-affirmation API, which ran a set of checks against the name change. One of said checks was asserting that learners with one or more certificates could not change their name without completing IDV.

This pull request changes this behavior.

Learners may have certificates that are not in a passable status (e.g. "unverified"). We only want to require IDV for name changes for learners that have passing statuses. The existing code prevented learners from changing their name if they had any certificates at all, irrespective of the certificate status. This change only considers certificates in a passable status.

Additionally, learners may have certificates and also not be enrolled in any "verified" seats. For example, despite edX no longer offering "honor" seats, learners may have enrollments in "honor" modes, which grant certificates but are not considered "verified" enrollment modes. IDV requires that a learner be enrolled in a "verified" seat in order to complete IDV. Prior to this change, learners that were navigated to IDV to validate a name change were unable to complete IDV. This change introduce a check that a learner is in a "verified" mode in addition to using the NameChangeValidator. This prevents the account MFE from navigating an IDV-ineligible learner to IDV.

MST-1254: https://openedx.atlassian.net/browse/MST-1254
2021-12-16 14:26:07 -05:00
Waheed Ahmed
c1e4109396 fix: org image url in save for later event props (#29625) 2021-12-16 22:55:07 +05:00
Bianca Severino
93e5d6ce50 Merge pull request #29544 from edx/bseverino/remove-idv-upgrade
[MST-1195] Hide course upgrade on dashboard if there is no SKU
2021-12-16 12:02:53 -05:00
Julia Eskew
05ff94a993 feat: Change the text of the Studio button to add an HTML component
to read "Text" and display a text icon instead of a "</>" icon.
2021-12-16 11:59:10 -05:00
Bianca Severino
ae8e9672a1 feat: hide course upgrade on dashboard if there is no SKU 2021-12-16 11:19:31 -05:00
Zainab Amir
85c6cea965 fix: use settings instead of config (#29622) 2021-12-16 18:00:31 +05:00
Zainab Amir
063d11a866 fix: update save_for_later api endpoint (#29620)
fix: update save_for_later api endpoint
2021-12-16 14:47:52 +05:00
Syed Muhammad Dawoud Sheraz Ali
74cce08c48 Merge pull request #29445 from regisb/regisb/fix-language-cookie-samesite
fix: language cookie "samesite" attribute
2021-12-16 14:42:04 +05:00
Jawayria
0d2eb75f09 Merge pull request #29602 from edx/jawayria/fix-ugettext-lms7
fix: replace 'ugettext' with 'gettext' in lms
2021-12-16 14:12:39 +05:00
Muhammad Soban Javed
ac7a42d196 Merge pull request #29520 from edx/iamsobanjaved/pytest-warnings-gha
test: save pytest warning reports to GHA artifacts
2021-12-16 14:10:15 +05:00
Jawayria
da009d6bdd Merge pull request #29600 from edx/jawayria/fix-ugettext-lms5
fix: replace 'ugettext' with 'gettext' in lms
2021-12-16 13:59:18 +05:00
Jawayria
1bcb9adfe1 Merge pull request #29601 from edx/jawayria/fix-ugettext-lms6
fix: replace 'ugettext' with 'gettext' in lms
2021-12-16 13:59:06 +05:00
Jawayria
d96d3a2187 Merge pull request #29603 from edx/jawayria/fix-ugettext-lms4
fix: replace 'ugettext' with 'gettext' in lms
2021-12-16 13:58:53 +05:00
Jawayria
e8be2e7923 Merge pull request #29604 from edx/jawayria/fix-ugettext-lms3
fix: replace 'ugettext' with 'gettext' in lms
2021-12-16 13:58:42 +05:00
Jawayria
750ed8c837 Merge pull request #29605 from edx/jawayria/fix-ugettext-lms1
fix: replace 'ugettext' with 'gettext' in lms
2021-12-16 13:58:31 +05:00
Jawayria
df5345afe6 fix: replace 'ugettext' with 'gettext' in lms 2021-12-16 13:23:36 +05:00
Jawayria
b2113696c9 fix: replace 'ugettext' with 'gettext' in lms 2021-12-16 13:22:40 +05:00
Jawayria
8e93280ec4 fix: replace 'ugettext' with 'gettext' in lms 2021-12-16 13:20:29 +05:00
Jawayria
0c7e37bc38 fix: replace 'ugettext' with 'gettext' in lms 2021-12-16 13:19:40 +05:00
Jawayria
3dfbb9f44e fix: replace 'ugettext' with 'gettext' in lms 2021-12-16 13:18:28 +05:00
Jawayria
f72a6e3a79 fix: replace 'ugettext' with 'gettext' in lms 2021-12-16 13:15:27 +05:00
Régis Behmo
53b8a80668 fix: language cookie "samesite" attribute
The language cookie "samesite" attribute was always set to "None", even in
non-secure environments, such as the devstack. This was causing client-side
warnings in non-https environments, and the language cookie was not properly
set.
2021-12-16 09:04:26 +01:00
edX Transifex Bot
b401ecb3e7 geoip2: update maxmind geolite country database 2021-12-15 16:19:32 -05:00
Ned Batchelder
e39f9c503a build: suppress Django deprecation warnings (#29528)
Suppress them both in tests (via setup.py and pytest.ini)
and in management command & application runs
(via logsettings.py).

Developers aren't looking at these warnings; they'll be dealt with in a
formal process for upgrading Django.  Suppress them for now so that
important information isn't lost in the noise.
2021-12-15 10:45:12 -05:00
Zainab Amir
dd610118a7 feat: create braze alias and event (#29612) 2021-12-15 19:07:25 +05:00
Soban Javed
b4ac8d284a test: save pytest warning reports to GHA artifacts
- add pytest_hooks import back in common/lib/conftest.py. This import was removed during refactoring work
2021-12-15 17:06:40 +05:00
edX requirements bot
cf64f0e198 chore: Updating Python Requirements (#29610) 2021-12-15 16:15:53 +05:00
Jawayria
833ce7d586 Merge pull request #29570 from edx/jawayria/fix-url-common
fix: fixed RemovedInDjango40 warnings in common
2021-12-15 13:55:37 +05:00
Jawayria
293edae5e6 Merge pull request #29573 from edx/jawayria/fix-url-cms
fix: replace 'django.conf.url()' with 'django.urls.re_path()'
2021-12-15 13:55:13 +05:00
Jawayria
13d502353a Merge pull request #29574 from edx/jawayria/fix-ugettext-cms1
fix: replace 'ugettext' with 'gettext' in cms
2021-12-15 13:54:57 +05:00
Jawayria
c1276cd122 Merge pull request #29577 from edx/jawayria/fix-ugettext-cms2
fix: replace 'ugettext' with 'gettext' in cms
2021-12-15 13:54:42 +05:00
Jawayria
323dd7184b Merge pull request #29578 from edx/jawayria/fix-ugettext-cms3
fix: replace 'ugettext' with 'gettext' in cms
2021-12-15 13:54:27 +05:00
Jawayria
ccfe993cb8 Merge pull request #29579 from edx/jawayria/fix-ugettext-cms4
fix: replace 'ugettext' with 'gettext' in cms
2021-12-15 13:54:13 +05:00
Michael Terry
34138c1516 Merge pull request #29606 from edx/mikix/401-for-anon
fix: have learning sequence give 401 for anon users instead of 404
2021-12-14 12:00:39 -05:00
Michael Terry
a630747695 fix: have learning sequence give 401 for anon users instead of 404
This will avoid leaking whether a course exists or not to anonymous
users and also avoid some false-positive error rates when web
crawlers hit bad URLs.
2021-12-14 11:32:50 -05:00
Jawayria
bd5e00b725 fix: fixed RemovedInDjango40 warnings in common 2021-12-14 19:55:01 +05:00