Commit Graph

61086 Commits

Author SHA1 Message Date
dyudyunov
c4bc6e29ea fix: certificate generation without Persistent Grades
Fix for an error related to endless recursion

Dev Notes:
The student gets the passing grade
-> CourseGradeFactory sends the `COURSE_GRADE_NOW_PASSED` signal after the grade calculation
-> `listen_for_passing_grade` receives the signal and calls `generate_certificate_task`
-> `generate_certificate_task` calls `_generate_regular_certificate_task`
-> `_generate_regular_certificate_task` trying to get grade by calling the `_get_course_grade`
-> `_get_course_grade` calls `CourseGradeFactory().read()` but I have persistent grades off, so actually that ends with `CourseGradeFactory().update()`
-> `CourseGradeFactory().update()` sends the `COURSE_GRADE_NOW_PASSED`
And so on
2022-03-21 12:36:39 +02:00
Abdurrahman Asad
56cef9cb6a fix: add field to check if user is admin (#30089)
fix: add field to check if user is admin
2022-03-21 11:36:33 +05:00
Long Lin
2776949771 chore: bump edx-enterprise version 2022-03-18 13:54:39 -04:00
Chris Deery
e8462bb667 feat: [AA-1207] remove redundant Tabs fields from courseware API (#30079)
feat: [AA-1207] remove redundant Tabs fields from courseware API

Remove redundant fields from courseware API.

- number
- verified_mode
- original_User_is_staff
- is_staff

This is the backend work for https://github.com/openedx/frontend-app-learning/pull/873
2022-03-18 12:09:52 -04:00
Michael Terry
7300072ce5 Merge pull request #30091 from openedx/mikix/backfill-args
feat: add a config model for the backfill_course_tabs command
2022-03-18 12:08:38 -04:00
Michael Terry
35df2723d8 feat: add a config model for the backfill_course_tabs command
- Adds a BackfillCourseTabsConfig model to manage the arguments
  to that command
- Adds batching arguments using that model
- Adds some extra logging for the failed courses
2022-03-18 11:50:55 -04:00
Tim McCormack
c3bc68abc1 feat: Add monitoring for X-Forwarded-For header length (#30090) 2022-03-18 15:31:27 +00:00
Abdurrahman Asad
699afeb731 fix: flagged post banner not showing to staff (#30034)
fix: flagged post banner not showing to staff
2022-03-18 19:16:15 +05:00
Robert Raposa
c51a0c3e22 Merge pull request #30081 from openedx/robrap/ARCHBOM-2054-move-cookie-monitoring-middleware
refactor: CookieMonitoringMiddleware moved to edx-django-utils
2022-03-18 09:07:50 -04:00
Kshitij Sobti
f3b89770e0 feat: add support for specifying and retrieving moderation reason codes from the LMS settings (#30015)
Reason codes will be used by the frontend to list and validate the reasons for specifying moderation actions.

Co-authored-by: Kshitij Sobti <kshitij@opencraft.com>

Co-authored-by: Felipe Trzaskowski <felipe@opencraft.com>
2022-03-18 11:13:30 +05:00
Robert Raposa
776c3ab9c0 docs: warn about test order issue
Some registration tests can fail if run in a
particular order. This PR just adds a warning
so engineers don't mistakenly think they caused
an issue.

Also see VAN-900 for more details on how to
reproduce.
2022-03-17 16:59:00 -04:00
Robert Raposa
9fa79809d8 refactor: CookieMonitoringMiddleware moved to edx-django-utils
The CookieMonitoringMiddleware and its related script
moved to edx-django-utils.

ARCHBOM-2054
2022-03-17 16:59:00 -04:00
Robert Raposa
aee65d55de fix: remove Jenkins dependency on script input (#30087)
The script for finding order dependency test failures
was dependent on inputs from Jenkins logs which we no
longer use.

This quick fix was to just use a list of tests with the
right format. A future iteration might process a new type
of output, like that from (pytest -v).
2022-03-17 16:56:54 -04:00
Feanil Patel
13ecd80e86 Merge pull request #30086 from openedx/feanil/remove_edx4edx_lite_ref
docs: Update a help string to reference a more up-to-date sample course.
2022-03-17 14:53:52 -04:00
Feanil Patel
2ce5f63756 docs: Update a help string to reference a more up-to-date sample course. 2022-03-17 14:10:05 -04:00
Michael Terry
15e6250ed4 Merge pull request #29948 from eduNEXT/MJG/unenrollment-filter
[BD-32] feat: add unenrollment Open edX Filter
2022-03-17 09:22:59 -04:00
Ahtisham Shahid
7e90306ffe Ahtisham/fixed urls course live (#30083)
* fix: removed traling / to avoid confusion
2022-03-17 14:06:51 +05:00
Ahtisham Shahid
5adceaa547 refactor: resolved doc issues and expected response (#30076)
* refactor: resolved doc issues and expected response
2022-03-17 12:11:03 +05:00
Robert Raposa
7a2eee6b21 feat: add script for cookie header log processing (#30067)
The script takes a csv from cookie header log output
and outputs a csv of processed data for each cookie.

ARCHBOM-2066
2022-03-16 12:27:19 -04:00
Felipe Trzaskowski
6bfb741c4a feat: add edit_reason_code and close_reason_code (#29609)
Add `edit_reason_code` field to both `Comments` and `Threads`, making it
editable for anyone who can also edit `raw_body`.

Add `close_reason_code` field to `Threads`, and make it editable by
anyone who can also edit `closed`.
2022-03-16 17:02:47 +05:00
edX requirements bot
626a0e112e Python Requirements Update (#30073)
* chore: Updating Python Requirements

* chore: bump edx-organizations to 6.11.1

Co-authored-by: Waheed Ahmed <waheed.ahmed@arbisoft.com>
2022-03-16 12:16:15 +05:00
Ahtisham Shahid
97edc47129 feat: added live lti course tab (#30035)
* feat: added live lti course tab

* fix: resolved test errors

* feat: Moved live tab behind the waffle flag
2022-03-16 11:46:49 +05:00
Robert Raposa
23a5f9500e fix: process cookie headers at request time (#30068)
Processing cookies at response time included cookies
that were temporary, like the JWT cookie that is
created by the server by combining the JWT header-payload
and JWT signature cookies. Since we are trying to monitor
the cookie header, we do not want to process this cookie.

However, since we want to include the user id in the logging
message, we delay the logging until response time.

Also, fixed docstring which mislabeled a custom attribute.

ARCHBOM-2055
2022-03-15 15:45:21 -04:00
Nathan Sprenkle
c052a1d499 feat: ESG submit grade for teams (#30049)
* refactor: update to new ORA/ESG grading endpoint

* docs: update example Postman collection

* chore: bump ORA versions
2022-03-15 15:16:07 -04:00
Maria Grimaldi
73533f021e feat: add course unenrollment filter before unenrollment starts 2022-03-15 14:50:23 -04:00
zia.fazal@arbisoft.com
e9e74f941f feat: trigger complete_video event when video is marked for completion
Fixed broken tests

fix: fix broken tests

chore: removed whitespace
2022-03-15 12:23:39 -04:00
Kira Miller
97a926c09f Merge pull request #30055 from openedx/kiram15/ENT-5486
feat: add display name and make SAML config draft compatible
2022-03-15 11:01:56 -04:00
Dillon Dumesnil
fc57403967 Merge pull request #30065 from openedx/ddumesnil/backfill-tabs-update
feat: Be even more permissive with errors for this command
2022-03-15 07:32:46 -07:00
Kira
0ba94409bd fix: lengthening display name 2022-03-15 10:14:54 -04:00
Dillon Dumesnil
46a93ed23c feat: Be even more permissive with errors for this command 2022-03-15 10:14:14 -04:00
Awais Qureshi
a1c2cc39eb chore: upgrading httpretty version. (#30061)
* chore: upgrading http version.
2022-03-15 18:49:57 +05:00
edX requirements bot
7f5ac6ebd2 Python Requirements Update (#30060)
* fix: pin django-celery-utils<2.3.0 to resolve test failures
* chore: Updating Python Requirements

Co-authored-by: UsamaSadiq <usama.sadiq@arbisoft.com>
2022-03-15 11:50:07 +05:00
Zia Fazal
6ff489c815 Merge pull request #29900 from openedx/ziafazal/use_edx_ace_bulk_email
feat: Ability to configure edx-ace with course emails
2022-03-15 11:26:26 +05:00
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
Kira
6d51428e4a fix: duplicate entry fixes 2022-03-14 17:06:52 -04: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
Kira
97f05b4e4a fix: lint errors 2022-03-14 13:30:52 -04:00
Kira
5dc39666e4 feat: add display name and make saml config draft 2022-03-14 12:34:19 -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