Commit Graph

6718 Commits

Author SHA1 Message Date
Justin Hynes
b3b3176d03 Merge pull request #31850 from openedx/jhynes/aper-2285
docs: Add documentation on how to use the Extended Profile feature of the User API/UserProfile
2023-03-01 07:58:50 -05:00
Ahtisham Shahid
12434cc35d fix: resolved index error in course live config (#31845) 2023-03-01 11:24:37 +05:00
Justin Hynes
91b3486d2f docs: Add documentation on how to use the Extended Profile feature of the User API/UserProfile
[APER-2285]

Adds documentation on how to use the "Extended Profile" feature of edx-platform.
2023-02-28 13:49:13 -05:00
Alex Sheehan
e73bfddbd8 chore: bumping enterprise version 3.61.1 2023-02-22 15:32:18 +00:00
Ahtisham Shahid
33dc8e1f21 feat: added user messages and backed now uses discussion_enabled flag (#31716)
* refactor: simplified tasks.py for discussions

* fix: do not create a topic for the unpublished unit

* feat: added user messages and backed now uses discussion_enabled flag

* fix: update default for discussion_enabled flag

* feat: removed redundant tests and fixes
2023-02-22 12:41:02 +05:00
Alejandro Cardenas
7f90b5d3e1 feat: add SurveyReportUpload and add send report method (#31431)
* feat: add SurveyReportUpload and add send report method

* docs: Update openedx/features/survey_report/management/commands/generate_report.py

Co-authored-by: Maria Grimaldi <maria.grimaldi@edunext.co>

* docs: Update openedx/features/survey_report/models.py

Co-authored-by: Maria Grimaldi <maria.grimaldi@edunext.co>

* refactor: Update openedx/features/survey_report/models.py

Co-authored-by: Maria Grimaldi <maria.grimaldi@edunext.co>

* style: Update openedx/features/survey_report/api.py

Co-authored-by: Maria Grimaldi <maria.grimaldi@edunext.co>

* feat: add migratio file and update status field name

* refactor: rename send report method

* test: fix test errors

* test: add command options

* refactor: simple conditional instead of ok method

* fix: remove useless imports

* fix: use status code instead of status

* feat: add zapier endpoint

* style: solve pylint issues

* feat: add id field to send report data

* refactor: regenerate migration with correct history

* feat: add anonymous site id model

* feat: update zapier url

---------

Co-authored-by: Maria Grimaldi <maria.grimaldi@edunext.co>
Co-authored-by: Alejandro Cardenas <alejandrocardenas@Alejandros-MacBook-Pro.local>
2023-02-21 10:51:36 -05:00
Syed Sajjad Hussain Shah
d694b70439 fix: recommend only available courses (#31773)
VAN-1306

Co-authored-by: Syed Sajjad  Hussain Shah <syed.sajjad@H7FKF7K6XD.local>
2023-02-21 09:04:08 +05:00
Piotr Surowiec
ffc8c0217d Merge pull request #31491 from open-craft/farhaan/upstream-submission-history-api
feat: Added submission history API and extended enrollment API to support grading and finished flags.
2023-02-17 14:21:19 +01:00
Farhaan Bukhsh
76beb4e425 fix: Fixed pagination issue with enrollment api.
Signed-off-by: Farhaan Bukhsh <farhaan@opencraft.com>
2023-02-17 11:49:22 +05:30
Alex Sheehan
de28d61215 fix: downgrading enterprise version to 3.60.21 2023-02-16 19:29:33 +00:00
Alex Sheehan
b72875fd26 chore: bumping enterprise to version 3.61.0 2023-02-15 21:56:34 +00:00
Tim McCormack
83f6e560b7 fix: Add code_owner decorator to remaining Celery tasks (#31762)
This will ensure that errors raised by these tasks will alert the right
team. `send_course_enrollment_email` is the one I set out to fix, but I
discovered a few others.

I located tasks that were missing decorators by running the following
search and visually inspecting the results, although semgrep might be able
to do better:

```
ack '^@.*task|^@set_code_owner_attribute' cms lms common openedx xmodule --ignore-dir=tests --python
```

Also, add more detailed explanation of why a couple of tasks can't use the
decorator. This should only be an issue on tasks inheriting from
UserTaskMixin, which in practice is just CourseExportTask and
CourseImportTask (and the apparently unused EnrollmentReadTask and
EnrollmentWriteTask), via UserTask.
2023-02-15 18:20:50 +00:00
Tim McCormack
197fef9c2b docs: Various cleanup of outdated comments and docstrings (#31754)
- Remove pylint warning suppression from SHAKE-128 hexdigest calls; these
  are no longer needed as of astroid 2.12.12. For background, see issue
  <https://github.com/PyCQA/pylint/issues/4039>. Also, correct a comment
  that referred to SHAKE-256 instead of SHAKE-128.
- Replace "released" with "beta" in several places where there was a copy
  & paste error in dark_lang. Add mention of `beta_lang` to a docstring
  where it was omitted.
- Remove comment regarding Mongo startup; the code it referred to has since
  been removed.
- Fix typos.
2023-02-14 18:11:57 +00:00
Muhammad Adeel Tajamul
9f7bba85fc feat: added reverse_order param in comments sort (#31667)
Co-authored-by: adeel.tajamul <adeel.tajamul@arbisoft.com>
2023-02-13 12:58:13 +05:00
Justin Hynes
c6a548e419 temp: remove temp logging added around extended_profile functionality
[APER-2247]

This reverts commit 1359a6d6bb. This logging is no longer needed as the feature is working as expected (and we figured out the issue causing unexpected/missing results).
2023-02-08 10:54:56 -05:00
dnuzz
e6bb704fca chore: Add limit parameter to get_retirement_users view 2023-02-07 11:30:44 -05:00
Kyle McCormick
b5fd4cc55f fix: allow content libraries to be created through Django admin (#31719)
Previously, CMS Django admin would demand that at least one
LTIConfig be associated with the new library. This is not
necessary, but Django thought it was, because the `blank`
flag was not enabled on the ContentLibrary model's
`authored_lti_config` many-to-many field.

This should not affect the experimental blockstore-based
library authoring frontend, which already allows libraries
to be created without any authorized_lti_configs.

This will not affect the existing modulestore-based
library authoring frontend, since it doesn't even use
any of the models in question.

A migration is included with this commit, but it should NOT
change MySQL schema, since `blank` is a Django-level validation
flag.
2023-02-07 08:17:01 -05:00
Daniel Nuzzo-Mueller
f6a5a99958 chore: linting fix 2023-02-06 14:34:03 -05:00
Daniel Nuzzo-Mueller
b3690ef88b chore: Try to fix linting 2023-02-06 14:34:03 -05:00
Daniel Nuzzo-Mueller
640569b81d chore: Add limit parameter to get_retirement_users view 2023-02-06 14:34:03 -05:00
Justin Hynes
1359a6d6bb temp: add some logging around extended profile update functionality
I am trying to persist/save data through an "extended profile field" in Stage but the data isn't saving. I have this working locally with devstack but don't understand why it's not working in Stage.

This PR adds some logging so I can do some debugging in Stage and try and pinpoint if/where the issue is occurring.
2023-02-02 12:51:47 -05:00
Justin Hynes
2d347eaa4d revert: temp: add some logging around extended profile update functionality
This reverts commit c52ba9d26a after the `final_checks_before_prod` stage of our deployment pipeline failed.
2023-02-02 09:05:57 -05:00
Justin Hynes
cf4edc4da6 Merge pull request #31690 from openedx/jhynes/aper-2247_logging
temp: add some logging around extended profile update functionality
2023-02-02 07:40:23 -05:00
Ned Batchelder
12765a7a59 refactor(test): use @skip_unless_lms uniformly 2023-02-01 13:52:26 -08:00
Justin Hynes
c52ba9d26a temp: add some logging around extended profile update functionality
I am trying to persist/save data through an "extended profile field" in Stage but the data isn't saving. I have this working locally with devstack but don't understand why it's not working in Stage.

This PR adds some logging so I can do some debugging in Stage and try and pinpoint if/where the issue is occurring.
2023-02-01 12:57:33 -05:00
Feanil Patel
57f2ca1a21 fix: Prepare for the bleach 6.0.0 upgrad.
Changelog: https://bleach.readthedocs.io/en/latest/changes.html#version-6-0-0-january-23rd-2023

The major change is that the tags and protocols attributes and related
constants are expected to be sets rather than lists.
2023-02-01 11:46:44 -05:00
Justin Hynes
213ade8cf7 fix: remove unused settings from edx-paltform related to learner record MFE
[APER-2240]

The monolith no longer needs to understand how to build URLs to the Learner Record MFE. The Credentials IDA has logic to determine if (and how) a request should be redirected to this MFE. This PR remove unused settings from edx-platform.

We have already removed the use of these settings in #31672.
2023-01-31 09:44:30 -05:00
Justin Hynes
e8679056e4 fix: remove learner record MFE URL building logic
[APER-2240]

The monolith no longer needs to understand how to build URLs to the Learner Record MFE. The Credentials IDA has logic to determine if (and how) a request should be redirected to the MFE so we can remove these  changes. Another PR later will remove the unused settings.
2023-01-31 07:57:26 -05:00
0x29a
3a1011bed8 refactor: replace usages of XModuleMixin.system with XBlock.runtime 2023-01-30 18:15:24 +01:00
0x29a
d338f00e39 refactor: rename module (or item) -> block within cms 2023-01-30 18:15:23 +01:00
0x29a
c3f672a399 refactor: rename module -> block within remaining openedx/features 2023-01-30 18:15:22 +01:00
0x29a
a299046540 refactor: rename module -> block within openedx/core 2023-01-30 18:15:22 +01:00
0x29a
a027f36724 refactor: rename module -> block within xmodule 2023-01-30 18:15:22 +01:00
0x29a
9d8375ff99 refactor: rename module -> block within lms/djangoapps/courseware
Also, removed unused `_has_access_xmodule` methid from `lms/djangoapps/courseware/access.py`.
2023-01-30 18:15:22 +01:00
Sagirov Evgeniy
7a21c22587 test: updated test_import.py and test_course_index.py for split modulestore
This is part of Old Mongo removal. Also in this commit:

* fixed 400 error for cms old_style assets
* fix TEST_DATA_SPLIT_MODULESTORE import for test_course_index
2023-01-30 10:22:28 -05:00
Feanil Patel
d846ea8558 Merge pull request #31633 from openedx/feanil/depr_bs_raise_error
feat!: Remove block_structure.raise_error_when_not_found waffle flag.
2023-01-30 10:17:00 -05:00
0x29a
528b96fef9 docs: expand override_export_fs's docstring 2023-01-26 15:28:43 +01:00
Alejandro Cardenas
045ae44184 feat: add generate report button in admin (#31429)
* feat: add generate report button in admin
2023-01-25 10:19:59 -05:00
Arunmozhi
7c621e6ad2 refactor: remove get_displayable_items and displayable_items from XModule 2023-01-23 14:47:48 +01:00
Arunmozhi
59d8b5d286 refactor: replace displayable_blocks with child
This removes the "displayable_blocks" property and replaces all the
usages with the "child" property.
2023-01-23 14:47:47 +01:00
Arunmozhi
b6634a811a refactor: replace get_display_blocks with get_children 2023-01-23 14:47:47 +01:00
Arunmozhi
851eb65d53 refactor: rename get_displayable_items and displayable_items 2023-01-23 14:47:47 +01:00
Arunmozhi
d417a7561f refactor: rename ItemFactory to BlockFactory 2023-01-23 14:47:47 +01:00
Feanil Patel
40eedc6889 test: Update query counts now that we've removed a waffle flag.
Various tests with query counts need to be updated now that we have
removed a waffle check that was in their codepath.
2023-01-22 18:39:51 -05:00
Feanil Patel
e46bfcd252 feat!: Remove block_structure.raise_error_when_not_found waffle flag.
Per this DEPR: https://github.com/openedx/public-engineering/issues/34

This was a temporary waffle and is no longer needed.

BREAKING_CHANGE: Setting the
`block_structure.raise_error_when_not_found` waffle switch via
django-waffle will be ignored.

Note for Operators: If you have this waffle swicth in your systems, it
should be removed.
2023-01-20 13:09:24 -05:00
Awais Qureshi
3d2d02bffe fix: upgrade pytz. (#31599)
* fix: upgrade pytz
2023-01-20 14:27:41 +05:00
Mohammad Ahtasham ul Hassan
b01cf355a7 Unpin django-ratelimit (#31416)
* fix: fix ratelimit upgrade changes

Co-authored-by: Awais Qureshi <awais.qureshi@arbisoft.com>
2023-01-19 16:39:23 +05:00
Awais Qureshi
8abcdd2552 fix: Unpin icalendar constraint. (#31590)
* fix: Unpin icalendar constraint.
* chore: Updating Python Requirements (#31591)
Co-authored-by: edX requirements bot <49161187+edx-requirements-bot@users.noreply.github.com>
2023-01-19 12:39:01 +05:00
Hamza442
7e93be158b Merge pull request #31584 from openedx/hamza442/DENG-1261-add-testcases
chore: add new tests for retire_user management command
2023-01-18 23:58:59 +05:00
Nathan Sprenkle
670477e7d5 fix: add fallthrough exception for course overview (#31582)
An issue trying to get a course overview for a deleted course and trying
to write back into the DB had been raising unhandled errors. Catching
other classes of errors to keep this function from breaking. Should just
return None in these cases and log the exception.
2023-01-18 11:40:38 -05:00