-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update or replace jsonfield2 #34
Comments
I was working on issue #42 and I discovered that |
I don't know if adding django 3.2 in the tests is enough to say that jsonfield supports django3.2. If so, what would be the steps to follow to resolve this issue? Do a PR on each repository in the |
@MaferMazu Thank you so much for looking into this. @jmbowman Could you help us out here? |
The switch back to jsonfield was being done in https://openedx.atlassian.net/browse/BOM-1917 , but I think we lost momentum during the review cycle of openedx/edx-submissions#136 . Trying to get that moving again now, thanks for the reminder. I don't think we'd started the upgrade yet in ecommerce, if you want to help with that. |
I noticed that jsonfield allows to use JSONField but Change from jsonfield.fields import JSONField
# or
from jsonfield import JSONField to from django.db.models import JSONField
# or use models.JSONField
from django.db import models
class ContactInfo(models.Model):
data = models.JSONField() |
For a little while we'll need concurrent support for Django 2.2 and 3.2, so we can't just switch the code over; it would have to be conditional, and I don't think that'll play nicely with migrations (Django will want a new migration when the field's class changes). I'm sure we could find a workaround of some sort, but this would be much easier if the |
Then I suppose that the best option could be to use the latest version of jsonfield. Adding django 3.2 in the tests environment works fine. I opened an issue in the repo but I don't think they will update it. |
Ok, then since we have a path forward on getting all jsonfield2 and jsonfield package usage updated to work with Django 3.2, I'll go ahead and close this out. The actual upgrades to the latest jsonfield package are in progress and can be handled as part of the IDA updating work. Thanks for helping sort all this out! |
We use the package jsonfield2 in edx/ecommerce, edx/edx-bulk-grades, edx/edx-celeryutils, edx/edx-enterprise, edx/edx-ora2, edx/edx-platform, edx/edx-proctoring, edx/edx-submissions, edx/edx-zoom, edx/enterprise-catalog, edx/event-routing-backends, edx/license-manager, edx/staff_graded-xblock, edx/super-csv, edx/xblock-lti-consumer. It hasn't yet added support for Django3.2. Please follow the guidance in https://openedx.atlassian.net/wiki/spaces/AC/pages/3036972032/Handling+Outdated+Dependencies to resolve the problem this poses for the Open edX Django 3.2 upgrade.
The text was updated successfully, but these errors were encountered: