Commit Graph

3988 Commits

Author SHA1 Message Date
David Ormsbee
998d38b8b1 Merge pull request #23344 from edx/ormsbee/learning_seq_api
Learning Sequence / Course Outline API
2020-06-03 09:45:39 -04:00
Ahtisham Shahid
b69163fae7 Merge pull request #24079 from edx/ahtisham/PROD-1412-2
Added v2 for confirm email backward compatibility
2020-06-03 17:13:49 +05:00
David Ormsbee
5d1b24988e Create learning_sequences app, Course Outline API.
Introduces the learning_sequences app, intended to provide metadata for
sequences and course outlines. The short term goal is to provide faster
source of this information for the new Courseware microfrontend
(frontend-app-learning). The medium term goal is to provide an in-proc
API that is useful to other parts of the platform that need fast access
to course outline information customized for a user. The long term
goals are outlined in the README.rst.

This first iteration of the API only lays out the basic structure for
how we'd arrange the pieces, with enough of an implementation to feel
"real" (simple schedules, staff_only content hiding). It's not ready to
be turned on, and is not currently plugged into the publish-flow. The
only way to get data into this new API is via the update_course_outline
management command. The REST endpoint is also currently limited to
global staff only, though it's possible to get the outline for a student
by using the ?username= query parameter.

TNL-7122
2020-06-02 15:31:21 -04:00
Ahtisham Shahid
af033d25cc Added v2 for confrim email backward compatiblity
updated tests

fixed style issue

