Commit Graph

40296 Commits

Author SHA1 Message Date
Jeremy Bowman
c8f7587f6b Merge pull request #14552 from edx/jmbowman/async_course_import
PLAT-1104 Import courses asynchronously
2017-02-27 12:01:06 -05:00
Jesse Shapiro
c6e6c8727d Merge pull request #14556 from open-craft/haikuginger/fix-enterprise-enrollment-api-url
[ENT-208] Update AWS ENTERPRISE_ENROLLMENT_API_URL variable
2017-02-27 10:41:44 -05:00
David Ormsbee
d439da4418 Merge pull request #14583 from edx/ormsbee/remove_dealer_git_for_lms
Remove dealer.git use for LMS.
2017-02-24 17:37:43 -05:00
Eric Fischer
446f13c8e5 Merge pull request #14587 from edx/efischer/version_bumpbs
Update ora2 and submissions
2017-02-24 17:15:26 -05:00
Brandon DeRosier
36b0068bd1 Merge pull request #14542 from open-craft/bdero/ent-162
ENT-162 Create an EnterpriseCourseEnrollment during the enrollment flow
2017-02-24 16:24:19 -05:00
alisan617
c51c103880 Merge pull request #14576 from edx/alisan/discussion-topic-TNL-6205
Discussion topic area section after Add Post
2017-02-24 15:58:43 -05:00
sanfordstudent
28e043ae62 Merge pull request #14582 from edx/sstudent/TNL-6297
short circuit on library publish; for TNL-6297
2017-02-24 15:16:09 -05:00
Christina Roberts
e67529464c Merge pull request #14573 from edx/christina/remove-profile-xblock
Remove Profile XBlock.
2017-02-24 15:04:54 -05:00
alisan617
4197ebf7f4 check if general topic exists 2017-02-24 15:04:25 -05:00
Eric Fischer
105184ecd2 Update ora2 and submissions 2017-02-24 15:02:00 -05:00
Brian Beggs
5a799c3e03 Merge pull request #14578 from edx/edx-django-release-util/0.3.0
Change edx-django-release-util version.
2017-02-24 14:32:55 -05:00
Sanford Student
041a3df911 short circuit on library publish; for TNL-6297 2017-02-24 13:59:29 -05:00
David Ormsbee
4dc087ae69 Remove dealer.git use for LMS.
We use the dealer.git library to determine the current revision of
edx-platform at startup time and store that as EDX_PLATFORM_REVISION in
our settings. This can take a surprisingly long time and involve a lot
of disk IO to initialize.

