Commit Graph

6209 Commits

Author SHA1 Message Date
Cali Stenson
4dcda2858e Add group partitions information to user metadata in the dom.
This information will inform our A/B testing and experiments.

REV-612
2018-11-16 16:34:17 -05:00
Gabe Mulley
5311509b19 Provide more context to calls to Segment.
Implementation for DE-1089.

Centralize the definition of context into a single method.  This is in
common/djangoapps/track because the context is originally set there by
middleware.
2018-11-15 20:56:10 -05:00
Bill Filler
1b60dea806 modify completion percentage calculation to account for single component that is excluded/ignored 2018-11-15 16:21:52 -05:00
Gabe Mulley
009c1f7901 REVE-81: fix errors in drag and drop and ORA2 xblocks
Also fixes REVE-82
2018-11-15 14:29:51 -05:00
Matt Tuchfarber
cc58aaaf8a Merge pull request #19269 from edx/tuchfarber/add_usd_to_content_gating
Add USD to content gating upsell
2018-11-15 13:53:46 -05:00
Waheed Ahmed
930d442592 Merge pull request #19264 from edx/waheed/LEARNER-6219-update-session-cookie-expiry
Update session cookie expiry.
2018-11-15 14:09:53 +05:00
Matt Tuchfarber
53536f2c96 Add USD to content gating upsell 2018-11-14 15:59:11 -05:00
Cali
db88e457a3 Merge pull request #19263 from edx/cstenson/gating_xblock_handler_test
Add Xblock Handler tests for content gating.
2018-11-14 14:33:07 -05:00
Cali Stenson
c34cbba464 Add Xblock Handler tests for content gating.
REVE-13
2018-11-14 10:55:51 -05:00
Brian Mesick
2dfa24d43a Merge pull request #19259 from edx/bmedx/speed_up_lms_misc
PLAT-2371 - speed up the LMS_MISC retirement step
2018-11-14 10:54:31 -05:00
Waheed Ahmed
bf5ad9b871 Update session cookie expiry.
Update session cookie expiry to 4 weeks regardless of remember me
checkbox is checked or not.

LEARNER-6219
2018-11-14 17:36:51 +05:00
Awais Jibran
4b9a8547d4 Merge pull request #19258 from edx/revert/paulo/anonymous-views
Revert "Merge pull request #18720 from open-craft/paulo/anonymous-views"
2018-11-12 13:03:44 +05:00
Cali Stenson
adffc11856 REVE-18: Test Content Type Gating For All Modes 2018-11-09 16:57:12 -05:00
Bill Filler
8409515be5 Only display content upsell message for Audit track
REVE-39
2018-11-09 13:18:55 -05:00
bmedx
1716b97cfc PLAT-2371 - speed up the LMS_MISC retirement step 2018-11-09 13:00:36 -05:00
Awais Jibran
194c6bacb6 Revert "Merge pull request #18720 from open-craft/paulo/anonymous-views"
This reverts commit f9ae594dfe, reversing
changes made to 7c08e50fde.
2018-11-09 22:49:14 +05:00
Bill Filler
7a80e91af0 Merge pull request #19257 from edx/bfiller/fix-broken-imports
Fix edx-drf-extension imports
2018-11-09 10:31:07 -05:00
Cali
72bdb24cdd Merge pull request #19247 from edx/cstenson/lti_problem_content_gating_tests
Add LTI problem type tests on content gating.
2018-11-09 10:01:15 -05:00
Bill Filler
a1f2c2cdde Fix edx-drf-extension imports 2018-11-09 09:56:23 -05:00
Cali Stenson
1ec08701d2 Add LTI problem type tests on content gating.
REV-492
2018-11-09 09:23:44 -05:00
Dave St.Germain
efa583283d Merge pull request #18975 from open-craft/MCKIN-8395/cohorts-api
Cohorting API
2018-11-09 07:25:38 -05:00
Paulo Viadanna
17c0d6d59f Add an alternative cohort management API
This is primarily intended to be used for server to server
communication. The endpoints support OAuth2 authentication.
2018-11-09 15:13:55 +05:30
Matthew Piatetsky
98069ba2cb Merge pull request #19250 from edx/REV-503/add-banner-to-courseware
add expiration banner
2018-11-08 18:17:43 -05:00
Matthew Piatetsky
6cc4fb34be add expiration banner 2018-11-08 17:27:12 -05:00
Matt Tuchfarber
be472a8d52 Extract upsell into template, extract ecomm call, use mobile utils 2018-11-08 11:40:06 -05:00
Gabe Mulley
372d51fd46 Display an upsell message instead of gated content
REV-504
2018-11-08 11:40:02 -05:00
Matthew Piatetsky
bd6018a4be Merge pull request #19236 from edx/REVE-78
change access_duration to be weeks_to_complete or default MIN_DURATION for all courses
2018-11-07 15:23:36 -05:00
Diana Huang
7c0aa06d5d Force new page if not set in site configs. 2018-11-07 15:10:58 -05:00
Matthew Piatetsky
dfe189e9bb change access_duration to be weeks_to_complete or MIN_DURATION for both SP and IP courses 2018-11-07 13:18:25 -05:00
Matthew Piatetsky
b996fd1b6e do not gate zero weight problems 2018-11-07 12:18:53 -05:00
Cali
eafbc0c8d2 Merge pull request #19195 from edx/cstenson/has_access_tests
Add has access tests to content gating graded problem types.
2018-11-07 10:05:01 -05:00
Cali Stenson
549941e608 Add has access tests to content gating graded problem types.
REV-492
2018-11-07 09:08:46 -05:00
Albert (AJ) St. Aubin
f5ef546652 Merge pull request #19240 from edx/aj/program_cache_logging
Updated logging to include stack trace
2018-11-07 09:07:26 -05:00
David Ormsbee
f9ae594dfe Merge pull request #18720 from open-craft/paulo/anonymous-views
Support for anonymous_view
2018-11-07 08:45:15 -05:00
Albert St. Aubin
caf89550f2 Updated logging to include stack trace 2018-11-07 08:19:53 -05:00
Paulo Viadanna
e6e0a02e0a Adds CouseModule.course_visibility and XBlock.public_view() for unenrolled users access to courses.
The course_visiblity field can have one of three values:
1. private (default): This keeps the standard access rules.
2. public_outline: Allows unenrolled and anonymous users access to the outline.
3. public: Allows unenrolled and anonymous users access to both outline and
   course content.