Fixed tests for v2 api
2020-06-02 13:01:58 +05:00
Diana Huang
215e2d0530 Merge pull request #24051 from edx/diana/bridgekeeper-cleanup
Move to bridgekeeper upstream.
2020-06-01 10:08:24 -04:00
Ned Batchelder
24bc26867b Merge pull request #24068 from eduNEXT/defz/3521-resourcewarning-unclosed-file
Added 'with' statement to close file before returning
2020-05-29 16:43:54 -04:00
Diana Huang
92b10b564c Update to handle new format of ManyRelation. 2020-05-29 15:01:09 -04:00
morenol
3a8d029773 Add uses_pattern_library property to EdxFragmentView (#24027) 2020-05-29 09:05:18 -04:00
Christie Rice
8663b5becc MICROBA-403 Add phone number (#24087) 2020-05-28 16:19:29 -04:00
Hasnain Naveed
1712ad7a11 Merge pull request #24033 from edx/hasnain-naveed/ENT-2818
ENT-2818 | Added enterprise slug login's url on edx login page.
2020-05-28 21:07:48 +05:00
hasnain.naveed
c51dc9db20 ENT-2818 | Added enterprise slug login's url on edx login page. 2020-05-28 19:58:46 +05:00
Syed Muhammad Dawoud Sheraz Ali
9929b52907 change pipeline api client to OAuthApiClient (#24080)
* change pipeline API client to OAuthApiClient
2020-05-28 19:48:14 +05:00
Ubuntu
9b52d6cb28 Added with statement to close file before returning 2020-05-27 15:17:20 +00:00
Zainab Amir
bfd95c7fbb Remove transcript credential saving in VAL (#24066) 2020-05-27 18:38:01 +05:00
Matt Hughes
bd6dd986be Revert "Optimizing notify_credentials management command"
This reverts commit 3e987cfe76.
2020-05-26 13:23:07 -04:00
Calen Pennington
7341f296a3 Merge pull request #24050 from cpennington/exclude-ora-pls
Only add PLS dates to graded sections that have scored, non-ORA content.
2020-05-26 10:56:35 -04:00
Feanil Patel
c06f7b2fd7 Revert "Rate limit logistration endpoints."
This reverts commit 74bc970edc.
2020-05-21 11:41:09 -04:00
Feanil Patel
72ea1b7d4f Revert "Increase requests limit for logistration rate limit."
This reverts commit a1c018823d.
2020-05-21 11:40:47 -04:00
Waheed Ahmed
a1c018823d Increase requests limit for logistration rate limit. 2020-05-21 17:05:19 +05:00
Waheed Ahmed
74bc970edc Rate limit logistration endpoints.
PROD-1506
2020-05-21 13:45:48 +05:00
Waheed Ahmed
c7f4e16470 Fix XSS lint issues for course_cta_text
PROD-1602
2020-05-21 12:51:07 +05:00
Calen Pennington
d90a139259 Only add PLS dates to graded sections that have scored, non-ORA content. 2020-05-19 15:47:10 -04:00
Adeel Khan
3e987cfe76 Optimizing notify_credentials management command
** This removes some of the extra
   celery calls to credential service for
   updating grade when a certificate is updated.

** This removes extra db calls
   by reusing existing queryset values.

PROD-1363
2020-05-19 16:43:38 +05:00
Ned Batchelder
68aceff860 Merge pull request #23968 from edx/nedbat/docs-progress
Update swagger.yaml, fix some markup errors
2020-05-16 14:50:35 -04:00
Nick
a2b7b2689e Merge pull request #24005 from cpennington/schedule-history-PLS
[AA-139] Record schedule updates to the history table when granting e…
2020-05-15 11:52:40 -04:00
ihtram
74cbc1f4e7 Merge pull request #23965 from edx/ihtram/reverse-migration-fix
added reverse_sql method attribute to avoid sql operation error YONK-1588
2020-05-15 15:10:16 +05:00
stvn
0f57bff0cb Merge PR #23979 fix/courseware-api-verified-mode
* Commits:
  Check if user can upgrade prior to showing sock upgrade
2020-05-14 15:50:16 -07:00
stvn
51803d33ff Check if user can upgrade prior to showing sock upgrade 2020-05-14 15:09:04 -07:00
Calen Pennington
89e0fefdfa Merge pull request #24003 from cpennington/ignore-hidden-sections-for-PLS
Don't include staff-only sections in due date calculations for self-p…
2020-05-14 15:58:28 -04:00
Calen Pennington
76789e5a0d [AA-139] Record schedule updates to the history table when granting extensions 2020-05-14 15:56:13 -04:00
Calen Pennington
aaa8ffdcf1 Don't include staff-only sections in due date calculations for self-paced courses 2020-05-14 15:07:48 -04:00
Dave St.Germain
4b0617ab00 Merge pull request #23956 from edx/dcs/resume-api
Added courseware API for retrieving the last completed block
2020-05-14 11:17:12 -04:00
Michael Terry
3f2b2da22b Don't assume due dates on sections
The content highlights code assumed due dates existed on all
sections. But we recently broke that assumption. So now we
recalculate the spread of sections across the expected duration
ourselves rather than rely on due dates.
2020-05-14 09:26:49 -04:00
Dave St.Germain
687d223309 Added a courseware API endpoint to return the last completed block/unit/section. 2020-05-14 07:55:02 -04:00
edX requirements bot
5724432741 Python Requirements Update (#23984)
* Updating Python Requirements

* Constrain django-cookies-samesite until dep bug fixed

* Fix PEP 8 problems revealed by pycodestyle upgrade

Co-authored-by: Tim McCormack <tmccormack@edx.org>
Co-authored-by: Jeremy Bowman <jbowman@edx.org>
2020-05-13 20:24:30 +00:00
Jeff LaJoie
d1bd39c71b Merge pull request #23987 from edx/jlajoie/course-update-extra-logging
Adds more logging to course updates task
2020-05-13 14:32:03 -04:00
Ned Batchelder
ae657f09e0 Merge pull request #23814 from open-craft/toxinu/fix-anonymous-permission
Check contentlibrary permissions only if user is logged in
2020-05-13 14:19:21 -04:00
Jeff LaJoie
75f60af418 Adds more logging to course updates task 2020-05-13 08:37:44 -04:00
adeelehsan
5f26cde55f Merge pull request #23969 from edx/aehsan/PROD-1579/fixed_quality_violation
Fixed  xss lint violations
2020-05-13 06:39:01 +05:00
adeelehsan
3da5144fee Fixed python-wrap-html
PROD-1579
2020-05-13 06:12:30 +05:00
Olivia Ruiz-Knott
f72a6556a9 MICROBA-311 Add US State field to UserProfile
Add list of states and field to UserProfile model; add migration; add
state field to relevant serializers and to
ACCOUNT_VISIBILITY_CONFIGURATION. Removes state data if country is
changed to something other than United States.
2020-05-12 13:55:11 -04:00
Ned Batchelder
cca33732ba Correct markup mistakes in api docs 2020-05-12 13:36:14 -04:00
ihtram
002a24416e added reverse_sql method attribute to avoid sql operation error 2020-05-12 20:39:32 +05:00
Jeff LaJoie
8552403598 Merge pull request #23961 from edx/jlajoie/fix-serialization-course-updates
Fixes serialization of course key for celery in course updates command
2020-05-12 09:37:44 -04:00
Jeff LaJoie
972c7f3bc1 Merge pull request #23954 from edx/jlajoie/AA-163
AA-163: Fixes duplicate dates tab issue
2020-05-12 09:08:54 -04:00
Jeff LaJoie
c180070a9a Fixes serialization of course key for celery in course updates command 2020-05-12 09:02:49 -04:00
Jeff LaJoie
ee0f4567a8 AA-163: Fixes duplicate dates tab issue 2020-05-12 08:38:14 -04:00
Calen Pennington
ce6c9383d9 Merge pull request #23958 from cpennington/fix-case-collision-course-keys
Fix case collision course keys
2020-05-11 14:29:40 -04:00
Calen Pennington
bf16155c0f Make sure that case collisions don't propagate into the CourseOverview data 2020-05-11 13:55:27 -04:00
mariajgrimaldi
8063adf5eb changed cookie_date for http_date (#23929)
I wanted to make a byte-sized contribution but there were no Jira tickets so we decided, thanks to a conversation with @jmbowman through the Open Edx Community #incr (Slack) channel, to collaborate in the elimination of warnings listed in the Warnings Report at https://build.testeng.edx.org/job/edx-platform-python-pipeline-master/warning_5freport_5fall_2ehtml/

This PR contributes to the elimination of RemovedInDjango30Warnings, specifically the one mentioned above and reported in the Warnings Report

Changed cookie_date to http_date in the following file:

    openedx/core/djangoapps/user_authn/cookies.py

This warning occurs due to deprecation since Django 2.1: https://docs.djangoproject.com/en/2.2/ref/utils/#django.utils.http.cookie_date
2020-05-08 15:55:23 -04:00