Commit Graph

59245 Commits

Author SHA1 Message Date
Braden MacDonald
e2a867e975 fix: xblock-poll's celery tasks were not registered (#28019) 2021-06-30 16:10:56 +05:00
irfanuddinahmad
5e995bd47a Merge pull request #28068 from edx/iahmad/ENT-4666
chore: ENT-4666 Upgraded edx-enterprise
2021-06-30 15:31:05 +05:00
irfanuddinahmad
3606d89366 chore: Upgraded edx-enterprise 2021-06-30 14:12:02 +05:00
Zaman Afzal
843e9ba29b ENT4083: Removed ENABLE_MULTIPLE_USER_ENTERPRISES_FEATURE waffle switch (#28057) 2021-06-30 13:58:11 +05:00
AsadAzam
7212c74713 fix: remove edx-next as a discussion provider (#28059) 2021-06-30 11:08:37 +05:00
Binod Pant
9fb39562c9 feat: Upgrade edx-enterprise to 3.26.12 ENT-4594 (#28063)
* feat: Upgrade edx-enterprise to 3.26.13

Canvas client create_or_update, and detection of deleted courses

ENT-4594

* fix: Use correct edx-enterprise version

ENT-4594

ENT-4594
2021-06-29 20:14:53 -04:00
Michael Roytman
198a190f14 Merge pull request #28042 from edx/mroytman/MST-761-bump-edx-proctoring-3.17.1
feat: Upgrade edx-proctoring Library to Version 3.17.1
2021-06-29 15:46:35 -04:00
Kshitij Sobti
8fd3ff706d fix: Creates a squashed migration for xblock_config that removes moved model
A previous PR moved the CourseEditLTIFieldsEnabledFlag model to the LTI consumer
XBlock's repo. The migrations in the XBlock repo check if the model already
exists, and if so, it will avoid creating the model. However, it seems that
in some cases the LTI consumer XBlock's migrations run first, creating the model
and causing the edx-platform migrations to fail due to a pre-existing table
since no such check is performed in the migrations in edx-platform.

Since the only migrations that exist for this model are one that creates it and
another that deletes it, this change creates a squashed miration that just skips
creating the model since for new installs the LTI Consumer XBlock should handle
it.
2021-06-29 23:11:53 +05:00
Michael Terry
109037d05b Merge pull request #28050 from edx/mikix/robust-redirect
fix: jump_to should redirect to first unit on invalid key
2021-06-29 09:10:45 -04:00
edX requirements bot
2bf176d523 chore: Updating Python Requirements (#28055) 2021-06-29 12:22:47 +05:00
Kristin Aoki
1d6c53ab1f Fix: Add ContentErrorData for Course Outline DAGs (#28029)
This PR fixes Course Outline DAGs with duplicate sequences. Previously
when a course outline had duplicate sequences, the outline would not generate
and raise a ValueError. There were no checks for duplicate sequences
before the generation of the course outline because it is not possible
to create duplicate sequences in Studio, but is possible when a Course
Author imports a course. Now before the course outline is generated, it
will be checked for duplicate sequences. If a duplicate sequence is
found an error will be logged for Partner Support to see in the Django
Admin and the duplicate will be deleted. This change will impact the
Course Author.
2021-06-28 16:21:02 -04:00
Michael Terry
c62626227a fix: jump_to should redirect to first unit on invalid key
Previously, it would 404. While accurate, it's not a great user
experience. Users can be offered invalid jump_to paths in the normal
course of things, if course content disappears or they lose access
to it.

In both cases, they might be offered a resume URL in the courseware
that would be to a now-invalid location.

With this change, that invalid link will at least give them
*something* (the first unit in the course) rather than an error
page.

This also (unrelatedly) fixes an exception when the learning MFE
outline page tries to render a course that contains sequences
with no children.

AA-867
2021-06-28 15:43:12 -04:00
AsadAzam
f9082a082e fix: re-order the discussion features (#28046) 2021-06-28 19:13:14 +05:00
Christie Rice
24367919bb fix: Update logic for certificate generation status, and create cert with all available info (#28004)
MICROBA-1306 CR-3792
2021-06-28 10:05:34 -04:00
Albert (AJ) St. Aubin
b23169560f fix: Corrects issue with refund logic and certificates.
[MICROBA-1307]

Before this change a user would not be auto refunded if they had a
certificate in a course with any status. This had unintended
consequences. This change updates the logic to only block auto refund
for statuses that we do not want to refund on such as downloadable.
2021-06-28 09:20:00 -04:00
Manjinder Singh
9616a1c367 fix: adding code owner info to celery tasks (#28040)
Celery tasks needs decorator to correctly add ownership info:
https://github.com/edx/edx-django-utils/blob/master/edx_django_utils/monitoring/docs/how_tos/add_code_owner_custom_attribute_to_an_ida.rst#handling-celery-tasks
2021-06-28 09:15:31 -04:00
Saad Yousaf
ed950c4c8e Merge pull request #27961 from edx/saad/TNL-8389
feat: Add CourseWaffleFlag for overriding course discussion settings for legacy experience.
2021-06-28 13:50:30 +05:00
SaadYousaf
16972b4991 test: add tests to test override_legacy_discussion_settings flag with different roles 2021-06-28 11:54:17 +05:00
SaadYousaf
608f1994b7 refactor: move waffle flag calculation to utils file and other updates 2021-06-28 11:54:16 +05:00
SaadYousaf
90921e19e2 test: add tests for discussion settings and tab visibility with override_discussions_setting flag. 2021-06-28 11:54:16 +05:00
SaadYousaf
039a816e57 refactor: move pages_and_resources_mfe WaffleFlag to use in both LMS and Studio 2021-06-28 11:54:16 +05:00
SaadYousaf
09c8ef931e feat: Add CourseWaffleFlag for overriding course discussion settings for legacy experience. 2021-06-28 11:54:16 +05:00
Michael Roytman
45ea340272 feat: Upgrade edx-proctoring Library to Version 3.17.1
This pull request upgrade the version of the edx-proctoring library from 3.14.0 to 3.17.1.

This includes the following changes.

GET and POST endpoints are added for to bulk get and bulk create allowances.
A bug in the exam attempt API where total time allowed for the exam would not include allowance time is fixed.
Internal logic for determing learners' onboarding statuses for the course onboarding API is replaced with a provider onboarding API.
A bug in the JSON parsing of error messages returned by the course onboarding API is fixed.
2021-06-25 16:42:35 -04:00
Michael Roytman
09b350bc2f Merge pull request #28041 from edx/revert-28030-mroytman/MST-761-bump-edx-proctoring-3.17.0
Revert "feat: Upgrade edx-proctoring Library to Version 3.17.0"
2021-06-25 13:56:56 -04:00
Michael Roytman
96c81292a4 Revert "feat: Upgrade edx-proctoring Library to Version 3.17.0 (#28030)"
This reverts commit e286e1ce28.
2021-06-25 13:19:40 -04:00
Christie Rice
e9fd9cb2a7 test: Remove flaky test test_get_all_assets_with_paging (#28037)
CR-3817
2021-06-25 12:46:43 -04:00
Kyle McCormick
78f1e2b3bd feat: add & expose courseware.use_learning_sequences_api flag (#27993)
Add a Waffle Flag. When enabled, the courseware pages of the
Learning MFE should use the Learning Sequences HTTP API instead
of the Course Blocks HTTP API in order to load course structure
data. We expect that this switchover will lead to performance
improvements and a more comprehensible system.

(We are putting the switchover behind a temporary flag in order to
enable debugging, incremental rollout, and comparison testing.)

The flag is exposed to the MFE via the Course API.
As of this commit, the new flag is not enabled in any environment,
and the MFE does not have any code to act on the flag's value.
So, this commit on its own should have no production impact.

TNL-8330
2021-06-25 11:19:28 -04:00
Michael Roytman
e286e1ce28 feat: Upgrade edx-proctoring Library to Version 3.17.0 (#28030)
This pull request upgrade the version of the edx-proctoring library from 3.14.0 to 3.17.0.

This includes the following changes.

GET and POST endpoints are added for to bulk get and bulk create allowances.
A bug in the exam attempt API where total time allowed for the exam would not include allowance time is fixed.
Internal logic for determing learners' onboarding statuses for the course onboarding API is replaced with a provider onboarding API.
2021-06-25 14:54:56 +00:00
Christie Rice
69580aa592 feat!: Read from the allowlist model, instead of from the whitelist model. Only write to the allowlist model. (#27974)
MICROBA-982
2021-06-25 09:47:32 -04:00
edX requirements bot
44e8ea4e0b chore: Updating Python Requirements (#28024) 2021-06-25 12:46:49 +05:00
Julia Eskew
a1914f6d31 fix: When running the task-creating task which regenerates all course outlines,
continue instead of returning when an unsupported course key is encountered.
2021-06-24 17:28:58 -04:00
Dillon Dumesnil
a45dbdbbcf Merge pull request #28009 from edx/ddumesnil/special-exam-completeness-aa-869
feat: AA-869: Add in logic to mark special exams as complete
2021-06-24 12:47:05 -07:00
Dillon Dumesnil
61358b230e feat: AA-869: Add in logic to mark special exams as complete
This is technically a revert of a revert that also includes some new
logic. The original PR was https://github.com/edx/edx-platform/pull/27770
and the revert PR was https://github.com/edx/edx-platform/pull/27973.

The new logic is to mock a request and create a module with user state
taken into account. We also put this into a celery task to help avoid
any potential concerns with recursing through children.
2021-06-24 12:06:11 -07:00
edX cache uploader bot
e0a04c6b48 Updating Bokchoy testing database cache (#28027) 2021-06-24 22:32:15 +05:00
Julia Eskew
a9b534e10b 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 1 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.
2) After all models have been re-generated, switch code over to use separate through
   model fields backed by the separate through models.
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.
2021-06-24 12:17:54 -04:00
Thomas Tracy
346ec161fe [refactor] Ttracy/MICROBA-1297: ID verify messaging updates on dashboard (#28012)
* [refactor] Reword dashboard verify ID message

Small change to reword ID verification messaging on the course dashboard
and remove one of the buttons.

* set coloring of warning message

* follow patter for theme font colors
2021-06-24 10:32:50 -04:00
Kshitij Sobti
b083ad13d6 refactor: Move CourseEditLTIFieldsEnabledFlag to xblock-lti-consumer (#27529) 2021-06-24 14:31:50 +05:00
edX cache uploader bot
94b97c1f8f Updating Bokchoy testing database cache (#28010) 2021-06-24 12:18:48 +05:00
Kshitij Sobti
2e416234bc docs: ADR for new course apps API [BD-38] [TNL-8002] [BB-3964] (#27193)
* docs: ADR for new course apps API

This ADR proposes a new course apps API that is driven by a new coruse app
plugin type.

* Updated based on feedback

* Major changes to document structure

* Review feedback
2021-06-24 11:25:14 +05:00
Diana Huang
29548459fa refactor: Remove PyContracts usage. (#27887)
* refactor: Remove PyContracts usage.

We have not used PyContracts in a while and it is overhead we don't
need in edx-platform.

https://openedx.atlassian.net/browse/DEPR-147

* chore: Updating Python Requirements (#28018)

Co-authored-by: edX requirements bot <49161187+edx-requirements-bot@users.noreply.github.com>
2021-06-23 18:24:06 -04:00
edX Transifex Bot
a775d5cebc geoip2: update maxmind geolite country database 2021-06-24 02:17:58 +05:00
Diana Huang
ad0555267f fix: Pin lti-consumer-xblock version. (#28014)
There are issues in lti-consumer-xblock version 2.11.0 that
we cannot merge into edx-platform. This pins to a previous
version until the issues are resolved.
2021-06-23 17:00:41 -04:00
Carla Duarte
c708322f2b Merge pull request #28008 from edx/ciduarte/AA-866
fix: make scores floats rather than ints in progress tab api
2021-06-23 14:10:10 -04:00
Kshitij Sobti
d2c2fcdefe feat: Course Apps API [BD-38] [TNL-8103] [BB-2716] (#27542)
* feat: Course Apps API

This adds a new concept called course apps. These are exposed via a new
"openedx.course_app" entrypoint, which helps the LMS and studio discover such
apps and list them in a new rest api for the same.

These course apps will drive the pages and resources view in the course authoring
MFE. This system will track which apps are enabled and which are disabled. It
also allows third-party apps to be listed here by using the plugin entrypoint.

* Apply feedback from review
2021-06-23 21:51:12 +05:00
Christie Rice
29fcf8b868 fix: Copy data from the certificate whitelist to the certificate allowlist, including copying the created date (#28007)
MICROBA-982
2021-06-23 12:21:58 -04:00
Carla Duarte
b08a9d61ef fix: make scores floats rather than ints in progress tab api 2021-06-23 11:34:19 -04:00
edx-abolger
a2128dc9cf Merge pull request #28002 from edx/edx-abolger/ENT-4103-fix-forward-version-bump
bump: bump edx-enterprise version to 3.26.10
2021-06-22 17:25:17 -04:00
Jansen Kantor
e16852f368 ora 3.6.6 (#28001) 2021-06-22 16:54:50 -04:00
Adrienne Bolger
efd683d140 bump: bump edx-enterprise version to 3.26.10 2021-06-22 16:32:12 -04:00
Christie Rice
532b97b4e2 fix: Temporarily disable generating certificates with a non-downloadable status (#28000)
CR-3792 MICROBA-1306
2021-06-22 15:56:11 -04:00