When an unenrolled user accesses course content, instead of student_view(),
public_view() is used. A default implementation is provided for XBlocks
which do not implement this view. The public_view() must not have any
functionality which assumes the presence of a valid User and should show
a readonly only interface for the XBlock content.
2018-11-07 16:18:39 +05:00
Michael Youngstrom
5880fd36bc Add waffle to installed_apps for commonlib 2018-11-06 14:53:33 -05:00
Ned Batchelder
63d84d65e5 Merge pull request #19215 from edx/nedbat/remove-unused-imports
Remove unused imports
2018-11-06 13:57:46 -05:00
Calen Pennington
6c5ee7209c Merge pull request #19108 from cpennington/stacked-configuration-models
Stacked configuration models
2018-11-05 13:43:25 -05:00
Shadi Naif
4df2073376 Fix exceptions raised when a lazy text is used in json dump 2018-11-05 12:24:45 +02:00
Ned Batchelder
3353e7425e Remove unused imports 2018-11-03 16:07:05 -04:00
Calen Pennington
8901bf4482 Add a facility for building stacked configuration models that control the same configuration on a Global, Site, Org and Course level 2018-11-02 15:36:01 -04:00
Ned Batchelder
8acea435cf setUpClassAndTestData is tricker than pylint understands 2018-11-02 11:06:59 -04:00
Ned Batchelder
59d78031d8 Fix trailing-comma-tuple warnings 2018-11-02 11:06:59 -04:00
Ned Batchelder
2d438d8bb5 Fix 'W605 invalid escape sequence' errors from pycodestyle 2018-11-02 06:06:43 -04:00
Bessie Steinberg
062b90c9ec Merge pull request #19204 from cpennington/fix-reve-68
Don't add the ContentGatingPartition to group_access in content_type_…
2018-11-01 15:55:14 -04:00
Calen Pennington
76859f04a8 Don't add the ContentGatingPartition to group_access in content_type_gating.field_overrides if the waffle flag is off 2018-11-01 15:20:15 -04:00
Brian Beggs
49015e6d1a Reset learners password when user is unGDPRed/unretired via django admin. 2018-11-01 15:09:36 -04:00
Calen Pennington
83d676cbfa Add Content Type Gating Behind Waffle Flag
Content Type Gating: Xblocks that have a graded component cannot be
accessed by audit track users.
  - Caveats:
    - In studio, instructors can set certain xblocks to be available to
      all users, but graded components will default to not being
      available for audit users
    - If a course does not have a verified mode option, all users will
      have access to graded content.

The Waffle Flag: The waffle flag is of for now.
  It's name is: ```content_type_gating.debug```

This Commit Does NOT Include: Displaying for a user WHY they do not have
access to a specific piece of content.  That change will be part of
another PR.
2018-10-31 12:34:48 -04:00
Robert Raposa
53239bdf37 Remove JWT_COOKIES_FLAG.
The JWT_COOKIES_FLAG was a temporary flag used for rollout of the new
JWT cookies. These are live in Production, so we are removing the flag.

Without this flag, we set JWT cookies during login. However, this
requires an oAuth Client that isn't always available during unit tests.
We introduced a feature flag that is only used for unit tests to
disable setting the JWT cookies. The code explains a bit more why this
solution was selected over adding the oauth client to the database.

ARCH-247
2018-10-31 10:29:05 -04:00