Commit Graph

12966 Commits

Author SHA1 Message Date
Waheed Ahmed
d0adfdc079 fix: save for later urls issue (#29658) 2021-12-21 20:02:05 +05:00
Simon Chen
313afd70ae fix: update program enrollments to be case insensitive on external_user_key (#29646)
UTAsutin is an example partner who would use mixed casing on their external_user_key references for program enrollment upload and matriculation. Update the system to be case insensitive on external_user_key

Co-authored-by: Simon Chen <schen@edX-C02FW0GUML85.local>
2021-12-21 09:20:16 -05:00
AsadAzam
7fba083a49 fix: added staff check for discussions iframe (#29617) 2021-12-21 14:46:51 +05:00
Waheed Ahmed
c696469734 fix: save for later API ratelimit issue (#29650) 2021-12-21 14:05:55 +05:00
Jawayria
b33996d24e chore: Applied lint-amnesty on lms/djangoapps/grades (#29400) 2021-12-21 13:37:15 +05:00
Jawayria
309669f974 chore: Applied lint-amnesty on lms/djangoapps/instructor (#29399) 2021-12-21 13:37:04 +05:00
Jawayria
d0fbde8973 chore: Applied lint-amnesty on lms/djangoapps (#29395) 2021-12-21 13:36:50 +05:00
Jawayria
0d63afe840 chore: Applied lint-amnesty on lms/djangoapps (#29394) 2021-12-21 13:36:39 +05:00
Mohammad Ahtasham ul Hassan
139b46e611 fix: fixed RemovedInDjango40 warnings (#29588) 2021-12-21 12:44:50 +05:00
Tim McCormack
bbc2a6d0cb chore: Update organizations repo URL (moved to openedx org) (#29647) 2021-12-20 18:19:43 +00:00
Michael Terry
4418c66171 feat: add masquerading support to learning sequences
Previously, it had some basic manual masquerading by calling the
endpoint with ?user=mytestuser. But this adds standard session
masquerading support to the endpoint as well.

This support is limited by LS's own partition group support. It
only looks at the enrollment track partition currently. Further
FBE and cohort partition support will come later.

But this commit opens up normal session masquerading for:
- Generic student
- Specific student
- Enrollment track

AA-1151
2021-12-20 11:14:07 -05:00
Jillian Vogel
2ef69d513f refactor: removes xqueue_callback_url_prefix argument
from the lms get_module_for_descriptor and related methods.

This prefix was previously inferred from the request's base URL and
passed through several methods to reach the XQueueService creation.
But the request base URL always matches the LMS_ROOT_URL (or the preview
URL), so this change simply uses that setting instead.
2021-12-20 15:41:42 +01:00
Jillian Vogel
1974bacadd refactor: deprecates runtime.xqueue in favor of the XQueueService
* Deprecates ModuleSystem.xqueue property
* Adds new XQueueService to provide the deprecated property values to the LMS runtime
  (Studio does not need the XQueueService.)
* Adds tests for new service and updates the ModuleSystemShim tests in LMS and Studio
* Fixes existing tests.
2021-12-20 15:41:42 +01:00
Jillian Vogel
f828d89feb refactor: use UserService to remove deprecation warnings
from code and tests.
2021-12-20 15:41:25 +01:00
Jillian Vogel
e378e42bfa refactor: deprecate user-related ModuleSystem attributes
Deprecates these ModuleSystem attributes in favor of the user service:

* user_location
* get_real_user
* get_user_role

Related changes:

* Stores the user location into DjangoXBlockUserService's optional attribute as request_country_code
* Uses the student model's user_by_anonymous_it to fetch the (cached) real user
* Updates affected tests
2021-12-20 15:41:25 +01:00
Jawayria
829065128d Merge pull request #29393 from edx/jawayria/bom-2606-20
chore: Applied lint-amnesty on lms/djangoapps
2021-12-20 18:59:39 +05:00
Jawayria
91f80b444e Merge pull request #29401 from edx/jawayria/bom-2606-14
chore: Applied lint-amnesty on lms/djangoapps
2021-12-20 18:59:11 +05:00
Jawayria
75187e6a12 Merge pull request #29417 from edx/jawayria/bom-2606-18
chore: Applied lint-amnesty on lms/djangoapps
2021-12-20 18:58:58 +05:00
Jawayria
6d8a77ad15 Merge pull request #29402 from edx/jawayria/bom-2606-13
chore: Applied lint-amnesty on lms/djangoapps/discussion
2021-12-20 18:58:25 +05:00
Jawayria
949c7d8892 Merge pull request #29383 from edx/jawayria/bom-2606-11
chore: Applied lint-amnesty on lms/djangoapps/{course_home_api, course_wiki}
2021-12-20 18:57:54 +05:00
Awais Jibran
80e12af963 refactor: Adding some debug logs. (#29639) 2021-12-20 18:26:10 +05:00
Jawayria
332f0f1ea7 chore: Applied lint-amnesty on lms/djangoapps/discussion 2021-12-20 16:25:03 +05:00
Jawayria
846c9e95dc chore: Applied lint-amnesty on lms/djangoapps/{course_home_api, course_wiki} 2021-12-20 16:14:49 +05:00
Jawayria
c727359a37 Merge pull request #29381 from edx/jawayria/bom-2606-7
chore: Applied lint-amnesty on lms/djangoapps/{bulk_email, bulk_enroll}
2021-12-20 16:13:38 +05:00
Jawayria
efe22f19ab chore: Applied lint-amnesty on lms/djangoapps 2021-12-20 16:06:29 +05:00
Jawayria
1caae59c1a chore: Applied lint-amnesty on lms/djangoapps/{edxnotes, experiments} 2021-12-20 16:05:02 +05:00
Jawayria
305bd8ff76 chore: Applied lint-amnesty on lms/djangoapps/{teams, verify_student} 2021-12-20 15:45:00 +05:00
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
Jawayria
2145358836 chore: Applied lint-amnesty on lms/djangoapps/{badges, branding} 2021-12-17 16:20:30 +05:00
Jawayria
3207710aa3 chore: Applied lint-amnesty on lms/djangoapps/{bulk_email, bulk_enroll} 2021-12-17 16:19:09 +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
Waheed Ahmed
c1e4109396 fix: org image url in save for later event props (#29625) 2021-12-16 22:55:07 +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
Zainab Amir
dd610118a7 feat: create braze alias and event (#29612) 2021-12-15 19:07:25 +05:00
Matt Hughes
a92f372a3e fix: redirect behavior to learner-specific progress pages
JIRA:AU-375
2021-12-13 15:52:00 -05:00
Dillon Dumesnil
4abb7378d8 fix: Only evaluate queryset once
We are hoping this offers a performance improvement
2021-12-13 09:53:39 -07:00
=Awais Jibran
51b2b89bcd fix: add is_configured property 2021-12-13 15:11:31 +05:00
Dillon Dumesnil
f88fbada8d Merge pull request #29550 from edx/ddumesnil/batch-backpopulate-user-tours
feat: Add in batching and a delay to backpopulate user tours
2021-12-10 09:30:04 -08:00
Dillon Dumesnil
9b0fbbf5ed feat: Add in batching and a delay to backpopulate user tours
This should help memory usage when running the job
2021-12-10 09:58:11 -07:00
Matthew Piatetsky
5321d05b48 feat: add adr for weekly learning goals (#29543) 2021-12-09 13:02:41 -05:00
Abdurrehman
c73e46ff09 fix: resolve incomplete module import for field overrides (#29391) 2021-12-09 12:10:27 -05:00
AsadAzam
3f06445389 feat: added pii params for program discussions (#29532)
* feat: added pii params for program discussions

* refactor: added conditions
2021-12-09 18:39:34 +05:00