8000 chore(models): move from django-json-field to jsonfield for Django 1.9 compatibility by helgi · Pull Request #179 · deis/controller · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.

Conversation

@helgi
Copy link
Contributor
@helgi helgi commented Dec 22, 2015

Does not change any functionality and helps with other PRs

@helgi helgi force-pushed the jsonfields branch 3 times, most recently from 03610b7 to b62b0c1 Compare December 22, 2015 22:56
@helgi helgi self-assigned this Dec 22, 2015
@slack slack added the LGTM1 label Dec 29, 2015
@slack
Copy link
Member
slack commented Dec 29, 2015

Wherein the pythongs ( 🐍 ) create unreadable migrations.

@helgi
Copy link
Contributor Author
helgi commented Dec 29, 2015

whaaaaaaaaa! it's just an up and a down and the whole schema defintion all in one ... oh yeah, unreadable 😢

@bacongobbler
Copy link
Member

what's the reason for this migration? Is Django JSON Field incompatible with Django v1.9 or something? Shouldn't we just contribute fixes upstream for 1.9 compatibility instead?

@helgi
Copy link
Contributor Author
helgi commented Dec 29, 2015

Yeah, it's incompatible - This seemed quicker as it provides the same functionality. The migrations are just so Django knows how to reference class it's hooked up to

https://www.djangopackages.com/grids/g/json-fields/ going by this as well the one we currently are using hasn't been touched since 2014 and is not Python 3 compatible.

derek-schaefer/django-json-field#42 is the reason for the 1.9 compatibility problem. There is a PR, no dice tho.

@technosophos
Copy link
Member

Do we want this in alpha1?

@helgi
Copy link
Contributor Author
helgi commented Dec 29, 2015

I feel it is as much of a risk as any other PR around. It can wait until Beta if people want to but I find it to be low risk unless we don't trust our tests (which have not always been able to catch pretty basic things, mind you)

@technosophos
Copy link
Member

I'll leave it to @helgi @bacongobbler and @slack to decide whether we want to merge this today.

@bacongobbler
Copy link
Member

I'd rather leave this out since it's not a showstopper for alpha, but I would like to get this one in as soon as we're done with the release.

@slack
Copy link
Member
slack commented Dec 30, 2015

@helgi this ready to rumble?

@helgi
Copy link
Contributor Author
helgi commented Dec 30, 2015

This one is ready, just needs another LGTM

8000
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for my knowledge, is this auto generated, and if so, by what?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cd rootfs && ./manage.py makemigrations api --auto - this one is South that handles migrations

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it, thanks

@arschles arschles added the LGTM2 label Dec 30, 2015
helgi added a commit that referenced this pull request Dec 30, 2015
chore(models): move from django-json-field to jsonfield for Django 1.9 compatibility
@helgi helgi merged commit c938c91 into deis:master Dec 30, 2015
@helgi helgi deleted the jsonfields branch December 30, 2015 19:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

0