Commit Graph

53340 Commits

Author SHA1 Message Date
Michael Youngstrom
d97e7c737e Merge pull request #19081 from edx/youngstrom/run-all-unittests
Fix sharding for unittests to avoid skipped tests
2018-10-11 11:32:38 -04:00
Michael Youngstrom
fa8e920fe1 Fix sharding for unittests to avoid skipped tests 2018-10-11 11:00:30 -04:00
mduboseedx
c82fa99a34 Merge pull request #18336 from mitodl/fixed_instructor_api
Fixed code duplication in task listing api on instructor dashboard
2018-10-11 10:02:12 -04:00
Calen Pennington
5af7fffced Remove unnecessary mocking of CourseKey.from_string in tests 2018-10-11 09:54:12 -04:00
Calen Pennington
13c0dd580f Make Student Dashboard course access error messages float to the right of the unenroll gear 2018-10-11 09:54:12 -04:00
Calen Pennington
ae41ac446e Allow AccessResponse messages to appear on the student dashboard 2018-10-11 09:54:12 -04:00
Calen Pennington
2ce5417e0c Allow UserPartitions to specify a text or html message when a user is denied access because of their partition membership 2018-10-11 09:54:12 -04:00
Calen Pennington
3a7cff01e8 Allow AccessResponse objects to carry an HTML fragment targetted at the user 2018-10-11 09:54:12 -04:00
Calen Pennington
1d8fc40f29 Merge pull request #19064 from cpennington/courseware-absolute-import
Import courseware module from fully-qualified module name
2018-10-11 08:48:14 -04:00
Zia Fazal
9bfe4c3b6c Do not send user info to sailthru when registered from white label site
Added tests to support changes
2018-10-11 17:26:02 +05:00
Amir Qayyum Khan
9db5e83032 Fixed code duplication in task listing api on instructor dashboard 2018-10-11 12:28:21 +05:00
Nimisha Asthagiri
2b8a9d5148 Consistent expiration for all login-related cookies 2018-10-10 22:13:28 -04:00
Douglas Hall
f93c9a9298 Merge pull request #19080 from edx/douglashall/upgrade_edx_drf_extensions_1_11_0
Install the CSRF app included in edx-drf-extensions.
2018-10-10 17:07:05 -04:00
Nimisha Asthagiri
16605fa9c2 Merge pull request #19074 from edx/arch/fix-expiration
Fix overriding of token expiration in DOT (ARCH-246)
2018-10-10 16:59:16 -04:00
Calen Pennington
c57170dc48 Add a deprecation warning for when courseware is imported incorrectly 2018-10-10 15:34:33 -04:00
Calen Pennington
72f556c1a9 Import courseware module from fully-qualified module name 2018-10-10 15:34:33 -04:00
Dillon-Dumesnil
3c3e6a90fb Merge pull request #18941 from edx/ddumesnil/password
Switching to Django password validation format.
2018-10-10 14:29:14 -04:00
J Eskew
e145b9f8cc Merge pull request #19067 from edx/jeskew/add_retirement_warning_text
Add user retirement warning text about email retirement.
2018-10-10 12:52:14 -04:00
Douglas Hall
61319bf2c0 Install the CSRF app included in edx-drf-extensions. 2018-10-10 11:19:23 -04:00
Dillon Dumesnil
deb758c808 Added in tests for the new password validation. Fixed old tests that
relied on the old configuration values and old way of validating
passwords. Also improved registration page by always showing error
messages rather than hiding them on leaving the field.
2018-10-10 11:06:30 -04:00
Dillon Dumesnil
4fa27f98dc Implementing django password validators for edX. This involves removing
the old validate password method and configuration values in favor of
AUTH_PASSWORD_VALIDATORS, a list of validators to use to check a
password. These include some that come straight from Django and some
that were written according to Django's specifications. This work also
included maintaining the current messaging as instruction text and
passing along restrictions for the password field.
2018-10-10 10:58:21 -04:00
John Eskew
c8e640f88e fixup! Add user retirement warning text about email retirement. 2018-10-10 10:43:57 -04:00
Rabia Iftikhar
40918f36d8 Merge pull request #19075 from edx/ri/EDUCATOR-3213-all-forum-posts-access-global-staff
EDUCATOR-3213 make Global EdX Staff able to view all forum posts
2018-10-10 18:44:05 +05:00
rabiaiftikhar
aac430da34 EDUCATOR-3213 make Global EdX Staff able to view all forum posts 2018-10-10 12:01:23 +05:00
Ned Batchelder
6be27ed08d Merge pull request #18882 from appsembler/omar/ace-for-email-change
edX-ACE support for email change messages
2018-10-09 13:53:54 -04:00
emma-green
143a01915d Merge pull request #19066 from edx/emma.green/rev-bundling-fix-bundle-info
fix-bundle-info
2018-10-09 12:34:26 -04:00
Emma Green
5af901e016 fix-bundle-info 2018-10-09 09:27:15 -04:00
Nimisha Asthagiri
13d4091a1a Fix overriding of token expiration in DOT (ARCH-246) 2018-10-08 17:43:25 -04:00
Omar Al-Ithawi
ceacfc8a75 edX-ACE support for email change messages 2018-10-08 20:43:09 +03:00
Troy Sankey
f9488a8502 Merge pull request #19043 from edx/pwnage101/also-prevent-retired-email-reuse-via-account-settings-PLAT-2334
Prevent retired email reuse via account settings
2018-10-05 13:59:20 -04:00
Simon Chen
8293c17086 Merge pull request #19069 from edx/schen/LEARNER-3500
Default the ENFORCE_FREEZE_GRADE_AFTER_COURSE_END  waffle flag to be on
2018-10-05 13:36:14 -04:00
Michael Terry
c90edab169 Bundle an SQL query for performance
We were doing many individual SQL queries for certificates when
awarding program certs. It's possible this was contributing to
high SQL load. Instead, let's bundle those queries up into a larger
one.

