Closed Bug 1627655 Opened 5 years ago Closed 4 years ago

Update to Django 3.x

Categories

(Webtools Graveyard :: Pontoon, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mathjazz, Assigned: mail)

References

Details

Attachments

(13 files)

44 bytes, text/x-github-pull-request
Details | Review
44 bytes, text/x-github-pull-request
Details | Review
44 bytes, text/x-github-pull-request
Details | Review
44 bytes, text/x-github-pull-request
Details | Review
44 bytes, text/x-github-pull-request
Details | Review
44 bytes, text/x-github-pull-request
Details | Review
44 bytes, text/x-github-pull-request
Details | Review
44 bytes, text/x-github-pull-request
Details | Review
44 bytes, text/x-github-pull-request
Details | Review
44 bytes, text/x-github-pull-request
Details | Review
44 bytes, text/x-github-pull-request
Details | Review
44 bytes, text/x-github-pull-request
Details | Review
44 bytes, text/x-github-pull-request
Details | Review

'nuff said.

Whiteboard: pontoon-django-3

A few notes from https://www.djangoproject.com/download/#supported-versions.

2.2 is on LTS until April 2022, oth, 3.0 only gets us into April 2021, so a year less. The next LTS is 3.2, which releases April 2021.

If there are features in 3.0 for Pontoon, we should do this. Otherwise, this might have some time.

We've decided not to upgrade to Django 3.0 at this stage, since there are no features in 3.0 we need in Pontoon at this stage.

Assignee: poke → nobody
Status: ASSIGNED → NEW
Priority: P2 → P3
Whiteboard: pontoon-django-3

In the meantime, Django 3.1 was released: https://docs.djangoproject.com/en/3.1/releases/3.1/
It will be supported until December 2021: https://www.djangoproject.com/download/#supported-versions

I understand if this is not a priority for you, but I am interested in working on the upgrade (including the package upgrades needed for that). Would you accept pull requests related to this?

I think the code quality could benefit from the upgrade, e.g., the new enumeration types could vastly improve the readability and maintainability of the ActionLog class.

What do you think?

Hey,
:mathjazz is the maintainer of the project, but I was also working on the various "migration-like" tasks in the past and I have a few thoughts and notes (written as I would talk to my past self):

  • analyze the release notes, start from looking at the backward incompabilities
  • create a plan of the migration and split the changes into smaller pull requests. Mostly for the sake of reviewability and quality assurance and communication
  • go through all of the depedencies, check their supported Django versions and update when needed
  • don't mix up code refactorings with the things that are critical to the update Django

About enums: I also think they could potentially increase the maintaintability. We had discussion about them in the past but we decided to not use use them, because they required additional dependency back then. I think it's worth doing, in a separate bug though.

Depends on: 1671836
Assignee: nobody → pfischbeck
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Summary: Update to Django 3.0 → Update to Django 3.x
See Also: → 1678452
See Also: → 1678462
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: