Commit Graph

59319 Commits

Author SHA1 Message Date
Justin Hynes
bbda7384f8 refactor: Remove use of CourseOverview model directly in the Certificates app
[MICROBA-1289]
* Remove use of the CourseOverview model directly in the Certificates app
* Introduce a few new Python API functions in the `course_overview` and `catalog` django apps to replace functionality in the Certificates app.
2021-07-13 10:26:39 -04:00
Christie Rice
f42b36869e fix: Allow cert generation if enrollment mode is now eligible (#28153)
MICROBA-1380
2021-07-13 09:51:15 -04:00
Alex Dusenbery
b3ac914a58 Revert "feat: edx-enterprise==3.26.22 | set the EnterpriseCatalogApiClient get_content_metadata request page_size parameter to 50;"
This reverts commit 7eb6512929.
2021-07-13 09:17:42 -04:00
Justin Hynes
9f5b9ba915 Merge pull request #28129 from edx/jhynes/microba-1289_overviews
refactor!: remove the `get_course_overview` function in favor of `get_course_overview_or_none`
2021-07-13 07:59:49 -04:00
edX cache uploader bot
b04082dd40 Updating Bokchoy testing database cache (#28160) 2021-07-13 12:30:01 +05:00
edX requirements bot
8ac4b8f3d7 chore: Updating Python Requirements (#28163) 2021-07-13 12:28:14 +05:00
Alex Dusenbery
7eb6512929 feat: edx-enterprise==3.26.22 | set the EnterpriseCatalogApiClient get_content_metadata request page_size parameter to 50;
The enterprise-catalog service has a default page_size of 10.
This change means that we'll make a smaller overall number of SELECTs against the enterprise-catalog database.
2021-07-12 16:41:26 -04:00
Diana Huang
9173707a50 feat: Allow shared cookies' domains to be set separately. (#28135)
Several of our cookies are meant to be shared between the LMS
and the marketing site. The previous assumption was that
SESSION_COOKIE_DOMAIN would cover both. We would like to make
it so that these can be set independently of each other.

https://openedx.atlassian.net/browse/ARCHBOM-1831
2021-07-12 15:49:11 -04:00
Christie Rice
b6eb331436 fix: Remove v1 course certificate code, as this was previously globally disabled (#28155)
MICROBA-1227
2021-07-12 14:08:31 -04:00
Julia Eskew
31deebcba1 fix: Use a "through" model for the ManyToManyField fields in CourseSection
and CourseSectionSequence to ensure that cascading deletes will occur to delete
the relation upon deletion of a foreign-keyed object.

This commit is phase 2 of 3 in order to ensure a smooth deploy. The phases:
1) Add separate through models for user partition groups, add fields to point to the
   separate models, and start writing to those fields as well. (COMPLETE)
2) After all models have been re-generated, switch code over to use separate through
   model fields backed by the separate through models *and* stop writing to the original
   ManyToManyField field. (This PR!)
3) After phase 2 is deployed smoothly, remove the original ManyToManyField fields
   and rename the new fields to have the same name as the old fields.

This PR is designed to be able to easily be rolled-back if anything goes wrong.
2021-07-12 14:03:11 -04:00
edX cache uploader bot
fb7ff7798a Updating Bokchoy testing database cache (#28154) 2021-07-12 22:21:26 +05:00
Manjinder Singh
1a026c5e15 refactor: noop migration for testing (#28150)
This is a noop migration for testing changes
to the deployment pipeline.

This is a copy of: #28078
2021-07-12 11:44:38 -04:00
Usama Sadiq
23f0fc489f fix: Fixed the dependencies to fix the make upgrade job failure (#28127)
fix: removed matplotlib<3.1 constraint
fix: pinned pandas<1.3.0
fix: pin pandas and networkx to python-dateutil compatible version
fix: pin pylint==2.8.3 to pass quality build
2021-07-12 17:21:53 +05:00
Julia Eskew
b24e65903d Revert "feat: AA-883 Basic prototype for self paced due dates in Studio" 2021-07-09 17:38:18 -04:00
Jansen Kantor
70c5bc5541 chore(add additional ORA submission zip logging) (#28125) 2021-07-09 11:56:47 -04:00
Justin Hynes
725793a8f9 refactor!: remove get_course_overview function in favor of get_course_overview_or_none
[MICROBA-1289]
* Remove `get_course_overview` function in favor of `get_course_overview_or_none`
2021-07-09 10:14:07 -04:00
sofiayoon
264606dfd4 Merge pull request #28016 from edx/syoon/AA-844
feat: AA-883 Basic prototype for self paced due dates in Studio
2021-07-09 09:23:05 -04:00
Burhan Nasir
acb7fc5544 Fix Caption message issue with YouTube (#27782)
* fix video caption message issue
2021-07-09 18:21:10 +05:00
Julia Eskew
b5205c5d9f fix: Add a data migration which removes any existing duplicates in the learning sequences
Django app's user partition group model.
fix: Add a unique constraint on that same model on partition_id/group_id to avoid
future duplicates.

TNL-8314
2021-07-09 09:20:50 -04:00
Kshitij Sobti
666a50d298 feat: allow optionally passing PII in course LTI tab (#26982) 2021-07-09 18:13:42 +05:00
Burhan Nasir
a409cccc75 Fix: from_address not pull from site configuration (#27946)
* Fix: from_address not pulled from site configuration
2021-07-09 16:26:14 +05:00
João Cabrita
530e4932bb fix!: Disable changing discussions providers once a course run has started
For authenticated users that are not global staff, changing discussion
providers after a course has started fails with 403 Forbidden.

Related issues:
* [BB-4253](https://tasks.opencraft.com/browse/BB-4253)
* [TNL-8142](https://openedx.atlassian.net/browse/TNL-8142)

BREAKING CHANGE:
Course staff, who were previously allowed to do this operation,
will instead receive a 403 Forbidden response.
2021-07-09 12:14:23 +05:00
Sofia Yoon
09eb36e550 feat: AA-883 basic prototype for custom pacing pls in studio
fix: make new field in xblock json serializable and don't assign due dates to ORAs

feat: display warning message in Studio if the relative date input is more than 18 weeks for custom pacing in self paced course

fix: handle due dates for mix of ORA and non ORA problems under a subsection and other styling fixes

feat: add a minimum restriction for self paced courses due date editor input

fix: naming of warning id divs to be more specific and exclude children of ORA problems in setting due dates

test: extracting dates for a self paced course with custom pacing

test: frontend for self paced custom pacing modal in studio and clean up its backend tests

fix: remove an unused line when getting children of custom pacing subsection, reorganize testing for custom pacing

fix: more specific comments to testing for custom PLS and remove a test case course

fix: more cleanup for self paced custom pacing PLS backend tests
2021-07-08 16:05:38 -04:00
Sofia Yoon
4d96449134 feat: create feature flag for PLS custom pacing 2021-07-08 14:39:04 -04:00
Christie Rice
87a620612f fix: Remove V2 certificate checks from the certificates app, since V2 of course certificates has been enabled globally for all course runs (#28108)
MICROBA-1083 DEPR-155
2021-07-08 14:27:27 -04:00
Matthew Piatetsky
73bbe8272f Merge pull request #28048 from edx/AA-874c
[AA-874] fix student progress url on student admin dashboard
2021-07-08 12:40:38 -04:00
Christie Rice
c194b3fa57 fix: Remove V2 certificate checks from the certificates app, since V2 of course certificates has been enabled globally for all course runs (#28102)
MICROBA-1083 DEPR-155
2021-07-08 09:23:58 -04:00
Matt Tuchfarber
91d2aa62d0 Merge pull request #28115 from edx/revert-27830-tuchfarber/studio_changes
Revert "feat: Reimagine certificate_availability_date and certificates_display_behavior"
2021-07-07 17:44:15 -04:00
edX Transifex Bot
739f570f14 geoip2: update maxmind geolite country database 2021-07-08 02:18:24 +05:00
Matt Tuchfarber
02a7fb0c88 Update version to 15 to force recaching
The version check is `if course_overview.version < cls.VERSION:` so we need to bump to 15 to force it to reuse 13's models.
2021-07-07 17:08:57 -04:00
Matt Tuchfarber
63cb6a97ff Revert "feat: Reimagine certificate_availability_date and certificates_display_behavior" 2021-07-07 16:53:05 -04:00
Christie Rice
b4df37d48e docs: Mark ADR as accepted (#28110)
DEPR-157
2021-07-07 14:07:23 -04:00
edX cache uploader bot
8e11603bb6 Updating Bokchoy testing database cache (#28106) 2021-07-07 20:36:25 +05:00
Matt Tuchfarber
14fb517a78 Merge pull request #27830 from edx/tuchfarber/studio_changes
feat: Reimagine certificate_availability_date and certificates_display_behavior
2021-07-07 09:45:06 -04:00
Justin Hynes
e8fe0d1bfc Merge pull request #28101 from edx/jhynes/microba-1311_remove
feat!: Remove temp certificates mgmt cmd
2021-07-07 08:14:07 -04:00
Usama Sadiq
e25f00f35c fix: Removed unnecessary constraints (#27915)
Updated constraints of following packages:
inflect,geoip2,maxmindb,path,isort (isort>5.0.0 introduced wrong-import-order warnings so disabled the warning)
2021-07-07 13:56:18 +05:00
edX cache uploader bot
27d57d1b7e Updating Bokchoy testing database cache (#28099) 2021-07-07 11:45:36 +05:00
Matt Tuchfarber
2a7106acfb feat: reimagine certificate display settings
The course settings `certificate_available_date` (CAD) and
`certificates_display_behavior` (CDB) were previously acting indedependantly
of one another. They now work in tandem. This change:
- limits CDB to a dropdown
- removes "early_with_info" and adds "end_with_date"
- only takes CAD into account if "end_with_date" is selected
- Moves CDB to the main course schedule settings page
- updates CourseOverview to validate these fields and choose sane
defaults if they aren't expected values

Certificates will now show under the following circumstances:
"Immediately upon passing"
certificate_availability_date = null
certificates_display_behavior = "early_no_info"

"End date of course"
certificate_availability_date = null
certificates_display_behavior = "end"

"A date after the course end date"
certificate_availability_date = <date>
certificates_display_behavior = "end_with_date"
2021-07-06 16:45:23 -04:00
Justin Hynes
ecd257ae29 feat!: Remove temp certificates mgmt cmd
[MICROBA-1311]
- Remove temporary management command used to fix records incorrectly created with a default `mode` of "honor".
2021-07-06 15:51:32 -04:00
Christie Rice
384bc6b514 fix: Fix cert status (#28097)
MICROBA-1372
2021-07-06 12:48:21 -04:00
Bianca Severino
666dc22bd0 Merge pull request #28085 from edx/bseverino/proctoring-course-overview
[MST-864] Add proctoring fields to course overview
2021-07-06 12:03:15 -04:00
Kyle McCormick
d86aa824c1 revert: feat: add & expose courseware.use_learning_sequences_api flag (#28054)
The learning_sequences.use_for_outlines flag was recently added,
intended to serve the same purpose
as courseware.use_learning_seuqences_api. We do not need
both flags.

Furthermore, exposing either flag in the Courseware
Metadata API is neither necessary nor helpful, since
the easiest and quickest way for the Learning MFE to see
if the Learning Sequences API is enabled is to hit it,
and fall back to a different API if a 403 is returned.

This reverts commit 78f1e2b3bd.

TNL-8330
2021-07-06 11:34:40 -04:00
Thomas Tracy
986f52faab [feat] Add has_scheduled_content to outline API
The outline API that the learning MFE needs to know if a course has
upcomming content for a new alert.
2021-07-06 11:33:53 -04:00
Christie Rice
b8114ebc59 fix: Remove V2 certificate checks, since V2 has been enabled globally for all course runs (#28077)
MICROBA-1083 DEPR-155
2021-07-06 11:00:54 -04:00
Zachary Hancock
a70578862e chore: version bump edx-proctoring (#28084) 2021-07-06 09:43:48 -04:00
edX cache uploader bot
36319bda48 Updating Bokchoy testing database cache (#28087) 2021-07-03 08:40:54 +05:00
taliaedX
5fa58fe219 Merge pull request #28083 from edx/trhodes/enterprise-bump-july022021
chore: update edx-enterprise
2021-07-02 14:34:45 -04:00
Bianca Severino
e1738b71ed feat: add proctoring fields to course overview 2021-07-02 14:26:48 -04:00
Talia
e52a468970 chore: update edx-enterprise 2021-07-02 12:16:18 -04:00
Matthew Piatetsky
0fc4fb581f Merge pull request #28033 from edx/AA-874
[AA-874] feat: add user id parameter to progress page
2021-07-02 08:39:16 -04:00