LEARNER-6490
2018-10-05 12:43:47 -04:00
John Eskew
e493781996 Add user retirement warning text about email retirement. 2018-10-05 11:56:39 -04:00
Simon Chen
929ca61e6c Default the waffle flag to be on 2018-10-05 11:54:04 -04:00
Diana Huang
1f506fb09f Merge pull request #19050 from edx/diana/password-reset-email
Send password reset email after password compliance failure.
2018-10-05 09:37:07 -04:00
Troy Sankey
5b9bb005bd Prevent retired email reuse via account settings
PLAT-2334
2018-10-04 15:38:03 -04:00
Diana Huang
02c15bf563 Refactor password reset email and send after failure. 2018-10-04 15:22:24 -04:00
Robert Raposa
79b2992fe1 Merge pull request #19055 from edx/robrap/ARCH-233-jwt-auth-middleware
ARCH-233: Add JWT Auth Middleware.
2018-10-04 10:38:52 -04:00
Michael Youngstrom
b6f223ef80 Merge pull request #19057 from edx/youngstrom/fix-xdist-flaky-query-counts
Cache WaffleSwitch data to avoid query count failures with pytest-xdist
2018-10-04 10:36:22 -04:00
emma-green
53adc395b5 Merge pull request #19053 from edx/emma-green/bundle-discount-adding-type-and-title
rev-bundle-discount
2018-10-04 09:44:31 -04:00
Simon Chen
4132eb3fcd Merge pull request #19026 from edx/naa/freeze-grades
Stop-gap implementation to freeze grades 30 days after course end
2018-10-04 08:55:01 -04:00
Rabia Iftikhar
2075218919 Merge pull request #19034 from edx/ri/EDUCATOR-3514-download-student-profile-info
EDUCATOR-3514 increase the length of task_input while creating instance of InstructorTask
2018-10-04 17:18:04 +05:00
Nimisha Asthagiri
ddafbb0d29 POC: Stop-gap implementation to freeze grades. 2018-10-04 08:13:35 -04:00
Saleem Latif
44575e2b97 Merge pull request #19059 from edx/saleem-latif/ENT-1199
ENT-1199: edx-enterprise version upgrade to 0.73.6
2018-10-04 16:16:18 +05:00
Hasnain Naveed
6c31a78f3d Merge pull request #19001 from edx/hasnain-naveed/WL-1645
WL-1645 | Suppressing Error Alerts for WL Programs without Program Ce…
2018-10-04 13:29:20 +05:00
Saleem Latif
f3664d4d3e edx-enterprise version upgrade to 0.73.6 2018-10-04 12:38:08 +05:00
stv
9112de2309 Deprecate ImageModal HtmlModule
Stop displaying the template in CMS.

