mitodl / edx-sga

Staff Graded Assignment XBlock for the edX platform
GNU Affero General Public License v3.0
34 stars 109 forks source link

Add support for Django 4.x and remove all deprecation warning #352

Closed arslanashraf7 closed 8 months ago

arslanashraf7 commented 10 months ago

Description/Context

edX has shifted towards using Django 4.x and we should also look to add support for that in this xBlock as well. However, this block doesn't explicitly define a Dajngo version so the installation itself might not be a problem.

However, We might see issues or deprecation warnings from this xBlock since there are things that are either removed or deprecated in Django 4.x and the following releases.

Plan/Design

2024-01-25 23:05:12,947 WARNING 644 [py.warnings] [user 3] [ip 192.168.65.1] warnings.py:109 - /edx/src/edx-sga/edx_sga/sga.py:37: DeprecatedPackageWarning: Please use import xblock.utils.studio_editable instead of xblockutils.studio_editable because the 'xblock-utils' package has been deprecated and migrated to within 'xblock' package. 
  from xblockutils.studio_editable import StudioEditableXBlockMixin
arslanashraf7 commented 9 months ago

Looks like we already have a PR from the community https://github.com/mitodl/edx-sga/pull/347. I've requested them to rebase the PR.

Anas12091101 commented 9 months ago

Looks like we already have a PR from the community https://github.com/mitodl/edx-sga/pull/347. I've requested them to rebase the PR.

@arslanashraf7 we can then close https://github.com/mitodl/edx-sga/pull/353 ?

Anas12091101 commented 8 months ago

We can now close this issue