Studio still needs this functionality because it determines its static
asset folder based partly on the hash. This is horrible, because it
means all static assets are invalidated on every release instead of
just the ones that change. But that will be the subject of a different
PR.
2017-02-24 11:16:11 -05:00
David Ormsbee
ae1853bc30 Merge pull request #14547 from edx/ormsbee/all_certs_for_user
Find the courses a user has certs for up front.
2017-02-23 23:20:38 -05:00
David Ormsbee
47e606b3ca Find the courses a user has certs for up front.
Before this commit, we had to do a separate query for every course a
user was enrolled in when determining whether a course was refundable
(if you have a certificate, it isn't). Now the student dashboard will
make a one-time query to grab all of a user's cert-issued courses. This
is indexed, so it should be much faster than grabbing each one
separately.
2017-02-23 22:24:00 -05:00
Brandon DeRosier
cb85ef1f5b ENT-162 Create an enterprise enrollment during the enrollment flow 2017-02-23 19:15:20 -05:00
Clinton Blackburn
78f235a5cb Enabled auto-auth for Docker-based devstack
ECOM-7099
2017-02-23 18:20:36 -05:00
Clinton Blackburn
9d9cf1a84b Added support for JWT authentication to the Enrollment API
ECOM-7099
2017-02-23 18:20:36 -05:00
Nimisha Asthagiri
e7ea1b47e5 Merge pull request #14572 from edx/beryl/cbs_config
Storage-backed versioned Block Structures: Config
2017-02-23 17:37:41 -05:00
Brian Beggs
dce30e5f3a Updating edx-django-release-util requirement to version 0.3.0 2017-02-23 16:45:46 -05:00
David Ormsbee
b0fd0a34a9 Merge pull request #14546 from edx/ormsbee/cache_overviews_on_enrollments
Student Dashboard CourseOverviews with one query.
2017-02-23 16:36:01 -05:00
David Ormsbee
8423ecb1c8 Student Dashboard CourseOverviews with one query.
Pre-load the course overviews attached to CourseEnrollments on the
Student Dashboard, if possible. This will only grab the CourseOverviews
that already exist, and will not generate new ones. Any missing
CourseOverviews fall back to the lazily-created one-at-a-time behavior
they've always had. That's mostly because I wanted to optimize for the
common case in the least invasive way possible, and I don't want to get
caught up in locking issues.
2017-02-23 15:50:44 -05:00
Ned Batchelder
b91792145e Merge pull request #14575 from edx/nedbat/update-translations
Update translations (autogenerated message)
2017-02-23 13:14:55 -05:00
Ned Batchelder
7b27f94962 Update translations (autogenerated message) 2017-02-23 17:04:30 +00:00
David Ormsbee
527774ef1a Merge pull request #14545 from edx/ormsbee/enrollment_select_related_user
Select related users when returning enrollments.
2017-02-23 11:53:38 -05:00
David Ormsbee
955dc69e70 Merge pull request #14165 from edx/ormsbee/suppress_publish_experiment2
Test Speedup: Isolate Modulestore Signals
2017-02-23 11:44:55 -05:00
David Ormsbee
2051c90924 Test Speedup: Isolate Modulestore Signals
There are a number of Django Signals that are on the modulestore's
SignalHandler class, such as SignalHandler.course_published. These
signals can trigger very expensive processes to occur, such as course
overview or block structures generation. Most of the time, the test
author doesn't care about these side-effects.

This commit does a few things:

* Converts the signals on SignalHandler to be instances of a new
  SwitchedSignal class, that allows signal sending to be disabled.

* Creates a SignalIsolationMixin helper similar in spirit to the
  CacheIsolationMixin, and adds it to the ModuleStoreIsolationMixin
  (and thus to ModuleStoreTestCase and SharedModuleStoreTestCase).

* Converts our various tests to use this new mechanism. In some cases,
  this means adjusting query counts downwards because they no longer
  have to account for publishing listener actions.

Modulestore generated signals are now muted by default during test runs.
Calls to send() them will result in no-ops. You can choose to enable
specific signals for a given subclass of ModuleStoreTestCase or
SharedModuleStoreTestCase by specifying an ENABLED_SIGNALS class
attribute, like the following example:

    from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase

    class MyPublishTestCase(ModuleStoreTestCase):
        ENABLED_SIGNALS = ['course_published', 'pre_publish']

You should take great care when disabling signals outside of a
ModuleStoreTestCase or SharedModuleStoreTestCase, since they can leak
out into other tests. Be sure to always clean up, and never disable
signals outside of testing. Because signals are essentially process
globals, it can have a lot of unpleasant side-effects if we start
mucking around with them during live requests.

Overall, this change has cut the total test execution time for
edx-platform by a bit over a third, though we still spend a lot in
pre-test setup during our test builds.

[PERF-413]
2017-02-23 10:31:16 -05:00
cahrens
6f197ff0c2 Remove Profile XBlock.
Something broke related to XBlocks,
and it is no longer working.
TNL-6533
2017-02-23 10:07:53 -05:00
Ned Batchelder
3cfec2807a Merge pull request #14566 from edx/nedbat/prevent-openblas-threads
Prevent OpenBLAS from spawning worker threads. TNL-6456
2017-02-23 09:53:02 -05:00
Adam
59963802fb Merge pull request #14569 from edx/aj/fix-discussion-follow-post
Fix posts are not automatically followed
2017-02-23 09:25:29 -05:00
alisan617
73e030dee6 Merge pull request #14554 from edx/alisan/xsy-img-TNL-6563
remove space around xsy avatar image
2017-02-23 09:15:03 -05:00
Peter Pinch
aa4716df98 Merge pull request #14513 from mitodl/pdpinch/bump-sga-xblock-version
bump edx-sga XBlock to v0.6.2
2017-02-23 09:14:10 -05:00
Nimisha Asthagiri
30b5822b0e Storage-backed versioned Block Structures: Config 2017-02-23 09:04:53 -05:00
Stu Young
786444958f Merge pull request #14548 from edx/mzfr/fix-webOb-tnl6553
Adding text param to webob response for 1.7.1.
2017-02-23 08:54:12 -05:00
Peter Pinch
2ed57b9206 bumping edx-sga to v0.6.2
use PyPI version of edx-sga and move to base.txt
2017-02-23 08:23:22 -05:00
Awais Jibran
091fd73415 posts are not automatically followed. TNL-6582 2017-02-23 17:38:15 +05:00
raeeschachar
61a12b4b0d Merge pull request #14558 from edx/raees/LT54-page-object-to-platform_part1
Moving upgraded e2e page objects to platform
2017-02-23 16:52:57 +05:00
raeeschachar
ea3797c365 Moving upgraded e2e page objects to platform 2017-02-23 10:58:28 +00:00
Matt Drayer
685524bb70 Merge pull request #14541 from edx/mattdrayer/direct-idp-login
ENT-228: Allow tpa_hint to match hidden providers
2017-02-22 17:10:54 -05:00
Ned Batchelder
1ea92aa2d5 Prevent OpenBLAS from spawning worker threads. TNL-6456
The RLIMIT_NPROC limit is per-user so simultaneous student submissions
pile up and overflow the limit.  Setting this environment variable will
prevent spawning any threads (the 1 means only have one threads, the
already existing main thread).
2017-02-22 16:39:51 -05:00
Eric Fischer
4e464ec658 Merge pull request #14550 from edx/efischer/tnl-6559
Short-term fix for TNL-6559 task failures
2017-02-22 16:08:46 -05:00
sanfordstudent
c9f1742898 Merge pull request #14511 from edx/sstudent/TNL-6351
moving tabindex
2017-02-22 15:40:32 -05:00
Jesse Shapiro
5fc9be04a2 Update AWS ENTERPRISE_ENROLLMENT_API_URL variable 2017-02-22 15:10:26 -05:00
Jeremy Bowman
d3b873c7e9 PLAT-1104 Import courses asynchronously 2017-02-22 15:06:34 -05:00
Eric Fischer
06c3445609 Short-term fix for TNL-6559 task failures 2017-02-22 14:34:36 -05:00
Clinton Blackburn
fc8e7fe241 Updated edx-organizations to 0.4.3
ECOM-7098
2017-02-22 14:04:05 -05:00
edx-pipeline-bot
95aa2b61ba Merge pull request #14549 from edx/release-mergeback-to-master
Merge release back to master
2017-02-22 10:08:23 -05:00
sanfordstudent
d0ddfe80eb Merge pull request #14555 from edx/sstudent/update-grades-mgmt
reset grades management command choose database table
2017-02-22 09:39:41 -05:00
muzaffaryousaf
f16550519e Defining charset to "utf8".
TNL-6553
2017-02-22 17:39:13 +05:00
Douglas Hall
31bd5cd1d5 Merge pull request #14544 from edx/hasnain-naveed/WL-977
WL-977 | Set 'created_on_site' UserAttribute on account creation
2017-02-22 06:29:12 -05:00