This has no effect on already-existing components; it merely prevents
new components from being created with this template.

All functionality has been replaced by the XBlock version [1][2].

Backstory:

This was written by Stanford, circa 2013; it was always a bit of
a hack. While it masquerades as if it were an XBlock/XModule, it's
really a YAML template for the HTML module. It depends on JS/CSS
that is embedded as a first-class citizen of the platform. This has
all caused confusion. Worse, it's a pain to edit/configure/update,
since it uses none of the XBlock infrastructure.

Nearly two years ago, we XBlock-ified the component and have
been running it ever since [1][2]. As such, we no longer support
this "component" and would suggest edX follow suite. Consider this
a request-for-comments on the path forward.

Process:

Deprecation of this module would follow a few steps:

1. Prevent new components from being added in Studio with this template.
    - This PR represents step 1.
    - This is backward compatible; it will have no effect on
      existing components.
2. (optional) Install the XBlock version.
    - This allows new ImageModal components to be added, now via the
      XBlock.
3. (optional) Identify and convert existing HTML modules to XBlocks [3].
    - We have enough of the legacy components in use that we can't
      just break support by removing this feature; we need a
      conversion process.
    - Because these are really just HTML modules with special
      contents, we have to query based on file contents (see, I told
      you this thing was hacky!):
        - All such components must contain an HTML anchor tag with
          the class `modal-content`.
    - Beyond the query, we don't intend to automate the actual
      conversion. Our use of the original component is limited
      enough that it's probably not worth converting from one module
      type to the other. Exacerbating the situation, because it's
      HTML, other changes could have been made to the module that
      would prevent automatic parity. As such, we'll work with our
      CoureOperations team to convert these manually at Stanford.
4. Remove all references.
    - At this point, we can safely remove all supporting static
      assets like CSS, JS, etc.
5. Enjoy less technical debt.

[1] https://github.com/Stanford-Online/xblock-image-modal
[2] https://pypi.python.org/pypi/xblock-image-modal/
[3] The one saving grace of the legacy component is that it was designed
    to degrade gracefully. Specifically, the HTML itself is just an
    image inside a link. The extra platform JavaScript progressively
    enhances the display, if the relevant CSS classes are found. As
    such, even if you removed all supporting CSS/JS from the platform
    tomorrow, existing legacy components would simply render as an image
    that links to a larger copy of itself. This is deemed an acceptable
    failure mode; graceful degradation FTW!
2018-10-03 16:47:38 -07:00
Emma Green
fcc1b55496 rev-bundle-discount 2018-10-03 17:20:43 -04:00
Michael Youngstrom
0744c0f99c Cache waffleswitch data to avoid query count failures 2018-10-03 17:09:30 -04:00
Robert Raposa
3e3c1333f0 Add JWT Auth Middleware.
From edx-drf-extensions:
1. EnsureJWTAuthSettingsMiddleware: Ensures proper JWT auth settings
   for endpoints.
2. JwtAuthCookieMiddleware: Combines the JWT auth cookie parts into a
   JWT auth cookie.

ARCH-233
2018-10-03 16:26:05 -04:00