Skip to content

Bump to dj >4 - #4584

Closed
matmair wants to merge 52 commits into
inventree:masterfrom
matmair:dj-4.x
Closed

matmair wants to merge 52 commits into
inventree:masterfrom
matmair:dj-4.x

Conversation

@matmair

@matmair matmair commented Apr 4, 2023

Copy link
Copy Markdown
Member

This would close #2853; not tested manually.

@matmair matmair added the dependency Relates to a project dependency label Apr 4, 2023
@matmair

matmair commented Apr 4, 2023

Copy link
Copy Markdown
Member Author

So far I found 2 problems:

  1. django-error-report is very much unmaintained. I made upgrades needed for 4.0 a while ago for something else so I switched to my fork for testing. We should consider moving to something else.
  2. As far as I see, MPTT is unmaintained and not ready for Django 4.0. See their changelogs.

@matmair

matmair commented Apr 4, 2023

Copy link
Copy Markdown
Member Author

Ok the dependencies are solved mainly; a few functions need to be rewritten because they were removed with the switch to 4.0

@matmair

matmair commented Apr 4, 2023

Copy link
Copy Markdown
Member Author

And the next breaking change that needs to be included.

@matmair

matmair commented Apr 5, 2023

Copy link
Copy Markdown
Member Author

Ok down to one error after updating inventree-zapier for Django 4.0

@matmair

matmair commented Apr 5, 2023

Copy link
Copy Markdown
Member Author

We should be golden now. @SchrodingersGat I think we could take the plunge to Django 4.x with the LTS for 4.2 now released. Thoughts?

@matmair matmair changed the title Experiment: Bump to dj >4.2 Bump to dj >4.2 Apr 5, 2023
@matmair

matmair commented Apr 5, 2023

Copy link
Copy Markdown
Member Author

@matmair

matmair commented Apr 17, 2023

Copy link
Copy Markdown
Member Author

We will need for 4.2.1 / probably May 1st for this to be mergeable

@matmair matmair mentioned this pull request Jul 4, 2023
@netlify

netlify Bot commented Aug 6, 2023 •

Copy link
Copy Markdown

✅ Deploy Preview for inventree canceled.

Name Link
🔨 Latest commit ff12eb8
🔍 Latest deploy log https://app.netlify.com/sites/inventree/deploys/64cff36621d43b0008694dba

@github-actions

github-actions Bot commented Oct 6, 2023

Copy link
Copy Markdown
Contributor

This PR seems stale. Please react to show this is still important.

@github-actions github-actions Bot added the inactive Indicates lack of activity label Oct 6, 2023
@matmair

matmair commented Oct 6, 2023

Copy link
Copy Markdown
Member Author

Not stale

@github-actions github-actions Bot removed the inactive Indicates lack of activity label Oct 7, 2023
@matmair matmair closed this Oct 10, 2023
@SchrodingersGat

Copy link
Copy Markdown
Member

With django-mptt unmaintained, what is your opinion on moving forward to django 4?

@matmair

matmair commented Oct 11, 2023

Copy link
Copy Markdown
Member Author

There multiple changes that would require rewriting and all replacements for mptt I looked at are less efficient so I would let this one go for now.

@wolflu05

Copy link
Copy Markdown
Member

Is there an replacement library for mptt?

@matmair

matmair commented Oct 11, 2023

Copy link
Copy Markdown
Member Author

@wolflu05 there are a bunch of them with varying degree of maturity and user base. The query efficiency of mptt is just top-notch.

@SchrodingersGat

Copy link
Copy Markdown
Member

MPTT is a very good library - it is unfortunate that it is not receiving any active maintenance :'(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependency Relates to a project dependency

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update to Django 4.x

3 participants