Commit Graph

52961 Commits

Author SHA1 Message Date
asadazam93
86b3dfbc54 Fixed bytes in filename 2020-01-21 16:04:46 +05:00
Ahtisham Shahid
0ce89b70eb Merge pull request #22873 from edx/ahtisham/PROD-1126
created separate const for search_index_update queue
2020-01-21 11:45:46 +05:00
adeel khan
8f9dfaba49 Merge pull request #22892 from edx/adeel/prod_1178_add_remove_footer_logo
Adds instagram and removes google-plus footer links
2020-01-20 13:29:42 +05:00
edx-transifex-bot
e406aaa658 fix(i18n): update translations (#22899) 2020-01-20 13:28:44 +05:00
Aarif
84afadb4e7 Merge pull request #22886 from edx/BOM-1155
Removed the deprecated app_name usage from lms/urls.py BOM-1155
2020-01-20 12:09:08 +05:00
Brandon Baker
84ebcdf1ec Bump edx-enterprise to 2.1.0 (#22894) 2020-01-17 15:33:24 -05:00
Brandon Baker
4fc19f5d8c Add enterprise catalog url settings to CMS (#22895) 2020-01-17 14:26:42 -05:00
Adeel Khan
4b6cf4801c Adds instagram and removes google-plus footer links
PROD-1178
2020-01-17 23:27:28 +05:00
Jansen Kantor
2043a29477 change lms team config (#22893) 2020-01-17 11:40:12 -05:00
David Ormsbee
0800f5f226 Merge pull request #22837 from open-craft/youtube-metadata-new-runtime
Add way to get YouTube metadata that doesn't require a session cookie
2020-01-17 11:02:05 -05:00
Adam Butterworth
ca1dfbce70 fix: fragment include directive should include files in themes if they exist (#22880) 2020-01-17 09:00:03 -05:00
edX requirements bot
5e583a27df Updating Python Requirements (#22889) 2020-01-17 08:48:31 -05:00
M Zulqarnain
9ed8159441 Merge pull request #22875 from edx/zulqarnain/BOM-1145
BOM-1145 : Django 2.2 Supported version of sorl-thumbnail
2020-01-17 15:51:53 +05:00
Ahtisham Shahid
7a026b7850 created const for update_search_index 2020-01-17 14:29:30 +05:00
Aarif
9cca22fd8f removed deprecated app_name 2020-01-17 13:00:40 +05:00
adeelehsan
3894021ada Merge pull request #22585 from edx/aehsan/prod-1063/added_unsubscribe_link_in_bulk_email
Unsubscribe link added in bulk emails
2020-01-17 12:23:39 +05:00
Usama Sadiq
0ceb324a9c Merge pull request #22874 from edx/usama/bom-1141
BOM-1141 Upgrade social-auth-app-django
2020-01-17 11:44:21 +05:00
Braden MacDonald
c7d5efb796 Add way to get YouTube metadata that doesn't require a session cookie
The Video Player XBlock will sometimes make API calls to /couses/yt_video_metadata, a REST API endpoint that in turn loads video metadata from YouTube using the configured settings.YOUTUBE_API_KEY.

However, in the Blockstore-based XBlock runtime, we are running XBlocks in a secure sandbox, and the user's browser cannot pass session cookies when calling REST API endpoints. So currently, the video XBlock tries to request YouTube metadata from that API endpoint, but it fails if run within such a sandbox.

The existing API also doesn't work for anonymous users (users who are allowed to see video XBlocks but who have not logged in to an LMS user account).

This commit updates the Video XBlock so that it can use a handler to load the data from YouTube instead of a generic REST API. This works well in the new runtime, because it has code to support calling handlers within the sandbox, including by anonymous users.

I also fixed a bug where on a default devstack, the endpoint will try calling YouTube using PUT_YOUR_API_KEY_HERE as an API key, and get a "bad request" error from YouTube.

The code could be re-organized by moving things around, but I've left everything as-is for now to keep the diff as small as possible.
2020-01-16 13:25:16 -08:00
edX cache uploader bot
c596a533e6 Updating Bokchoy testing database cache (#22878) 2020-01-16 15:15:10 -05:00
Calen Pennington
9c5f1271cf Merge pull request #22865 from cpennington/dont-delete-course-overviews
Dont delete course overviews
2020-01-16 13:57:13 -05:00
Zulqarnain
fd036541e8 Use python 2.2 compatible version of sorl-thumbnail 2020-01-16 23:37:57 +05:00
Calen Pennington
be5ca3dedd Add a test that shows that CourseModes aren't deleted when CourseOverview versions are updated 2020-01-16 12:07:27 -05:00
Diana Huang
ad33e0e573 Merge pull request #22876 from edx/testeng/bokchoy_auto_cache_update_e00340173c2d18e4052a08fe465230530b2d3202
Bokchoy Testing DB Cache update
2020-01-16 11:28:37 -05:00
brianhw
aac1071f42 Merge pull request #22867 from edx/brian/DE-1824-step3
Update edx-val from 1.2.0 to 1.2.1
2020-01-16 09:41:16 -05:00
usamasadiq
6803f75cd7 BOM-1141 Upgrade social-auth-app-django
Added the link to latest master commit of GitHub for Django 2.2 support.
2020-01-16 19:28:56 +05:00
Zulqarnain
176b814277 Downgrade version of edxval 2020-01-16 19:13:36 +05:00
edX cache uploader bot
ad631f4d32 Updating Bokchoy testing database cache 2020-01-16 08:54:48 -05:00
adeel khan
425f9368ea Merge pull request #22869 from edx/adeel/prod_604_fix_footer_link
Fix footer link for wcag.
2020-01-16 18:52:45 +05:00
Awais Qureshi
2bfe5662e4 Merge pull request #22870 from edx/remove-moto
BOM-1126
2020-01-16 18:50:36 +05:00
Awais Qureshi
9b9a74e6fd Merge pull request #22860 from edx/awais786/BOM-1050
Awais786/bom 1050
2020-01-16 18:49:28 +05:00
Zulqarnain
e7694baeed Added django 2.2 compatible versio of sorl-thumbnail 2020-01-16 16:52:43 +05:00
Awais Qureshi
269b34a198 BOM-1126
Removing the moto.
2020-01-16 15:04:24 +05:00
Syed Muhammad Dawoud Sheraz Ali
4aded59e05 Merge pull request #22871 from edx/dsheraz/PROD-1110
remove the logs
2020-01-16 14:39:51 +05:00
DawoudSheraz
466e2ce530 remove the logs 2020-01-16 13:14:29 +05:00
Awais Qureshi
b760a156ba Bom-1050
django-appconf bump version using commit hash for django2.2
2020-01-16 11:47:37 +05:00
Awais Qureshi
391c4aecb6 Merge pull request #22674 from edx/awais786/BOM-1126
BOM-1126
2020-01-16 10:44:21 +05:00
Adeel Khan
c06e7cecc0 Fix footer link for wcag.
PROD-604
2020-01-16 03:24:19 +05:00
Brian Wilson
d290904213 Update edx-val from 1.2.0 to 1.2.1
This is step 3 of DE-1824.

Also update:
* six 1.13.0 => 1.14.0
* edx-django-utils 2.0.2 => 2.0.3
* skip test that checks all model changes have migrations.  (We defer
  this to step 4.)
2020-01-15 16:02:28 -05:00
Calen Pennington
675b8c0d71 CourseOverviews may be deleted, but we don't want to delete related objects 2020-01-15 15:23:51 -05:00
David Ormsbee
b3e2a8ef55 Merge pull request #22858 from open-craft/video-field-parsing-fix
Fix: KeyError: 'source' when parsing HTML5 videos
2020-01-15 14:32:44 -05:00
Jansen Kantor
cec55074e8 jkantor/teamconfig (#22863)
Add TeamsConfigurationService to lms xblock runtime
2020-01-15 14:27:27 -05:00
Calen Pennington
2abfc665da Rather than deleting CourseOverviews to update their version numbers, just reload them from the modulestore 2020-01-15 13:30:41 -05:00
Braden MacDonald
d39421d947 Fix: KeyError: 'source' when parsing HTML5 videos
This fixes a bug that causes the video XBlock parsing to break in the new XBlock runtime if:
* the html5_sources field is set, and
* the download_video field is not set

The error is:

  File "/edx/app/edxapp/edx-platform/openedx/core/djangoapps/xblock/rest_api/views.py", line 52, in render_block_view
    block = load_block(usage_key, request.user)
  File "/edx/app/edxapp/edx-platform/openedx/core/djangoapps/xblock/api.py", line 84, in load_block
    return runtime.get_block(usage_key)
  File "/edx/app/edxapp/edx-platform/openedx/core/djangoapps/xblock/runtime/blockstore_runtime.py", line 70, in get_block
    block = block_class.parse_xml_new_runtime(xml_node, runtime=self, keys=keys)
  File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/video_module/video_module.py", line 620, in parse_xml_new_runtime
    setattr(video_block, key, cls.fields[key].from_json(val))
  KeyError: 'source'

The reason for the error is that parse_video_xml() will sometimes return a 'source' attribute in its field_data return value, even though source is not a video field (anymore). This then causes an error when trying to look up cls.fields['source']

A workaround in the meantime is to add download_video="false" to the OLX.
2020-01-15 10:26:55 -08:00
Awais Qureshi
220cab965f BOM-1126
Removing the moto from repo.
2020-01-15 22:34:13 +05:00
Diana Huang
6dbc0e77d2 Merge pull request #22843 from edx/jenkins/upgrade-python-requirements-533adf6
Python Requirements Update
2020-01-15 10:40:23 -05:00
Dave St.Germain
cfd1e2ae7d Merge pull request #22707 from edx/dcs/sequence-api
Implementation of metadata endpoint for sequence modules
2020-01-15 10:33:18 -05:00
Usama Sadiq
4b1a0105df Merge pull request #22846 from edx/usama/bom-1087-django-mysql-version-bump
BOM 1087  django-mysql version bump
2020-01-15 18:49:22 +05:00
usamasadiq
aee3318cbd BOM 1087 django-mysql version bump
Removed the version constraint for django-mysql
Also pinned the freezegun version to 0.3.12 as the latest version is causing failures.
2020-01-15 17:54:42 +05:00
adeelehsan
12708a093d Unsubscribe link added in bulk emails 2020-01-15 16:56:35 +05:00
M Zulqarnain
e5407a31ee Merge pull request #22841 from mzulqarnain1/zulqarnain/BOM-1147
BOM-1147 -- Create a code mod for Widget.render change
2020-01-15 11:35:58 +05:00