Commit Graph

23645 Commits

Author SHA1 Message Date
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
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
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
Arslan
2bc6a8ac0a fix: Use PipelineManifestStorage instead of PipelineCachedStorage 2022-03-14 12:57:23 +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
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
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
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
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
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
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
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
Michael Terry
dbb1e4c8dd fix: add some extra guards for a None course.end value
This has bit us in the past, and here are a few more places
where it doesn't hurt to be cautious.

AA-1198
2022-03-07 15:25:53 -05:00
uzairr
7bc56c46ed feat: paid unpaid named course modes
Add executive education variants for paid and unpaid modes.

PROD-2708
2022-03-07 16:30:46 +05:00
AsadAzam
533b971d83 feat: added live course app plugin (#29998) 2022-03-07 12:15:45 +05:00
Maxim Beder
7e742e2042 feat: add flag to toggle learners tab (#29955) 2022-03-07 11:14:45 +05:00
Chris Deery
b61b29196b feat: [AA-1206] remove redundant fields from API (#29920)
* feat: [AA-1206] remove redundant fields from API

Part of a larger effort to clean up the MFE BFF endpoints.
Remove the redundant fields username and course_access, both of which are also available in the course home metadata call.
2022-03-04 09:01:02 -05:00
muhammad-ammar
c35025fd9d feat: api to fetch all programs where an enterprise learner is enrolled 2022-03-04 17:42:30 +05:00
Sameen Fatima
0d9e845f1b feat: Created an API to fetch progress details about a learner's program (#29975) 2022-03-04 16:11:28 +05:00
Nathan Sprenkle
e86b6fe358 fix: ESG init gradeStatus key (#30009)
* fix: change gradingStatus to gradeStatus in ESG init call
2022-03-03 12:58:14 -05:00
Simon Chen
0b158a8a42 feat: provide new verification details endpoint for support-tools (#30004)
Co-authored-by: Simon Chen <schen@edX-C02FW0GUML85.local>
2022-03-03 10:33:14 -05:00
Kshitij Sobti
6042972235 fix: Use legacy view for legacy URLs (#30006)
If a user navigates to a legacy URL, then use the legacy view for discussions.
2022-03-03 16:19:12 +05:00
Justin Hynes
a94d5e1ae3 Merge pull request #30000 from openedx/jhynes/revert_microba-1666
revert: reverts 53041a2 after reports of bulk email message issues
2022-03-02 14:41:39 -05:00
Justin Hynes
bbb0bc77d9 revert: reverts 53041a2, causing email issues
[MICROBA-1666]

This reverts commit 53041a2d34 after course team started reporting issues of images in emails not respecting dimensions set with the email editor.

After a brief investigation we found unexpected attributes (like `width` and `height` of an image) being stripped from the HTML.
2022-03-02 14:03:55 -05:00
Bianca Severino
b50de1d6e5 Merge pull request #29993 from openedx/bseverino/confirm-name-change
[MST-1362] Add REST endpoint to confirm name changes
2022-03-02 09:49:51 -05:00
Muhammad Adeel Tajamul
d0e6b2dd20 Merge pull request #29982 from openedx/tnl-9619
fix: post summary taking more than one lines
2022-03-02 07:14:26 +05:00
Jansen Kantor
05b8da5d93 feat: teams csv export split username / external key columns (#29981)
When doing import, we ran into an issue where there was a learner with an external program key that was the
same as an existing, completely unrelated edX account username. Rather than try to guess which learner we want
or do the lookups backwards, it seemed that splitting these columns to avoid any ambiguity would be the most
straightforward and simple approach
2022-03-01 20:04:32 -05:00
Bianca Severino
f177855e1b feat: add REST endpoint to confirm name changes 2022-03-01 16:22:31 -05:00
Michael Terry
5e80b692c8 Merge pull request #29987 from openedx/mikix/no-enrollment-old-mongo
feat: mark Old Mongo courses as invitation-only
2022-03-01 10:13:42 -05:00
Awais Qureshi
fe57074dab feat!: Remove django-admin default login (#29876)
* feat!: Remove django-admin default login
2022-03-01 17:38:36 +05:00
Michael Terry
ff90533074 feat: mark Old Mongo courses as invitation-only
This is in service of dropping support for these ancient
courses and removing legacy code that they rely on.

Eventually, we'll remove all access. But this is a first step,
to reduce enrolled learners.

DEPR-58
2022-02-28 16:31:46 -05:00
Justin Hynes
884e8af0f2 docs: ADR for bulk email content html sanitization
[MICROBA-1666]

* Add ADR explaining introduction of bulk email HTML content sanitization and the new `BULK_COURSE_EMAIL_ALLOWED_HTML_TAGS` setting.
2022-02-28 16:01:25 -05:00
Justin Hynes
e608db847c Merge pull request #29969 from openedx/jhynes/microba-1666_sanitize-bulk-email
feat: sanitize bulk course email message content before storing in database
2022-02-28 13:25:11 -05:00
Maria Grimaldi
d7a5ff2326 Merge pull request #29953 from eduNEXT/cag/fix-link-to-students-guide
fix: update old links edx-guide-for-students in calculator
2022-02-28 13:49:48 -04:00
Rebecca Graber
0157518a9c feat: remove kafka_consumer from edx-platform (#29983) 2022-02-28 09:41:57 -05:00
Justin Hynes
53041a2d34 feat: sanitize bulk course email message content before storing in database
[MICROBA-1666]

* Use bleach to sanitize user-provided content of bulk course emails before storing in the database.
* Add new `BULK_COURSE_EMAIL_ALLOWED_HTML_TAGS` setting to enable configuration of allowed HTML tags in bulk course emails.
2022-02-28 08:49:06 -05:00
adeel.tajamul
4af4a6a802 fix: post summary taking more than one lines 2022-02-28 15:58:55 +05:00
Kshitij Sobti
f7df694c5f feat: add provider info to the discussion configuration API (#29864)
The new discusions MFE needs to know which provider is in use (legacy or new) to deliver the expected experience. This adds the provider name and other relevant configuration to the discussion configuraiton API.
2022-02-28 11:23:28 +05:00
Ahtisham Shahid
5e6aa147dd feat: added model for course Live integrations (#29968) 2022-02-24 16:47:35 +05:00
Bianca Severino
cc43b5e567 Merge pull request #29952 from openedx/bseverino/name-affirmation-plugin
[MST-1360] Only enable verified name feature if Name Affirmation is installed
2022-02-23 09:18:44 -05:00
AsadAzam
60a21ad664 fix: add separate flag for new structure discussions (#29962)
* fix: add separate flag for new structure discussions

* fix: fixed tests
2022-02-23 10:57:19 +05:00
Zainab Amir
bd08bc7bdc feat: add optional fields rest api (#29942) 2022-02-22 17:51:34 +05:00
Ahtisham Shahid
4138c2cc16 fix: Updated discussions banner text as per changed requirements (#29961) 2022-02-22 13:03:03 +05:00
Eugene Dyudyunov
2b32828083 fix: registration form validation message (#29843) 2022-02-22 12:34:36 +05:00
Ahtisham Shahid
af86e1612c fix: moved new discussions mfe behind waffle flag (#29941) 2022-02-21 21:04:50 +05:00
Bianca Severino
76f9756f92 feat: only enable verified name feature if Name Affirmation is installed 2022-02-18 13:25:30 -05:00