Closed Bug 1180208 Opened 11 years ago Closed 11 years ago

Port profile model to custom user model

Categories

(developer.mozilla.org Graveyard :: Performance, defect)

All
Other
defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jezdez, Assigned: jezdez)

References

Details

(Keywords: in-triage, Whiteboard: [specification][type:change])

What feature should be changed? Please provide the URL of the feature if possible. ================================================================================== Now that we run on Django 1.7 we've introduced a custom User model to maintain compatibility with Django. That allows us to move away from our previously implemented separate profile data model. What problems would this solve? =============================== This would combine user specific data again into one table and make joins with the profile table unnecessary, simplifying common queries drastically. Who would use this? =================== n/a What would users see? ===================== n/a What would users do? What would happen as a result? =================================================== n/a Is there anything else we should know? ======================================
Assignee: nobody → jezdez
Blocks: 1177264
Component: General → Performance
Severity: normal → minor
Component: Performance → Code Cleanup
Keywords: in-triage
Sorry :hoosteeno but this is not a minor code cleanup task but something that will reduce the complexity of db queries drastically since all user related queries won't need to do an INNER JOIN anymore.
Severity: minor → major
Status: NEW → ASSIGNED
Component: Code Cleanup → Performance
Depends on: 1134650
Commit pushed to master at https://github.com/mozilla/kuma https://github.com/mozilla/kuma/commit/76e21070a614b873481dd799c46a8e8cb3578540 Bug 1180208 - Port profile data to user model. This is the first of two steps to getting rid of the profile table and UserProfile model and does a bunch of things: - moves profile fields into custom user model - start using django-sundial as an improved timezone field handling for future improvements - got rid of jsonfield in favor of individual columns for user URLs - migrates data from profile to user model - combined profile and user styles - refactored user model and form code to use static fields instead of dynamically generating them - simplified userban queries
(In reply to MDN Team (:mdn-dev) from comment #2) > Commit pushed to master at https://github.com/mozilla/kuma > > https://github.com/mozilla/kuma/commit/ > 76e21070a614b873481dd799c46a8e8cb3578540 > Bug 1180208 - Port profile data to user model. > > This is the first of two steps to getting rid of the profile table and > UserProfile model and does a bunch of things: > > - moves profile fields into custom user model > - start using django-sundial as an improved timezone field handling for > future improvements > - got rid of jsonfield in favor of individual columns for user URLs > - migrates data from profile to user model > - combined profile and user styles > - refactored user model and form code to use static fields instead of > dynamically generating them > - simplified userban queries This was a push error and can be ignored. This has *not* been merged yet.
Commits pushed to master at https://github.com/mozilla/kuma https://github.com/mozilla/kuma/commit/ec9ed1b830b032344a5383572475a5871af6b538 Bug 1180208 - Simplied some demo app permission checks. https://github.com/mozilla/kuma/commit/813b8cb9086d608efeb0bb1c0cd53bc52904ed94 Bug 1180208 - Port profile data to user model. This is the first of two steps to getting rid of the profile table and UserProfile model and does a bunch of things: - moves profile fields into custom user model - start using django-sundial as an improved timezone field handling for future improvements - got rid of jsonfield in favor of individual columns for user URLs - migrates data from profile to user model - combined profile and user styles - refactored user model and form code to use static fields instead of dynamically generating them - simplified userban queries https://github.com/mozilla/kuma/commit/f7e31547e05dbede00a9b735eae201f81fee4b59 bug 1180208 - remove 'misc' from user admin search https://github.com/mozilla/kuma/commit/f90d22a014bcf8dab36eed0a7481494b73138c2f bug 1180208 - update test to match user markup https://github.com/mozilla/kuma/commit/c6522d72863b376feb79c56a0f2cb9fd6700546f bug 1180208 - update user class comment https://github.com/mozilla/kuma/commit/273c24c99f095ec7d34d69deb5b195e04204d93d Merge pull request #3352 from mozilla/bug1180208 Bug 1180208 - Port profile data to user model.
Commits pushed to master at https://github.com/mozilla/kuma https://github.com/mozilla/kuma/commit/9b2cc36760bfd4bee3c94901f94513efe498f857 bug 1180208 - Manually load JSON in migration 0004 Commit 874db113 changed profile.misc to a nullable TextField, so JSONField could be removed. This changes the follow-on commit to manually load the JSON string. https://github.com/mozilla/kuma/commit/b9923a5b5e8343df0240334cb105383fbdf38ee6 Merge pull request #3450 from mozilla/user_migration_0004_1180208 bug 1180208 - Manually load JSON in migration 0004
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.