Tasawer
c6a6cdd72d
Quality fixes.
...
ECOM-4214
2016-06-06 16:50:16 +05:00
Matt Drayer
a9b7e4c63d
mattdrayer/course-mode-bulk-sku: Add new CourseMode field
...
* mattdrayer: Add bulk checkout link to course views
* asadiqbal08: MAYN-225 replace the "Verify Now" button by the "Go to Dashboard" button in case of themed sites.
* mattdrayer: Add bulk_sku check in courseware.views
2016-05-11 10:57:24 -04:00
Calen Pennington
853bfe7a36
Add a TestCase mixin for enabling caches in tests
...
By default, disable all caching in tests, to preserve test independence.
In order to enable caching, inherit from CacheSetupMixin, and specify
which cache configuration is needed.
[EV-32]
2016-05-04 14:51:30 -04:00
Calen Pennington
39ff841d1f
Don't pass arguments to setUp (for UrlResetMixin)
...
The TestCase API doesn't accept arguments, so passing arguments for some
TestCase subclasses makes adding new inheritance/mixins tricky. Instead,
prefer configuration via class attributes for TestCases.
2016-05-04 11:34:51 -04:00
Ben Patterson
b9558a90f1
Create a 3rd explicit shard for unit tests.
...
More accurately, this creates a 4th shard because the
last shard is always the default.
2016-04-28 10:09:32 -04:00
Ben Patterson
551eaaf706
Enroll already-existing user to a course via management command.
...
Our current sandbox provisioning uses a create_user management command,
which creates and enrolls a user into a course. However, for TE-1128, we
will need a way to enroll the same user to multiple courses (which are
dynamic at time of provisioning). Using the existing management
command is no longer feasible for that, so we are using one that accesses
the enrollment API, which is the new standard for new enrollment capabilities.
2016-01-27 11:49:31 -05:00
Peter Fogg
17a69a30e4
Revert "Add options trailing slashes to the Enrollment API."
...
This reverts commit 3149aaa319 .
2016-01-08 09:47:39 -05:00
Peter Fogg
3149aaa319
Add options trailing slashes to the Enrollment API.
...
This allows the edX REST API Client to perform a sucessful GET against
this API, since Slumber (which our client is based off of) appends the
trailing slash by default.
2015-12-22 14:52:27 -05:00
muzaffaryousaf
1616de5051
Bookmarks API.
...
TNL-2180
2015-12-17 22:07:30 +05:00
wajeeha-khalid
588833ff43
MA-1051: DiscussionAPI - Removed http errors from api.py and refactored to more specific errors
2015-12-16 21:23:51 +05:00
Nimisha Asthagiri
c14c146d0e
Merge pull request #10841 from edx/mobile/optimize-course-api
...
Optimize Course Catalog using CourseOverview
2015-12-11 10:03:35 -05:00
Nimisha Asthagiri
2b8441a072
Update Course Catalog to use CourseOverview
2015-12-10 20:37:50 -05:00
Bill DeRusha
005e07cb95
Remove default course mode setting in enrollment api
2015-12-09 19:46:04 -05:00
Bill DeRusha
cdb3e99f39
Enrollment API determines best default enrollment if none passed
2015-12-09 14:50:49 -05:00
Peter Fogg
497622d4b4
Switch default course mode to 'audit'.
...
ECOM-2972
2015-11-25 11:22:29 -05:00
Usman Khalid
6cb62f2697
Rebase upgrade Django to v1.8.5
...
Please note that this is a squshed commit and the work of:
Symbolist, macdiesel, nedbat, doctoryes, muzaffaryousaf and muhammad-ammar
2015-11-10 15:00:19 -05:00
Ned Batchelder
322ca34b20
Remove pylint pragmas from "class Meta"
...
Also remove useless docstrings where they were added to keep pylint
quiet.
2015-10-21 07:37:00 -04:00
Alison Hodges
adffb10cbe
Updates the description provided for a new enrollment report
...
https://github.com/edx/edx-platform/pull/9345
2015-10-01 16:28:42 -04:00
Ned Batchelder
8ec2de9359
DRF 3.1 now uses request.data instead of request.DATA
2015-09-29 15:25:55 -04:00
Brian Beggs
d9de52751d
Merge remote-tracking branch 'origin/release' into bbeggs/2015-09-22-release-to-master
2015-09-28 20:58:34 -04:00
Ben Patterson
2fd6add524
Revert "Merge DRF 3.1 in to master"
2015-09-28 17:12:43 -04:00
Will Daly
d11ccad0fc
Upgrade djangorestframework to v3.1
...
* Upgrade edx-submissions
* Upgrade edx-ora2
* Upgrade edx-val
* Upgrade edx-proctoring
* Update all edx-platform code that depends on DRF, including:
- auth_exchange
- cors_csrf
- embargo
- enrollment
- util
- commerce
- course_structure
- discussion_api
- mobile_api
- notifier_api
- teams
- credit
- profile_images
- user_api
- lib/api (OAuth2 and pagination)
2015-09-28 11:52:30 -04:00
Will Daly
8555630df7
Upgrade djangorestframework to v3.1
...
* Upgrade edx-submissions
* Upgrade edx-ora2
* Upgrade edx-val
* Upgrade edx-proctoring
* Update all edx-platform code that depends on DRF, including:
- auth_exchange
- cors_csrf
- embargo
- enrollment
- util
- commerce
- course_structure
- discussion_api
- mobile_api
- notifier_api
- teams
- credit
- profile_images
- user_api
- lib/api (OAuth2 and pagination)
2015-09-25 12:40:57 -04:00
Sven Marnach
6ce7a60cf7
Clarify docstring of the enrollment list endpoint of the Enrollment API.
2015-09-15 16:35:46 +02:00
Sven Marnach
4377981486
Optimise getting list of courses from Enrollment API for global staff.
2015-09-02 22:21:58 +02:00
Sven Marnach
dd0218416b
Allow staff users to request a list of courses a student is enrolled in.
...
The list only includes those courses the requesting user has staff access for.
2015-08-28 21:58:22 +02:00
Ned Batchelder
f54fe787c6
Remove needless 'disable=no-member' pragmas
2015-08-03 17:47:44 -04:00
Renzo Lucioni
4131aa4d38
Allow enrollments in expired modes to be deactivated
...
Facilitates revocation of enrollments in expired modes. XCOM-490.
2015-07-30 12:39:25 -04:00
Renzo Lucioni
b50c905865
Remove modulestore dependency from Enrollment API
...
Sets the Enrollment API free of the modulestore by replacing modulestore queries with calls to the CourseOverview model. Course deletion invalidates the corresponding CourseOverview. XCOM-462.
2015-07-20 13:41:19 -04:00
Sylvia Pearce
eea3b31105
Delete white spaces that are causing test failures
2015-07-17 16:12:53 +00:00
Sylvia Pearce
c2420b0940
Final tweaks to API documentation updates
2015-07-15 21:46:11 +00:00
Sylvia Pearce
d2b6ac84d3
Reorganize and update API documentation
2015-07-15 14:31:02 -04:00
Ahsan Ulhaq
8d9d4b85d5
LMS: Modification in enrollment API
...
Changed enrollment api to set enrollment atributes if the course is
credit course
ECOM-1719
2015-07-07 00:49:02 +05:00
Renzo Lucioni
d330831871
Improve logging of ecommerce interactions
...
Adds standardized audit logging for checkout and enrollment change requests. XCOM-427.
2015-06-30 17:34:16 -04:00
Bertrand Marron
f19b338170
Shorten long lines to resolve pylint issues
2015-06-24 17:55:24 +02:00
Bertrand Marron
e0ed2d8a3a
Fix misleading enrollment API documentation
...
The user parameter corresponds to the username, not the user ID.
2015-06-24 17:55:24 +02:00
Nickersoft
e184c78c0a
XCOM-416: Embargo restrictions are now enforced during logistration
2015-06-23 14:17:43 -04:00
Edward Zarecor
c12c5c926d
fixing post-release merge conflicts with DKH
2015-06-10 16:56:21 -04:00
Nickersoft
8c1d3ae412
Added includes_expired parameter to enrollment API
...
- Adding ?include_expired=1 to course detail requests will now include expired course verifications
2015-06-09 17:12:30 -04:00
jsa
445d0dabb6
Correct deactivation logic in enrollment api and test.
...
XCOM-396
2015-06-08 11:06:52 -04:00
jsa
445a0c938b
Add tests for enrollment deactivation under various modes.
...
A bug with the creation of inactive honor enrollment modes was caught and fixed along the way.
XCOM-388
2015-06-04 09:40:54 -04:00
Bertrand Marron
e8bf151f3d
Fix documentation comment for enrollment API
2015-05-25 16:56:25 +02:00
Renzo Lucioni
960b02cf98
Allow enrollment API to deactivate enrollments
...
Will allow Otto to revoke fulfillment of course seat products. Only server-to-server calls are currently allowed to deactivate or otherwise modify existing enrollments.
2015-05-18 19:44:02 -04:00
Ned Batchelder
78e9445aa1
Add super() calls to setUp/tearDown that are missing them
...
Also, I replaced a number of tearDown methods with addCleanup instead.
And also remove some unneeded patch.stopall() calls.
2015-05-14 18:14:21 -04:00
Clinton Blackburn
bfb201ec7d
Merge pull request #7822 from edx/clintonb/receipt-page-update
...
Updated Receipt Page for Oscar
2015-05-02 09:32:11 -04:00
Clinton Blackburn
1a1fe56b29
Added Oscar-Compatible Receipt Page
2015-05-02 00:18:05 -04:00
Will Daly
5d16ed46a2
Enrollment API course details include credit modes.
...
Credit modes are hidden by default, since the user
isn't allowed to select them on the track selection page.
This commit exposes credit modes through the enrollment
API so that consumers can see that a course has a credit
track.
2015-05-01 12:36:30 -04:00
Mark Hoeber
568ed781c6
Updated enrollment api doc for new response fields
...
And cleaned up one doctoring
2015-04-23 15:17:47 -04:00
Will Daly
fc918fb3d1
Expose course start/end date in the enrollment API
2015-04-21 08:41:42 -04:00
jsa
46b63164a0
Implement profile_image upload and remove endpoints
...
TNL-1537
Co-Authored-By: Andy Armstrong <andya@edx.org >
Co-Authored-By: cahrens <christina@edx.org >
2015-04-17 17:23:12 -04:00