Giter Site home page Giter Site logo

wagtail-automatic-redirects's Issues

Make use of `bulk_create` to avoid scaling issues

It was pointed out to me by Wagtail core developer @kaedroho that we should consider making use of Django's bulk_create to avoid scaling issues with the automatic redirects.

We are currently using create_or_update (here and here).

I was wondering if the update part of that method is ever needed. If we already have a redirect pointing from an old path to the page object then this should still point to the right page object, even it if its slug is changed again (or the page is moved). Please correct me if I am wrong. Might be worth adding a test to make sure this works.

In that case the redirect don't need updating, we could drop the update part and create only new redirects in an efficient manner.

Support Wagtail 3.0

Hey all,

Checking through the source, this package isn't able to be used with Wagtail^=3.0 currently. Are there any plans to update this?

Thanks - Will.

Move code from dubs repo into package

There is a PR in the Dubs repo to accomplish automatic redirects. We would like this code to be available to our other repos using Wagtail, and maybe even open source?

  • Please move the code from the PR into this package.

The PagesAppConfig may need to be an Abstract class and then inherited by the individual Wagtail Apps that want to use it.

  • Please also update README with instructions for using the class in Wagtail apps.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.