Commit Graph

60865 Commits

Author SHA1 Message Date
Michael Terry
6ac9bae571 Merge pull request #29117 from openedx/mikix/drop-learning-sequence-flag
feat: enable using learning sequence outlines by default
2022-02-07 11:32:59 -05:00
Tim McCormack
a1b09c0b8d fix: More resilience when calling encrypt_for_log with missing key (#29878)
It's likely that someone will at some point enable encrypted logging but
forget to deploy the config change that sets the key; if this happens, we
should gracefully return a warning rather than raise an exception.

Along the same lines, make sure that safe-sessions won't raise an exception
if the setting is missing, and document the suggested use of getattr.
2022-02-07 16:00:56 +00:00
Kshitij Sobti
5708787527 feat: show share feedback button only for discussions MFE when URL is configured (#29785)
Removes the share feedback button unless a URL is configured, and only shows it for the discussions MFE view.
2022-02-07 14:57:32 +05:00
Michael Terry
bcb0aa923e Merge pull request #29855 from openedx/mikix/flip-default-test-store
test: switch default test store to the split store
2022-02-04 14:54:40 -05:00
Michael Terry
cb1bb7fa64 test: switch default test store to the split store
It's long past time that the default test modulestore was Split,
instead of Old Mongo. This commit switches the default store and
fixes some tests that now fail:
- Tests that didn't expect MFE to be enabled (because we don't
  enable MFE for Old Mongo) - opt out of MFE for those
- Tests that hardcoded old key string formats
- Lots of other random little differences

In many places, I didn't spend much time trying to figure out how to
properly fix the test, and instead just set the modulestore to Old
Mongo.

For those tests that I didn't spend time investigating, I've set
the modulestore to TEST_DATA_MONGO_AMNESTY_MODULESTORE - search for
that string to find further work.
2022-02-04 14:32:50 -05:00
Julia Eskew
a6a27104cd feat: Add organization-level waffle flag overrides to the view consumed
to make the toggle report spreadsheet. Add appropriate tests.
2022-02-04 12:31:09 -05:00
Jansen Kantor
30dcdb487a fix: uncaught ItemNotFoundErrors (#29870) 2022-02-04 10:24:15 -05:00
Adolfo R. Brandes
113e5b0d0c Merge pull request #28875 from arbrandes/arbrandes/se-4876-fix-onresize-loop
fix: avoid onresize height loop [SE-4876]
2022-02-04 12:20:10 -03:00
Adolfo R. Brandes
086e26ea69 fix: avoid onresize height loop
We set a global `min-height: 100%` for the body element (a common strategy to
allow for background images to fill the viewport), but this is undesirable for
iframes where the `window.onresize` is used to programmatically adjust the
iframe height.  Because `onresize` will fire when the body adjusts itself as
per its `min-height: 100%`, in certain situations this will lead to an infinite
resizing loop.  This is notably visible when:

* Rendering the video block when using Firefox: this causes the iframe
  size to jiggle indefinitely.
* Rendering the HTML block when there are empty block elements (such as
  `<p></p>`) that have a vertical margin set (which happens to be the
  default to HTML blocks): this will cause the iframe to increase in
  height infinitely.

By adding an inline `min-height: auto` on the wrapping body element,
this overrides the Studio-served CSS, and thus fixes the problem.
2022-02-04 12:03:03 -03:00
Tim McCormack
95ad20afde test: Small cleanups in SafeSessions code (#29868)
- test: Remove reference to `REDIRECT_TO_LOGIN_ON_SAFE_SESSION_AUTH_FAILURE`,
  since it was removed in commit bd7653aefcd77a/PR #29132.
- docs: Clarify what "work correctly" means for header-logging
2022-02-04 14:43:41 +00:00
SaadYousaf
87b029f293 fix: add investigation logs for course import. 2022-02-04 15:45:57 +05:00
AsadAzam
e2bb15cda8 fix: added admin only config in available providers (#29865)
* fix: added admin only config in available providers

* fix: fixed tests
2022-02-04 15:32:43 +05:00
Ahtisham Shahid
7f9dbfc8e7 fix: Hide headers and footer in disucssion mfe UI in edx-platform (#29874) 2022-02-04 14:08:36 +05:00
edx-pipeline-bot
9c81b7773f Merge pull request #29873 from openedx/private_to_public_232850e
Mergeback PR from private to public.
2022-02-04 03:31:00 -05:00
SaadYousaf
314aa86f1e fix: remove investigation logs 2022-02-04 12:25:56 +05:00
Rebecca Graber
47aed8d2ab feat: management command for consuming kafka events (#29838) 2022-02-03 12:39:31 -05:00
Ali Akbar
232850e8e8 Merge pull request #239 from edx/aakbar/PROD-2630-xss-fix
fix: escape vulnerable enrollment mode
2022-02-03 21:44:21 +05:00
Tim McCormack
7c7792f92a fix: Delete JWTs and other cookies when SafeSessions deletes session cookie (#29857)
This is more correct and may reduce the likelihood of perpetuating a bad
mixed-auth state.

In general, we should probably be modifying session and JWT cookies in
sync at all times, never individually. This specific code probably won't
make anything worse, but a clean reset might improve user experience in
the rare cases where someone somehow gets their browser into a weird
state.

- Switch from `response.set_cookie` with past expiry to just using the
  `response.delete_cookie` method.
- Docstring improvements.

ref: ARCHBOM-2030 (internal)
2022-02-03 15:00:23 +00:00
SaadYousaf
52db919b6c fix: add further additional logs for course import 2022-02-03 12:25:29 +05:00
Simon Chen
1f36b35bc4 fix: remove the data point on zoom since edx_zoom is deprecated (#29860)
Co-authored-by: Simon Chen <schen@edx-c02fw0guml85.lan>
2022-02-02 13:53:06 -05:00
Bianca Severino
a84397e4ad Merge pull request #29820 from openedx/bseverino/remove-idv-experiment
[MST-869] Remove code related to IDV experiment
2022-02-02 11:38:08 -05:00
SaadYousaf
7a4ed05279 fix: add additional logs to investigate import issue 2022-02-02 15:07:38 +05:00
Adam Stankiewicz
fb77ac9b27 chore: bump edx-enterprise to 3.39.0 (#29856) 2022-02-01 15:04:42 -05:00
Simon Chen
c2a96c059a chore: upgrade lti-consumer-xblock library to version 3.4.1 (#29854)
Co-authored-by: Simon Chen <schen@edX-C02FW0GUML85.local>
2022-02-01 14:11:33 -05:00
Kshitij Sobti
23be63309b feat: Add a new user API for discussions (#29287)
Adds a new user API for discussion that returns the discussion stats across the course.
2022-02-01 17:51:01 +05:00
edX requirements bot
429cee1fb2 chore: Updating Python Requirements (#29849) 2022-02-01 14:35:00 +05:00
Maria Grimaldi
07f88fab4b fix: avoid raising error when auth_entry is None (#29787)
This commit avoids raising AuthEntryError when auth_entry is None.
At some point of the authentication flow, when the auth_entry is
missing from the auth URL (eg. auth/login/tpa-saml/?idp=idp), the
request session stores auth_entry: None causing this edited line to fail
which stops the login from completing.
2022-01-31 14:36:44 -05:00
John Nagro
0aae4a20df feat: release edx-enterprise 3.38.7 (#29847)
- https://github.com/openedx/edx-enterprise/pull/1455
- https://pypi.org/project/edx-enterprise/3.38.7/

ENT-5315
2022-01-31 14:06:05 -05:00
Nathan Sprenkle
1212e3550c feat: ora staff grader backend (#29828)
- Adds Enhanced Staff Grader (ESG) backend-for-frontend (BFF) in `lms/djangoapps/ora_staff_grader`
    - Adds routing to ESG BFF at `{lms_url}/api/ora_staff_grader/*`
    - Adds mock implementation routing at `{lms_url}/api/ora_staff_grader/mock/*`
    - Adds `ORA_GRADING_MICROFRONTEND_URL` setting for routing to ESG microfrontend (MFE)
- Updates to the teams app:
    - Add`get_teams_in_teamset` to the teams API.
    - Add `get_team_names` to teams service.
- Adds `openassessment.staffgrader` app for appropriate ORA migrations.
- Modifies management commands for creation of users.
- Updates test factory to return display org with course overview.

Co-authored-by: jansenk <jkantor@edx.org>
Co-authored-by: Leangseu Kim <lkim@edx.org>
Co-authored-by: Ben Warzeski <bwarzeski@edx.org>
2022-01-31 11:09:41 -05:00
Matjaz Gregoric
65f0a2fd3a fix: send forum notifications for question threads (#29611)
Responses to forum questions did trigger email notifications.

This fix makes email notifications for question-type threads work the
same way as they work for regular discussion-type threads.

See:
https://github.com/openedx/build-test-release-wg/issues/86
2022-01-31 20:44:42 +05:00
Ned Batchelder
fee4ec26f5 fix: return a sorted list so tests can be deterministic
Tests on Maple were failing:

```
    def test_retirement_for_multiple_users(self):
        user_retirement_url = reverse('bulk_retirement_api')
        expected_response = {
            'successful_user_retirements': [self.user3.username, self.user4.username],
            'failed_user_retirements': []
        }
        with self.settings(RETIREMENT_SERVICE_WORKER_USERNAME=self.user1.username):
            response = self.client.post(user_retirement_url, {
                "usernames": f'{self.user3.username},{self.user4.username}'
            })
            assert response.status_code == 200
>           assert response.data == expected_response
E           AssertionError: assert {'failed_user... 'testuser3']} == {'failed_user... 'testuser4']}
E             Omitting 1 identical items, use -vv to show
E             Differing items:
E             {'successful_user_retirements': ['testuser4', 'testuser3']} != {'successful_user_retirements': ['testuser3', 'testuser4']}
E             Use -v to get the full diff
```

`sorted(set(...))` still produces a list, and I guess we didn't care
about the order before, since it wasn't determined.  So this should be
an acceptable change.
2022-01-31 04:09:45 -08:00
Kshitij Sobti
16881afcad feat: Allow fetching details of inactive providers [BD-38] (#29656)
* feat: Allow fetching details of inactive providers

* squash!: update tests add docs

* squash!: review feedback

* squash!: fix quality issue

* squash!: review feedback
2022-01-31 15:58:27 +05:00
Kshitij Sobti
2758301c31 feat: Discussion Topics API v2 [BD-38] [TNL-9332] [BB-5189] (#29530)
* feat: New API for discussion topics

Creates a new API for discussion topics that uses auto-crated discussion topic links for the new discussion provider.

* squash!: refresh migration
2022-01-31 15:57:49 +05:00
Michael Terry
500f87945c Merge pull request #29842 from openedx/mikix/respect-course-start-when-resetting-schedule
fix: avoid resetting a learner schedule to before a course starts
2022-01-28 15:13:46 -05:00
Michael Terry
656ec5def9 fix: avoid resetting a learner schedule to before a course starts
If a learner changes modes (like upgrades to a verified learner),
we will reset their schedule for them. But if they did this before
the course started, we would accidentally set their schedule to
the current time. So when the course did start, they would already
appear to be behind schedule.

That's silly. So now we always look at course start time when
resetting the learner's schedule.

AA-426
2022-01-28 14:58:36 -05:00
Ahtisham Shahid
47c62d119d chore: added url for discussions mfe in prod settings (#29837) 2022-01-28 20:42:50 +05:00
Jeremy Ristau
c04e63d271 Merge pull request #29796 from open-craft/chris/FAL-2728
feat: InvalidKeyError message changed to NotFound 404 message
2022-01-28 10:29:13 -05:00
Dillon Dumesnil
d8d4826bf0 Merge pull request #29821 from eduNEXT/MJG/fix-available-cert-date-preview
fix: avoid TypeError when comparing course.end with current date
2022-01-28 07:18:22 -08:00
Julia Eskew
0eb0f99d00 feat: Add org-level waffle overrides to allow a waffle flag to be overridden for all
courses in a particular organization, without needing to make a separate course-level
waffle override for each individual course for an organization.
2022-01-28 08:00:18 -05:00
AsadAzam
7c1710beca feat: made all lti providers admin only config (#29835) 2022-01-28 13:46:46 +05:00
Zainab Amir
0abbd89145 feat: add authn to devstack (#29832) 2022-01-28 12:12:31 +05:00
Maria Grimaldi
7124d6778d fix: avoid TypeError when comparing course.end with current date 2022-01-27 17:34:08 -04:00
connorhaugh
e5a9ddcd87 feat: encode uri on new editors (#29825)
In order to complete https://openedx.atlassian.net/browse/TNL-9320, we need to better encode the URI of the editor using the block id.
We also need to allow users to navigate out of the editors while it is a new page using the back button for a11y reasons.
2022-01-27 07:59:38 -05:00
XnpioChV
726842b39a feat: InvalidKeyError message changed to NotFound 404 message 2022-01-26 19:28:14 -05:00
Ned Batchelder
513b682005 docs: a better mention of Devstack 2022-01-26 13:32:16 -08:00
Felipe Montoya
c807af628f Merge pull request #29449 from eduNEXT/MJG/1st_filters_batch
[BD-32] feat: add first batch of Open edX Filters
2022-01-26 11:35:00 -05:00
Maria Grimaldi
f29a4eef68 feat: add first batch of Open edX Filters
* Add PreEnrollmentFilter
* Add PreRegisterFilter
* Add PreLoginFilter
2022-01-26 11:45:44 -04:00
Feanil Patel
ca2f950985 Merge pull request #29826 from openedx/feanil/update_logo_urls
chore: Update logo url.
2022-01-26 10:37:13 -05:00
Feanil Patel
1219837540 chore: Update logo url.
Switch from files.edx.org to the logos.openedx.org url for the "Powered
by Open edX" logos.  We should still keep the old url working as many
old versions of Open edX still referer to it.

We're making this change so that for future versions of the edx-platform
the DNS for these logos lives alongside the rest of the Open edX
infrastructure managed by tCRIL.
2022-01-26 10:14:55 -05:00
alangsto
0e7534d730 fix: enrollment should still display if IDV is disabled (#29819)
MST-1317. The enrollment mode of a learner should still display on the course listing, even if IDV is disabled. Right now, all enrollment messaging is disabled if IDV is turned off, as we are no longer returning the verifications status for a learner in that case. We should still return the enrollment mode if IDV is disabled, but exclude any IDV messaging.
2022-01-26 10:14:33 -05:00