Commit Graph

22846 Commits

Author SHA1 Message Date
Michael Terry
6a41c61adc fix: don't escape assignment names in grades API
We had been pre-escaping display names like 'Math & Science' as
'Math & Science" in the REST API itself - which meant that
consumers like MFEs that do their own escaping displayed the wrong
thing.

It's better for the API to just leave the string as-is. As far as
I know, this only affects the gradebook and progress pages, both
of which do their own escaping of the result from the API already.

AA-808
2021-06-03 11:11:07 -04:00
Shimul Chowdhury
2a8a58ae6b feat: add Course Membership API
The get_course_members API returns a dict of users associated with a course.
This is a potentially expensive operation on a large course, so there is a
control in place to limit its cost.  If a course has more than
settings.COURSE_MEMBER_API_ENROLLMENT_LIMIT enrollments, then the function
raises an OverEnrollmentLimitException.

This API was added to help implement the LTI 1.3 Names and Roles Provisioning
service.

Jira references: [BD-24] [BB-2726] [TNL-7330] 
Pull request: #25843
Co-authored-by: Giovanni Cimolin da Silva <giovannicimolin@gmail.com>
2021-06-03 09:38:13 -04:00
Maari
a0165e88b2 Badgr integration updates (#27181)
* Badgr integration fix

Badges are no longer created on the Badgr side with a given
'slug'. Instead, a slug(v1) or an entityId(v2) will be generated
for each badge on the Badgr side and we will need to use that
value to check if a certain badge matching a BadgeClass on our side
exists and/or to create assertions for it.

This commit introduces a new field to the badgeclass:
'badgr_server_slug' by cherry-picking the following commit from
3309aab2a2eb00d28c5ca3d3145c8dddb15e6159
- TTK-18543: fix Badgr Server
connection (https://github.com/teltek/edx-platform/pull/46)

This commit also modifies the cherry-picked commit by making the newly
added field optional since the BadgeClass is not neccessarily always used
with the Badgr backend.

Co-authored-by: mrey <mrey@teltek.es>

* Implement OAuth2 tokens flow for BadgrBackend

* Use Badgr v2 API

Co-authored-by: mrey <mrey@teltek.es>
2021-06-03 08:46:21 -04:00
Matthew Piatetsky
afbfc1d31f Merge pull request #27813 from edx/AA-759b
[AA-759b] fix: pass course_key as a string in the edx.bi.experiment.AA759.bucketed event
2021-06-02 17:06:41 -04:00
Matthew Piatetsky
acbec4d0c1 fix: pass course_key as a string in the edx.bi.experiment.AA759.bucketed event 2021-06-02 16:02:23 -04:00
Carla Duarte
6e843f9e72 Merge pull request #27800 from edx/ciduarte/AA-807
feat: surface subsection block keys in progress api
2021-06-02 12:05:08 -04:00
Christie Rice
8c9435cbbf docs: Write ADR on web certs (#27726)
MICROBA-1218
2021-06-02 10:23:53 -04:00
Christie Rice
953004e58a feat: Add CertificateAllowlist model (#27802)
MICROBA-982
2021-06-02 09:20:02 -04:00
Matthew Piatetsky
cea450a35b fix: pass in course key when checking the bucket for the streak discount experiment 2021-06-01 16:32:21 -04:00
Justin Hynes
855cf11dd1 docs: update event info in comments of the emit_certificate_event function
[MICROBA-1075]
- update event info in comments of the `emit_certificate_event` function
2021-06-01 13:11:30 -04:00
Carla Duarte
cecd37c45b feat: surface subsection block keys in progress api 2021-06-01 09:57:54 -04:00
Ali-D-Akbar
760539cd80 Revert "feat: Add Help Center search in Contact Us"
This reverts commit aadbad02b2.
2021-05-29 01:54:41 +05:00
Ali Akbar
3027cab454 Merge pull request #27728 from edx/aakbar/PROD-1473
feat: Add Help Center search in Contact Us
2021-05-29 00:02:18 +05:00
Josh McLaughlin
2650d591fd feat: Use pluggable override for certificate html view 2021-05-28 11:10:52 -07:00
Ali-D-Akbar
aadbad02b2 feat: Add Help Center search in Contact Us 2021-05-28 23:08:16 +05:00
Kyle McCormick
8f577003fe refactor: uninstall user_tasks app from lms (#27754)
The user_tasks app is only needed by a cms feature.
However, it has been listed under INSTALLED_APPS
for both cms and lms because app-permissions only ran
in an lms context until recently.

Since app-permissions now creates the user_tasks_admin
group in a cms context, the app can be safely removed
from lms's INSTALLED_APPS.

TNL-8274
2021-05-28 10:19:48 -04:00
Adam Stankiewicz
50c8ab2d7b fix: close modal on escape keydown (#27758) 2021-05-28 10:01:12 -04:00
Adam Stankiewicz
31f66a4f2c feat: enterprise learner portal access modal (#27736)
* feat: enterprise learner portal access modal

* fix: quality

* fix: remove log.info
2021-05-27 15:31:27 -04:00
Matthew Piatetsky
1d282aac5a Merge pull request #27735 from edx/AA-825
[AA-825] feat: add stacked config model for disabling the frontend-app-learnin…g progress page
2021-05-27 12:09:29 -04:00
Matt Tuchfarber
b6fe11ea43 Merge pull request #27737 from edx/tuchfarber/fix_program_explicit_queue
fix: remap explicit queues for program tasks
2021-05-27 11:01:11 -04:00
Matthew Piatetsky
e6268470b8 feat: add stacked config model for disabling the frontend-app-learning progress page 2021-05-27 10:40:43 -04:00
Matt Tuchfarber
e4d3c1a59b fix: remap explicit queues for program tasks
Program tasks got moved from tasks.v1.tasks.py to just tasks.py, but
the mapping was never updated.
2021-05-27 10:01:02 -04:00
Justin Hynes
3218ee4f1c Merge pull request #27723 from edx/jhynes/microba-1075_events
feat: add `edx.certificate.revoked` event
2021-05-27 09:11:09 -04:00
Diane Kaplan
c3a22eb6e5 feat: remove course_home_welcome upsell link (REV-2131) (#27603) 2021-05-26 15:13:09 -04:00
João Cabrita
23eb110c26 fix: Produce grade report when subsections have future start dates
When getting a subsection grade for a user, instead of failing
if the user can't access that subsection,
fallback to the collected structure.
2021-05-26 11:16:37 -07:00
Diane Kaplan
5ac710995d feat: remove course_home_course_tools upsell link (REV-2131) 2021-05-26 12:02:18 -04:00
Matthew Piatetsky
bb58466498 Merge pull request #27731 from edx/AA-759
[AA-759] update name of flag in bucketing check
2021-05-26 10:17:18 -04:00
Matthew Piatetsky
c2d291781d update name of flag in bucketing check 2021-05-26 09:24:03 -04:00
Justin Hynes
48f4f9f475 feat: add edx.certificate.revoked event
[MICROBA-1075]
- Adds a new `edx.certificate.revoked` event to the LMS.
- Refactor of our certificate revocation functions in the GeneratedCertificate model.

This new event will be emit when a GeneratedCertificate with the status of `downloadable` is revoked (through the `invalidate(), mark_notpassing(), or mark_unverified() functions). Event will have a `source` field that will allow us how our certificates are being revoked from learners and can be broken down in the following way:
*Invalidate*
- allowlist_removal
- certificate_generation
- certificate_regeneration
- certificate_service
- certificate_invalidation_list
- bulk_certificate_regeneration

*mark_notpassing*
- certificate_generation
- notpassing_signal

*unverified*
- certificate_generation
2021-05-25 13:44:01 -04:00
Christie Rice
a699fe5281 docs: Add documentation for GeneratedCertificate fields (#27722)
MICROBA-1218
2021-05-25 13:27:56 -04:00
jawad khan
15f33dc1b2 revert: show empty container blocks from the course blocks api when called by mobile (#27707)
REVE-52 is merged and mobile
traffic from older app versions is < 5% of the mobile traffic.
Therefore we dont need changes from this PR 325fbe4eb2 (diff-c061bf405edf96531766b26cc2bcc2bb3639d851e5d9f844612c2ea57c35e56e)

LEARNER-8377
2021-05-25 20:30:26 +05:00
Gábor Boros
baca47782b feat: add CCX ID to generated filename prefixes (#27028) 2021-05-25 10:25:07 -04:00
Albert (AJ) St. Aubin
351228cee4 refactor: Updating cert availability messaging.
[MICROBA-678]

Added cert availability date to the API used to get certificate status
by the learning MFE to support updated messaging.

Updated the cert availability messaging in the Coruse Dashboard,
including a text color change.
2021-05-24 12:42:03 -04:00
Felipe Montoya
af0229c447 Merge pull request #27172 from msaqib52/saqib/TSD-CERTIFICATES
[TSD] add annotations for CERTIFICATES_HTML_VIEW feature flag
2021-05-24 11:24:59 -05:00
Sameen Fatima
0be941b224 ENT-4095: Handle coupon expiration date scenario in LMS (#27704) 2021-05-24 14:50:34 +05:00
Diana Huang
9ef3b17263 docs: Add README to lms/templates/oauth2_provider (#27682)
* docs: Add README to lms/templates/oauth2_provider

We wanted to move this single template into a djangoapp,
but there are technical limitations to us doing so.
This README helps explain the limitations so
future generations will know why this is here.

* Update lms/templates/oauth2_provider/README.rst

Co-authored-by: Robert Raposa <rraposa@edx.org>

* Update lms/templates/oauth2_provider/README.rst

Co-authored-by: Robert Raposa <rraposa@edx.org>

Co-authored-by: Robert Raposa <rraposa@edx.org>
2021-05-20 13:37:59 -04:00
Carla Duarte
8542b9c840 Merge pull request #27670 from edx/ciduarte/AA-816
feat: add total number of assignments to progress API (AA-816)
2021-05-19 13:43:46 -04:00
Dillon Dumesnil
4dfce2c4f8 Merge pull request #27668 from edx/ddumesnil/end-date-update-aa-686
feat: Update the course end date block display logic
2021-05-19 08:49:56 -07:00
Dillon Dumesnil
8aeb460133 feat: Update the course end date block display logic
For self-paced courses, we have decided to switch to showing the end
date as long as it is within 365 days rather than the expected
duration of the course.
2021-05-19 09:09:57 -04:00
Sameen Fatima
d8b07ebacd Revert "ENT-4095: Handle coupon expiration date scenario in LMS (#27539)" (#27675)
This reverts commit 9f2a72ad08.
2021-05-19 18:06:21 +05:00
Albert (AJ) St. Aubin
1b13ff4c21 refactor!: Removing the cert_whitelist management command
[MICROBA-1052]

We are removing the cert_whitelist management command because it does
not provide a clear value with the current state of Certificate
generation on edx-platform. It adds a user to the whitelist table, but
does not generate a certificate.

We recommend using the exceptions tab in the Instructor tab of the LMS
Course.
2021-05-19 07:11:12 -04:00
Sameen Fatima
9f2a72ad08 ENT-4095: Handle coupon expiration date scenario in LMS (#27539) 2021-05-19 12:47:11 +05:00
Carla Duarte
d7a4948b8e feat: add total number of assignments to progress API (AA-816) 2021-05-18 17:18:25 -04:00
Azan Bin Zahid
0f1ea9b254 Merge pull request #27639 from edx/azan/PROD-2333
feat: add activation_key in accounts view
2021-05-18 21:18:04 +05:00
Azan Bin Zahid
d9abf98056 feat: add activation_key in accounts view 2021-05-18 20:09:00 +05:00
Bianca Severino
e9fd0a0667 Merge pull request #27658 from edx/bseverino/drop-expiry-date-migration
[MST-785] Drop expiry_date column from SoftwareSecurePhotoVerification
2021-05-18 09:33:56 -04:00
Simon Chen
ce6087f546 [Chore]:MST-677 Cleanup the waffle flag to roll out Proctoring Improvements (#27657) 2021-05-17 20:46:24 -04:00
David Ormsbee
2376b3d124 Revert "refactor: upgrade django=2.2.23. Fileupload issue fixed." 2021-05-17 17:22:41 -04:00
Awais Qureshi
61be2b554b Merge pull request #27638 from edx/awais786/upgrade-django
refactor: upgrade django=2.2.23. Fileupload issue fixed.
2021-05-17 22:47:51 +05:00
Bianca Severino
51f014a515 feat: migration to drop expiry_date column 2021-05-17 13:36:15 -04:00