Commit Graph

58450 Commits

Author SHA1 Message Date
Binod Pant
bc5b71f044 upgrade edx-enterprise 3.7.1 (#24876) 2020-08-31 10:34:43 -04:00
edx-pipeline-bot
98ad7ce677 Merge pull request #24877 from edx/private_to_public_372254e
Mergeback PR from private to public.
2020-08-31 19:19:38 +05:00
Ali Akbar
9068b43ea6 Merge pull request #24871 from edx/aj/check-capa-logs
Adding debug logs for CR-2618
2020-08-31 18:36:53 +05:00
Régis Behmo
ba18d48ac3 Get rid of lepl deprecation warning by removing rfc6266 dependency (#24059)
The LEPL dependency was triggering a lot of deprecation warnings of the
form:

    venv/lib/python3.5/site-packages/lepl/matchers/support.py:497:
    DeprecationWarning: inspect.getargspec() is deprecated, use
    inspect.signature() instead
    argspec = getargspec(func)

It turns out that LEPL was only used by the rfc6266_parser package, which
itself was only used in one place to generate utf8-compliant
Content-Disposition headers.

This issue was noticed here:
https://github.com/SWW13/python-rfc6266-parser/issues/2
Unfortunately it is quite difficult to extract LEPL from the
rfc6266-parser package.

The rfc6266-parser package (https://pypi.org/project/rfc6266-parser/) is
itself a fork of the now-unmaintained rfc6266 package
(https://pypi.org/project/rfc6266/). Thus, it became high time to get
rid of this package. The FileResponse object can appropriately set the
Content-Disposition header, and thus replace the rfc6266 functionality,
since Django 2.0: https://code.djangoproject.com/ticket/16470

In our testing, the FileResponse object correctly set the
`filename*=utf-8''` value, following the RFC. The only difference is
that it does not provide "filename" fallback value, as expressed in the
RFC: https://tools.ietf.org/html/rfc6266#appendix-D

With rfc6266_parser:

    >> import rfc6266_parser
    >> rfc6266_parser.build_header("my_file_é.csv", filename_compat="video_urls.csv")
    b"attachment; filename=video_urls.csv; filename*=utf-8''my_file_%C3%A9.csv"

With FileResponse we have:

    >> from django.http import FileResponse
    >> import io
    >> response = FileResponse(io.StringIO(), as_attachment=True, filename="my_file_é.csv", content_type="text/csv")
    >> response.get("Content-Disposition")
    "attachment; filename*=utf-8''my_file_%C3%A9.csv"

We consider that this is a sufficiently minor difference, that will
impact very few browsers.
2020-08-31 09:30:27 -04:00
Carla Duarte
4e6bff8868 Merge pull request #24819 from edx/ciduarte/AA-125
AA-125: Add Course Goals to MFE API
2020-08-31 09:28:57 -04:00
Awais Jibran
a113dd2f90 Adding debug logs for CR-2618 2020-08-31 16:50:22 +05:00
edX requirements bot
3d70cfcbe3 Updating Python Requirements (#24870) 2020-08-31 14:42:32 +05:00
Uzair Rasheed
372254e3cb Merge pull request #200 from edx/security-fix/fix-xss-in-templates
Security fix/fix xss in templates
2020-08-31 10:53:24 +05:00
edX Transifex Bot
7a7cb2f984 fix(i18n): update translations 2020-08-30 17:48:44 -04:00
Régis Behmo
2a5a4fe2ba Fix problem viewing when CSMH is disabled
When the extended courseware module history feature is disabled
(ENABLE_CSMH_EXTENDED=false), the coursewarehistoryextended application
cannot be added to INSTALLED_APPS. Otherwise, the
StudentModuleHistoryExtended model is loaded in the project: it contains
signal receivers that automatically save objects to the student history
table. This table does not exist because the CSMH flag is disabled and
there is no student_module_history database.

So the feature flag is disabled and coursewarehistoryextended is not
part of INSTALLED_APPS: this was the default behaviour in Ironwood. To
make sure that this behaviour keeps working, we also need to make sure
that the migrations do not depend on the coursewarehistoryextended app
when the feature flag is disabled.
2020-08-29 18:06:12 +02:00
Sid Verma
1170a17b5f BlockLimitReachedError should returns a 400 response instead of 500 2020-08-29 01:08:38 +05:30
Carla Duarte
6392722e0e AA-125: Add Course Goals to MFE API 2020-08-28 10:31:59 -04:00
Albert (AJ) St. Aubin
a206e777af Write a migration to clean up and secure duplicate UserDemographics
entries

[MICROBA-551]
2020-08-28 10:23:06 -04:00
Agrendalath
acccc3a981 Fix exam timer text wrapping on smaller screens
This fixes wrapping the exam-text bar on smaller screens during timed exams, which prevented users from viewing the exam's content.
2020-08-28 14:56:26 +02:00
Ali Akbar
75495fd003 Merge pull request #24865 from edx/aakbar/remove-data-download-logs
Remove problem report and data download logs
2020-08-28 15:00:47 +05:00
Saleem Latif
9b72042bf4 Merge pull request #24854 from edx/saleem-latif/3336
ENT-3336: Added default for new enterprise setting INTEGRATED_CHANNELS_API_CHUNK_TRANSMISSION_LIMIT
2020-08-28 14:04:15 +05:00
Saleem Latif
c5502057b1 Added default for new enterprise setting INTEGRATED_CHANNELS_API_CHUNK_TRANSMISSION_LIMIT 2020-08-28 13:17:49 +05:00
Ali-D-Akbar
a316c6dbf6 remove problem report and data download logs 2020-08-28 12:44:42 +05:00
Usama Sadiq
0bef56a6ca Merge pull request #24863 from edx/testeng/bokchoy_auto_cache_update_a6bb5986b084ef773ba68686f3221eadd42157af
Bokchoy Testing DB Cache update
2020-08-28 12:09:10 +05:00
edX cache uploader bot
7f9ba4c401 Updating Bokchoy testing database cache 2020-08-28 01:45:31 -04:00
Aarif
dd6271e74a Updating Python Requirements (#24862) 2020-08-28 10:40:07 +05:00
edX requirements bot
b727458245 Updating Python Requirements 2020-08-28 00:46:17 -04:00
edX cache uploader bot
f6c6a71959 Updating Bokchoy testing database cache (#24859) 2020-08-28 00:11:10 +05:00
Muhammad Soban Javed
691b7c6173 Merge pull request #24857 from edx/iamsobanjaved/celery-40-compatible
Make redis broker compatible with celery 4.0
2020-08-27 23:06:10 +05:00
Demid
bf306ec482 Support self-paced courses in learning_sequences app
The main difference between how instructor-paced and self-paced courses
work with respect to the outline on the backend is how we treat the
hide_after_due attribute on subsections (sequences). Namely, self-paced
courses ignore due dates even if they are specified on the sequence
(for example, by OLX import). If hide_after_due is True in a self-paced
course sequence, we only make it inaccessible after the entire course
ends.

This was tracked as BD-29 and TNL-7262.
2020-08-27 12:54:20 -04:00
Ahtisham Shahid
71191dd32b added log to problem report exception handler (#24856) 2020-08-27 18:51:04 +05:00
Soban Javed
e945013b39 Make redis broker compatible with celery 4.0 2020-08-27 18:46:33 +05:00
Ned Batchelder
d2e5aa389b Merge pull request #24853 from EDUlib/sambapete/activation-language-email-fix
fixing language issue for original activation email on sites using mo…
2020-08-27 06:41:43 -04:00
Soban Javed
bafb7757d1 Upgrade redis to latest version 2020-08-27 15:27:41 +05:00
edX requirements bot
4fc2c8d38b Updating Python Requirements (#24852) 2020-08-27 14:08:23 +05:00
Pierre Mailhot
36db87e734 fixing language issue for original activation email on sites using more than one language
https://openedx.atlassian.net/browse/CRI-217
https://discuss.openedx.org/t/activation-email-in-multiple-languages/2808
2020-08-27 03:37:05 -04:00
Simon Chen
e2069f97a2 MST-348 Add the API to provide detailed ID Verification information (#24846) 2020-08-26 17:23:04 -04:00
edX Transifex Bot
a96b30d2e2 geoip2: update maxmind geolite country database 2020-08-26 17:03:40 -04:00
Matt Tuchfarber
25d305fce0 Merge pull request #24791 from edx/tuchfarber/refactor_get_programs_by_type
Refactor program type enrollment checks
2020-08-26 15:10:46 -04:00
Matt Tuchfarber
c4cf0b9bb7 Refactor program type enrollment checks
Checking if a user was enrolled in a program type was using the `name`
field which is subject to be translated. This change allows for us to check by
the type's slug which will be constant. This also includes the addition
of api.py files for the course_modes, catalog, and programs apps.
2020-08-26 14:29:39 -04:00
Alexander J Sheehan
535ee90d7d Merge pull request #24847 from edx/alex-sheehan-edx/bumping-enterprise-3.6.8
Bumping enterprise to 3.6.8
2020-08-26 14:20:36 -04:00
stvn
8f5e098ce1 Merge PR #24340 open-craft/taniwha/bb-2596
* Commits:
  Convert InvalidKeyError exception to NotFound
2020-08-26 09:57:19 -07:00
David Ormsbee
dfa9755f86 Merge pull request #24538 from edx/ormsbee/adr-role-of-xblock
ADR for the role of XBlock
2020-08-26 12:12:20 -04:00
Alexander Sheehan
377b4521f4 Bumping enterprise to 3.6.8 2020-08-26 11:40:14 -04:00
David Ormsbee
607400c403 ADR for the role of XBlock
Architecture Decision Record detailing the history of XBlock and
where we're going with it in the platform.
2020-08-26 10:37:37 -04:00
Troy Sankey
6e8a114b96 Merge pull request #24823 from edx/pwnage101/cleanup-unused-config-root
Cleanup unused CONFIG_ROOT variable and dead code.
2020-08-26 10:20:55 -04:00
M. Zulqarnain
a184c219fd Use pytest-xdist[psutil] (#24845) 2020-08-26 18:29:05 +05:00
Aarif
459accca1d Updating Python Requirements (#24842) 2020-08-26 14:43:49 +05:00
edX requirements bot
f3862385a1 Updating Python Requirements 2020-08-26 01:28:02 -04:00
Ali Akbar
8484866fdd Merge pull request #24837 from edx/aakbar/data-download-logs
Add logs in get_problem_responses
2020-08-25 17:50:27 +05:00
Ali-D-Akbar
ace525dd0c add logs in get_problem_responses 2020-08-25 17:19:19 +05:00
M. Zulqarnain
1df072d037 Merge pull request #24839 from edx/jenkins/upgrade-python-requirements-072a429
Python Requirements Update
2020-08-25 11:26:40 +05:00
edX requirements bot
9b3418bb70 Updating Python Requirements 2020-08-25 01:26:11 -04:00
stvn
072a42915e Merge PR #24572 fix/none/library-content
* Commits:
  Log and skip empty children when rendering library_content
2020-08-24 12:46:50 -07:00
stvn
3da9362ac8 Log and skip empty children when rendering library_content
instead of throwing an exception on None-access.
2020-08-24 10:04:25 -07:00