Commit Graph

66806 Commits

Author SHA1 Message Date
Feanil Patel
32e008298d Merge pull request #36642 from openedx/feanil/geoip2-bot-update-country-database-c2d9e40
Update GeoLite Database
2025-05-12 10:21:53 -04:00
feanil
7521a2dddb chore: geoip2: update maxmind geolite country database 2025-05-12 10:00:40 -04:00
Feanil Patel
82b417fb8a Merge pull request #36690 from openedx/feanil/add_constraints
feanil/add constraints
2025-05-12 09:21:35 -04:00
Navin Karkera
d664f0e5d4 fix: update container key field usage 2025-05-12 06:58:15 +00:00
Usama Sadiq
956a28996a fix: refactor index_together to indexes for Django 5.2 support (#36693) 2025-05-12 11:46:47 +05:00
Feanil Patel
7d7847f38a chore: Run make upgrade 2025-05-09 13:44:19 -04:00
Feanil Patel
c42e021155 build: Pin django-user-tasks.
The latest version only works with Django 5.2 so we'll either need to
fix that or just wait till we're ready to do that bump.
2025-05-09 13:44:19 -04:00
Feanil Patel
ef93d6b863 build: Pin lxml and xmlsec.
The newest versions don't match the version of libxml2 that is available
on the ubuntu servers.  This causes an error at runtime.
2025-05-09 13:43:59 -04:00
Rômulo Penido
f50565c730 feat: add last_published_at to upstream summary endpoint [FC-0083] (#36656)
Returns the last_published_at date from the upstream summary endpoint.
2025-05-09 12:04:39 -05:00
Justin Hynes
f509bceac2 fix: setup context for emitting event to segment if desired (#36692)
If we wish this event to be sent to Segment through the event-tracking lib, we must ensure that the context includes at least the `user_id` field in the context dict.
2025-05-09 10:54:37 -04:00
Eemaan Amir
841efcc9fb feat: update user segment attribute is_disabled when user is disabled/enabled (#36681) 2025-05-09 19:35:16 +05:00
Eemaan Amir
8758007e9b feat: management command to backfill is_disabled attribute to segment (#36680)
* feat: management command to backfill is_disabled attribute to segment

* fix: fixed pylint errors

* fix: replaced broad exceptions with specific exceptions
2025-05-09 18:54:46 +05:00
Feanil Patel
ad37bc5c38 Merge pull request #36689 from wgu-ram-chandra/issue-35274-unpin-edx-i18n-tools
chore: update edx-i18n-tools constraint to allow newer versions
2025-05-09 09:30:21 -04:00
Feanil Patel
e4a002a409 Merge pull request #36618 from wgu-ram-chandra/issue-35278-unpin-charset-normalizer
chore: update charset-normalizer constraint to allow newer versions
2025-05-09 09:29:09 -04:00
Ram Chandra Bhavirisetty
40de4a9f35 chore: update edx-i18n-tools constraint to allow newer versions 2025-05-09 03:36:59 +00:00
Tim McCormack
4c462918e8 fix: Pass limit overrides context to codejail execution in all places (#36685)
Some of the calls to `safe_exec` were missing the `limit_overrides_context`
parameter. This normally conveys the course key to codejail so that we can
give some courses different resource limits, but it's also valuable for
diagnosing codejail issues in logs and other telemetry.

I wasn't able to test all of these paths manually, but the utility function
`get_course_id_from_capa_block` will swallow errors, so the situation
should be no worse if the `LoncapaResponse.capa_block` field has something
unexpected.
2025-05-08 16:55:57 -04:00
Feanil Patel
ce73ae6445 Merge pull request #36684 from openedx/feanil/upgrade-certifi-2e91a05
feat: Upgrade Python dependency certifi
2025-05-08 16:31:15 -04:00
feanil
aaa6629cbd feat: Upgrade Python dependency certifi
Update to the latest certifi.

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2025-05-08 19:42:42 +00:00
Braden MacDonald
2e91a05112 fix: Bugs with "Publish All Changes" in Library [FC-0083] (#36640)
* fix: "[created] received a naive datetime"
* fix: leaky "isolation" of events was causing test failures
* fix: make lib events more specific, emit them async, handle hierarchy correctly
* chore: bump openedx-events to 10.2.0 for new library PUBLISHED events
2025-05-08 11:57:07 -07:00
Feanil Patel
4ff7c3936f Merge pull request #36674 from openedx/feanil/update_more_requirementst
chore: Upgrade type stubs and other related packages.
2025-05-08 14:27:19 -04:00
Tim McCormack
d5a273ce2f feat!: Expand codejail darklaunch normalizers; append by default (#36682)
For darklaunch comparisons where the two sides have different Python
versions, we'll want a more comprehensive list of normalizers.

- Expand the default list to include patterns discovered during a Python
  3.8 vs. 3.12 comparison.
- Append the setting value by default, rather than replacing (but still
  allow replacing).
- Use default normalizers if custom ones can't be loaded.
- Add log message when loading normalizers fails.
- Validate the replacement pattern, not just the search pattern.
2025-05-08 13:43:53 -04:00
Katrina Nguyen
ad156c062e Merge pull request #36675 from openedx/katrinan029/upgrade-edx-enterprise-df3ac69
feat: Upgrade Python dependency edx-enterprise
2025-05-08 08:07:55 -07:00
katrinan029
1d8e5726d1 feat: Upgrade Python dependency edx-enterprise
version bump

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2025-05-07 21:02:27 +00:00
Feanil Patel
2d78390f02 chore: Upgrade type stubs and other related packages.
Upgrade typing related packages and update to ignore one new annotation
complaint and drop and older complaint that is no longer relevant.
2025-05-07 14:38:45 -04:00
Feanil Patel
df3ac697dd Merge pull request #36673 from openedx/feanil/requirements_update
chore: Upgrade various python packages.
2025-05-07 14:09:50 -04:00
Feanil Patel
5483f5cca9 chore: Upgrade various python packages.
Manually update them because we seemed to be running into issues with
some of them.  Upgrade as much as we can to narrow it down.
2025-05-07 13:45:21 -04:00
Taimoor Ahmed
1bed70b73e feat!: remove cs_comments_service support for forums pin API
This will force the use of the new v2 forums API for pinning/unpinning.
2025-05-07 10:41:37 -04:00
Hassan Raza
588840aef5 fix: Resolve group by id max length issue (#36668) 2025-05-07 11:55:00 +05:00
Tim McCormack
5bc05810dc feat: Improve codejail darklaunch logging (#36671)
This is intended to make logs more or less a standalone source for
analyzing mismatches.

- Only log mismatches or exceptions
- Merge local and remote log messages into one so they can be correlated
  more easily
- Different log messages for mismatch vs. unexpected exceptions
- Include course ID (as limit overrides context) in log message
2025-05-06 16:42:55 -04:00
Ram Chandra Bhavirisetty
dcb0cfa5c0 Merge branch 'master' into issue-35278-unpin-charset-normalizer 2025-05-06 13:30:03 -06:00
Feanil Patel
0d20b49d17 Merge pull request #36657 from wgu-ram-chandra/issue-35270-unpin-moto
chore: remove moto version constraint after verifying compatibility
2025-05-06 13:40:47 -04:00
Jesper Hodge
704dd739d9 test: re-enable migration checks (#36655)
the check was disabled:
https://github.com/openedx/edx-enterprise/pull/2338

because we needed to fake a migration:
https://github.com/openedx/edx-enterprise/pull/2383

but that fake migration is now in edx-platform:
https://github.com/openedx/edx-enterprise/pull/2383

so we can re-enable the check.
2025-05-06 11:27:14 -04:00
github-actions[bot]
75c4ffc20f feat: Upgrade Python dependency edx-celeryutils (#36666)
chore: update edx-celeryutils package with Django 5.2 support

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: UsamaSadiq <41958659+UsamaSadiq@users.noreply.github.com>
2025-05-06 19:13:27 +05:00
iloveagent57
5858e29de5 feat: Upgrade Python dependency edx-enterprise
fix: enterprise 5.13.3 | handling the xpert v2 response correctly

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2025-05-06 09:57:43 -04:00
Usama Sadiq
ec51d5da93 feat!: React 18 Upgrade (#36568) 2025-05-06 16:19:45 +05:00
Muhammad Faraz Maqsood
be5a625e64 fix: security issue
- It's related previous PR: https://github.com/openedx/edx-platform/pull/36643/files.
- This time followed LMS template(5b3caa93e2/lms/templates/courseware/courseware-chromeless.html (L126C7-L127C42)) as we are not getting any error on LMS.

Attaching error for context:
`Uncaught SecurityError: Failed to read a named property 'offsetHeight' from 'Window': Blocked a frame with origin "https://studio.stage.edx.org/" from accessing a cross-origin frame.`
2025-05-06 11:13:13 +05:00
Tim McCormack
4c15e00611 docs: Improve docs for HIBP settings; remove duplicated cms copies (#34116)
- Clarify effects of enabling each policy.
- Document the thresholds and what policies they relate to.
- Express thresholds as floating point numbers to better hint at them not
  being intended as integer values.
- Change toggle use case from temporary to open_edx for login policies (as
  we're expecting to keep those toggles long term, as an optional feature).
- Remove links to private Jira tickets. (openedx Jira is now gone, and
  these tickets are only present in 2U's private Atlassian instance.)
- Import LMS HIBP settings into CMS (rather than duplicating them) but
  mark as unused.
2025-05-05 19:16:37 -04:00
Justin Hynes
46c9b3a193 fix: add error handling for potential issues calculating course progress (#36660)
* fix: add error handling for potential issues calculating course progress

Realized there is potential in a few places for exceptions to be thrown. I'm adding some more error handling in the course progress task and function to handle potential issues.
2025-05-05 14:00:12 -04:00
Marlon Keating
42a9fb8cd2 Merge pull request #36659 from openedx/marlonkeating/upgrade-edx-enterprise-84583a7
feat: Upgrade Python dependency edx-enterprise
2025-05-05 08:52:10 -07:00
marlonkeating
6c2c4333bb feat: Upgrade Python dependency edx-enterprise
fix: enterprise-customer-support sorting/pagination using view

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2025-05-05 14:54:01 +00:00
Ram Chandra Bhavirisetty
456bc55d98 chore: removed moto version constraint after verifying compatibility 2025-05-04 06:16:16 +00:00
Ram Chandra Bhavirisetty
4b4faac644 chore: remove moto version constraint after verifying compatibility 2025-05-04 01:28:25 +00:00
Edward Zarecor
a9b81fbd87 Merge branch 'master' into issue-35278-unpin-charset-normalizer 2025-05-02 14:57:58 -04:00
vladislavkeblysh
84583a73e0 feat: [RGOeX-26106] added correct image for FB sharing (#33784) 2025-05-02 11:58:21 -04:00
Deborah Kaplan
ea98b2d65f chore: updating some user retirement documents (#36649)
* chore: updating some user retirement documents

* removing some Jenkins documentation which is specific to 2u's implementation, and links to the old org's wiki
* updating some markup that was preventing images from rendering. Tested locally with a docs  bill to make them render now.

FIXES: APER-3981

* chore: adding a filewith a revised image

*  another file with a revised image which didn't make it into the original commit
2025-05-02 11:41:37 -04:00
Jillian
5b3caa93e2 feat: store content.child_usage_keys in Container search document [FC-0083] (#36528)
* feat: store content.child_usage_keys in Container search document
  Stores the draft children + published children (if applicable)

Related fixes:
* fix: lib_api.get_container does not take a "user" arg
* refactor: fetch_customizable_fields_from_container does not need a "user" arg
* refactor: moves tags_count into LibraryItem
   because anything that appears in a library may be tagged.
* refactor: remove get_container_from_key from public API
   API users must use get_container and ContainerMetadata.
* refactor: made set_library_item_collections take an entity_key string instead of
  a PublishableEntity instance, so we don't need to fetch a Container object to call it.
* refactor: changed ContainerLink.update_or_create to take the container PK
  instead of a Container object, since this is enough.
  Added container_pk to ContainerMetadata to support this.
2025-05-02 10:47:25 +09:30
Ram Chandra Bhavirisetty
e86d247f7d Merge branch 'master' into issue-35278-unpin-charset-normalizer 2025-05-01 16:56:56 -06:00
Navin Karkera
6508010726 fix: unwanted section of code causing cross-origin error (#36643)
https://github.com/openedx/edx-platform/pull/36477#discussion_r2069105832
2025-05-01 15:01:03 -07:00
Tim McCormack
9ff24774e1 test: Allow locale path test to pass when repo dir name different (#36648)
This test assumes edx-platform is checked out in a directory of that name.
2025-05-01 14:04:41 -04:00
ihor-romaniuk
6366592dd0 fix: improve calculation for xblock action dropdown menu on unit page 2025-05-01 14:42:04 -03:00