Commit Graph

61049 Commits

Author SHA1 Message Date
Dillon Dumesnil
fc474e92ea Merge pull request #30058 from openedx/ddumesnil/backfill-tabs-update
feat: Add some error handling to Backfill Course Tabs Command
2022-03-14 19:00:51 -07:00
Dillon Dumesnil
0a1fe04565 feat: Add some error handling to Backfill Course Tabs Command 2022-03-14 15:42:36 -04:00
Dillon Dumesnil
1106634b58 Merge pull request #30059 from openedx/ddumesnil/check-discussion-link
fix: Check discussion_link exists as an attr before accessing
2022-03-14 12:26:53 -07:00
Dillon Dumesnil
7ade1cc1ab fix: Check discussion_link exists as an attr before accessing
This is a patch to fix CR-4621. A longer term solution should
be implemented.
2022-03-14 15:01:58 -04:00
John Nagro
f5e3b5f7ae fit: release edx-enterprise 3.40.16 (#30057)
- https://github.com/openedx/edx-enterprise/pull/1495

ENT-5565
2022-03-14 14:36:29 -04:00
Binod Pant
10a9bc09c6 fix: Degree2 completions path url (#30056)
Fixes issue with sending completions to Degreed2

ENT-5581
2022-03-14 13:51:13 -04:00
Michael Terry
939eb0b0ab Merge pull request #30043 from openedx/mikix/progress-visible-grades
fix: have progress MFE API recalculate visible course grade
2022-03-14 10:33:14 -04:00
Kaustav Banerjee
c48c655998 refactor: deprecates replace url related properties from ModuleSystem
Deprecates the following attributes from ModuleSystem:
 * replace_urls
 * replace_course_urls
 * replace_jump_to_id_urls

A new ReplaceURLService is created as replacement with a unified replace_urls method
2022-03-14 09:35:41 -04:00
Dillon Dumesnil
a5e51d0662 Merge pull request #30001 from openedx/ddumesnil/entrance-exam-support-aa-1205
feat: AA-1205: Add Learning MFE support for Entrance Exams
2022-03-14 06:32:36 -07:00
Dillon Dumesnil
d43ece5dba feat: AA-1205: Add Learning MFE support for Entrance Exams
* Adds entrance exam information to the Course Overview object
    * Enables hiding other tabs since the get_course_tab_list uses
      a Course Overview
    * Enables using the entrance exam helper functions to determine
      if Entrance exams are being used in this course.
* Posts a message when Entrance Exam is passed to parent container for
usage in the Learning MFE
* Overrides the 'title' field of the courseware tab since the Learning MFE
uses that over the 'name' field.
2022-03-14 09:04:45 -04:00
Peter Pinch
071da2da04 Merge pull request #29834 from mitodl/arslan/286-catch-courseoverview-ex
fix: catch and log the CourseOverview.DoesNotExist instead of raising
2022-03-14 08:51:14 -04:00
Arslan
43d215f365 fix: return past date if there is no course 2022-03-14 17:11:35 +05:00
Arslan
185c73bd7d fix: update test function name 2022-03-14 17:11:35 +05:00
Arslan
6be024db3f fix: catch and log the CourseOverview.DoesNotExist instead of raising 2022-03-14 17:11:35 +05:00
Peter Pinch
43cf7e6b98 Merge pull request #29403 from mitodl/arslan/fix-pipeline-import
fix: Inconsistent PipelineCachedStorage usages
2022-03-14 07:43:07 -04:00
Arslan
2bc6a8ac0a fix: Use PipelineManifestStorage instead of PipelineCachedStorage 2022-03-14 12:57:23 +05:00
Usama Sadiq
b51f65dd03 build: update mongo server up command in unit tests ci (#30051) 2022-03-14 12:50:07 +05:00
Usama Sadiq
65fe15f623 build: update mongo version in runner image (#30041)
* build: update mongo version in runner image
2022-03-14 10:20:38 +05:00
Michael Terry
a162140492 fix: have progress MFE API recalculate visible course grade
Previously, the course grade returned would be the stored grade,
which is calculated for all content, not just the visible grades.
(Some grades are not yet released to the learner.)

This fix recalculates the overall grade before sending to the MFE,
so that it doesn't have to recompute it itself (without all the
particular logic that the platform uses when grading).

AA-1217
2022-03-11 15:11:05 -05:00
Robert Raposa
78ba9f09a1 feat: add corrupt cookie header monitoring (#30039)
In case of unusual cookie headers containing "Cookie ",
add custom attributes for monitoring:
- cookies.header.corrupt_count
- cookies.header.corrupt_key_count

See annotation documentation for more details.

Separately, updated to skip cookie log sampling for
0 size cookie header.

ARCHBOM-2055
2022-03-11 14:36:26 -05:00
Dillon Dumesnil
c32d3b2762 Merge pull request #30045 from openedx/ddumesnil/backfill-course-tabs-command
feat: Add backfill course tabs management command
2022-03-11 08:58:05 -08:00
Dillon Dumesnil
61b93d953d feat: Add backfill course tabs management command
Previously, course tabs would only be created once and never try to
update the default tabs again. This leads to an issue if you ever want
to add a new tab. With this command, you can now update the default tabs
for all existing courses and new courses will pick it up upon creation
when CourseTabList.initialize_default is called.
2022-03-11 11:16:18 -05:00
Simon Chen
ebf15e4754 chore: upgrade edx-name-affirmation to 2.3.2 (#30044)
With this version, we added simple_history to the VerifiedName model for tracking

Co-authored-by: Simon Chen <schen@edX-C02FW0GUML85.local>
2022-03-11 10:33:43 -05:00
Chris Deery
50f348b395 feat: [AA-1207] remove redundant Tabs fields from courseware API (#30023)
* feat: [AA-1207] remove redundant Tabs fields from courseware API

All the tab information now goes through the course home metadata tab fields. This field is redundant.
2022-03-11 09:36:28 -05:00
Ali Akbar
c4b788baf2 Merge pull request #30028 from openedx/aakbar/PROD-2521-retired-email-msg
feat: add retired email msg
2022-03-11 11:05:45 +05:00
John Nagro
5fede518e4 fix: release edx-enterprise 3.40.14 (#30040)
- fix: CornerstoneLearnerDataTransmissionAudit admin view timeout (#1493)

ENT-5565
2022-03-10 20:16:52 -05:00
John Nagro
64efc97ebe fix: release edx-enterprise 3.40.13 (#30038)
- fix: Degreed2 Missing Learner Data Audit Records

ENT-5558
2022-03-10 17:00:16 -05:00
Rebecca Graber
fc3da9185b feat: increase logging level for i18n_tool in pull_translations (#30037) 2022-03-10 14:18:56 -05:00
Ghassan Maslamani
62d1ebfa68 fix: rewrite calcualtor tips to reflect the supported features (#29957)
- It replicate this PR: frontend-app-learning/pull/825 which
  rewrite calcualtor tips since some tips are no longer relevant,
  hence: #17368

Co-authored-by: Rebecca Graber <rgraber@edx.org>
2022-03-10 12:48:41 -05:00
AliAkbar
06365735d4 feat: add retired email msg 2022-03-10 22:46:44 +05:00
John Nagro
174f21353a fix: release edx-enterprise 3.40.12 (#30036)
- fix: Degreed: Missing Learner Data Audit Records #1490

ENT-5558
2022-03-10 10:56:56 -05:00
Robert Raposa
3065048ba6 Merge pull request #30027 from openedx/robrap/ARCHBOM-2055-update-cookie-logging
feat: enhance cookie monitoring and logging
2022-03-10 09:28:45 -05:00
SaadYousaf
e343dee195 fix: add event tracking for viewing thread for discussions api 2022-03-10 14:38:59 +05:00
Ahtisham Shahid
f9869c3378 feat: Added Api to create/retrieve course live configurations (#30012) 2022-03-10 13:03:58 +05:00
Robert Raposa
29e50710dc feat: enhance cookie monitoring and logging
Contains a number of cookie monitoring changes.

Enhancements:
- Add sampling capability for cookie logging on headers
 smaller than the threshold. For details, see
 COOKIE_SAMPLING_REQUEST_COUNT.
- Add cookie header size to log message.
- Sort logged cookies starting with largest cookie.
- Move logging from Middleware request processing
 to response processing to ensure the user id is
 available for logging for authenticated calls.
- Added cookies.header.size.computed to check
 if there are any large hidden duplicate cookies.
 Can be compared against the cookies.header.size
 custom attribute.
- Add delimiters into logs to make it simpler to parse
 when the logging tools accidentally exports multiple
 log lines together.

Removed:
- Legacy cookie capture code. This code was dangerous to
  to enable and provided more limited insight than the
  newer logging, so this was removed to simplify the code.

Other refactors:
- Switched Middleware to use new Django format, rather
 than the Mixin.
- Moved tests to its own test class. Note: this
 middleware is likely to move to a separate
 library.

ARCHBOM-2055
2022-03-09 20:39:27 -05:00
Robert Raposa
8b775961a6 fix: rename table_blacklist to table_ignorelist 2022-03-09 16:43:47 -05:00
Simon Chen
60cf4d7ded fix: allow exam_type change when exam do not have external_id specified (#30032)
Co-authored-by: Simon Chen <schen@edX-C02FW0GUML85.local>
2022-03-09 15:08:33 -05:00
Braden MacDonald
dcb7ef8821 feat: Read course indexes from MySQL, not MongoDB (#29184)
Description
This is a follow up to #29058 and #29413. This is the next step in moving part of the modulestore data (the course indexes / "active versions" table) from MongoDB to MySQL.

There are four steps planned in moving course index data to MySQL:

Step 1: create the tables in MySQL, start writing to MySQL + MongoDB  done
Step 2: migrate all remaining courses to MySQL  done
Step 3: switch reads from MongoDB to MySQL (this PR)
Step 4 (much later, once we know this is working well): stop writing to MongoDB altogether.
Supporting information
OpenCraft Jira ticket: MNG-2557

Status
 Tested with a large Open edX instance is in progress.

Testing instructions
Try making changes in Studio and verify that they work fine.

Deadline
None
2022-03-09 10:21:09 -05:00
AsadAzam
835285d494 feat: added readme and adr (#30030)
* feat: added readme and adr

* refactor: fixed typos
2022-03-09 20:09:21 +05:00
Alexander J Sheehan
850ecc49c3 Merge pull request #30031 from openedx/asheehan-edx/enterprise-version-bump-3-40-11
chore: bumping enterprise version to 3.40.11
2022-03-09 10:04:22 -05:00
Alexander Sheehan
efbc972fc5 chore: bumping enterprise version to 3.40.11 2022-03-09 09:17:55 -05:00
Muhammad Soban Javed
0588c92dd7 Merge pull request #29046 from open-craft/gabor/celery-bump
[SE-4860] Upgrade Celery to v5.2.1
2022-03-09 13:03:36 +05:00
Gabor Boros
df50d379c1 chore(dependencies): upgrade dependencies
Signed-off-by: Gabor Boros <gabor.brs@gmail.com>
2022-03-08 21:37:06 +01:00
Gabor Boros
0b0ea1ce80 chore(dependencies): bump celery dependencies
Bump celery and related dependencies to minimum necessary version.

Signed-off-by: Gabor Boros <gabor.brs@gmail.com>
2022-03-08 21:27:34 +01:00
Rebecca Graber
eba76109c4 feat: remove xss-commitlint test (#30025) 2022-03-08 14:18:45 -05:00
Simon Chen
0940fc5e49 fix: Loosen the restriction on updating exam_type (#30022)
Currently, if a subsection was a special exam, we do not allow it to be changed back as a special exam. This PR would loosen that change to only disallow reintroducing the exam back to proctored exam. Timed exam can be updated however the user wants

Co-authored-by: Simon Chen <schen@edX-C02FW0GUML85.local>
2022-03-08 13:00:59 -05:00
Syed Muhammad Dawoud Sheraz Ali
b4bd552365 Merge pull request #29999 from openedx/prod-2708/add-paid-unpaid-modes
feat: paid unpaid named course modes
2022-03-08 21:48:32 +05:00
aliadnan
b1b5281f2b feat: remove check for password reset API if request is comming from support tools 2022-03-08 16:55:35 +05:00
edX requirements bot
4018b2672a chore: Updating Python Requirements (#30024) 2022-03-08 11:34:22 +05:00
Michael Terry
37601a03f1 Merge pull request #30021 from openedx/mikix/guard-course-end
fix: add some extra guards for a None course.end value
2022-03-07 15:49:13 -05:00