Commit Graph

6089 Commits

Author SHA1 Message Date
Calen Pennington
86e2677f26 Use a standard function to find out if a course has ended 2020-06-11 11:40:56 -04:00
Calen Pennington
1cf46e76d0 Don't compare None to a date when a course doesn't have an end date 2020-06-11 11:40:56 -04:00
Stu Young
b370745b9b management command to retire a single user (#24188) 2020-06-10 18:07:25 -04:00
Calen Pennington
c6695e0b6f Only actually reset user schedule if they have missed deadlines and not missed any gated content deadlines 2020-06-10 15:18:53 -04:00
Daniel Francis
4dc3251af5 render_to_response deprecated in Django 3 (#24141)
Fixing RemovedInDjango30Warnings

**Background:** The `django.shortcuts` method `render_to_response` became deprecated in [Django 1.3](https://docs.djangoproject.com/en/3.0/releases/1.3/), when  `render` was introduced.

Per the documentation:

> render() is the same as a call to render_to_response() with a context_instance argument that forces the use of a RequestContext.

Both return an `HttpResponse` object.

**Context:** We changed two statements: An import line and the call to the method, adding explicit parameter names to improve readability.

**Before:**
```
from django.shortcuts import get_object_or_404, render_to_response
...
return render_to_response("teams/teams.html", context)


```

**After**
```
from django.shortcuts import get_object_or_404, render
...
return render(
            request=request,
            template_name="teams/teams.html",
            context=context
        )

```
2020-06-10 14:25:04 -04:00
Ali-D-Akbar
0ecbe873d9 PROD-1574 2020-06-10 21:07:10 +05:00
adeelehsan
d879f9fd00 Merge pull request #23980 from edx/aehsan/PROD-1582/specify_user_message_for_about_me_in_profile
Specify bio field error message for user
2020-06-10 14:46:04 +05:00
adeel khan
76419f9d01 Merge pull request #23913 from edx/adeel/prod_1505_improve_security_lockouts_logic
Improving user locked out logic.
2020-06-10 14:21:16 +05:00
adeelehsan
4e1fe2045f Specify bio message for user
Currently user message is generic. Specifying for
bio field so that it make more sense to user.

PROD-1582
2020-06-10 14:19:39 +05:00
Waheed Ahmed
6b268c37b4 Rate limit logistration endpoints.
PROD-1506
2020-06-10 13:33:26 +05:00
Michael Terry
c520fe8f19 PROD-1633: fix highlights error case
When calculating course highlights, if we didn't manage to get
a course module, we were previously throwing an exception.
Handle that more gracefully.
2020-06-09 11:05:02 -04:00
Adeel Khan
2383fb3fa6 Improving user locked out logic.
This patch improves on the user locked
out logic by providing a helping message
near locked out. This would help reduce
retries by giving user the option to use
password reset flow to fix the issue.

PROD-1505
2020-06-09 09:36:42 +05:00
Adeel Khan
ebc2948f81 Fix key error.
Job is failing because of unhandled
case where the mode, status key is
not found in course_cert_info.

PROD-1363
2020-06-08 15:53:03 +05:00
Michael Terry
2fbf9d1f29 Merge pull request #24154 from edx/mikix/courseware-api-marketing-url
Add marketing_url to courseware_api
2020-06-05 10:04:55 -04:00
Tim McCormack
881cae6c67 Upgrade Python dependencies, including Django 2.2.13 fix (#24137)
- Updating Python Requirements
- Fix cache key generation to use class name and module

This was stringifying the class object directly, resulting in cache keys
like `:1:<class 'xblock_django.models.XBlockConfiguration'>.xblock_django.api.deprecated_xblocks`
which then cause breakage when Django 2.2.13 validates the keys.

Co-authored-by: edX requirements bot <testeng+edx-requirements-bot@edx.org>
2020-06-05 13:25:54 +00:00
Michael Terry
f88b4d75f0 Add marketing_url to courseware_api
This will let the courseware MFE point at a course's marketing page.

AA-137
2020-06-05 09:10:15 -04:00
Zainab Amir
cdc1c91980 Integrate Video Encode Manager (#24093)
* Add VEMPipelineIntegration config model
* Add course waffle flag to enable vem pipeline selectively

PROD-1636
2020-06-04 11:45:34 +05:00
Jeff LaJoie
7a45030de5 Merge pull request #24129 from edx/jlajoie/enable-highlights-job
Enables weekly highlights job for relative dates
2020-06-03 12:42:03 -04:00
stvn
9dd97a5c64 Merge PR #24020 add/staff-toolbar-links
* Commits:
  Remove 'View In Studio' link from vertical
  Add Studio and Insights buttons to Instructor Toolbar
2020-06-03 09:38:32 -07:00
Jeff LaJoie
5e6814c442 Enables weekly highlights job for relative dates 2020-06-03 12:07:56 -04:00
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
stvn
4490e4ca2b Remove 'View In Studio' link from vertical
in favor of display in the Staff Instructor Toolbar.
2020-06-02 16:00:33 -07: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
ericfab179
01f56ba530 Make upgrade requirement files. (#24078)
Remove pandas requirement.
Replace pandas functionality with itertools.group_by.
2020-06-01 09:08:09 -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
Adolfo R. Brandes
b2e90bc442 Optimize blockstore cache
First off, this fixes a bug where BundleCache would only set caches for
the duration of the default timeout, defeating the cache versioning
strategy.

Second, this adds an optimization so that bundle draft files are cached
as soon as possible.
2020-05-27 21:28:25 -03: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
Ben Warzeski
1703a88d46 remove old_format from team config tests (#24010)
* remove old_format from team config tests

* remove old format from teams_config

Co-authored-by: Ben Warzeski <benwarzeski@edX-C02CD0HCLVDM.cable.rcn.com>
2020-05-20 08:56:46 -04: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
Ben Warzeski
d357ec9b7b remove old format from teams_config 2020-05-19 15:34:38 -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