Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance of page tree #1088

Merged
merged 11 commits into from
Jan 19, 2022
Merged

Commits on Jan 18, 2022

  1. Replace django-mptt by django-treebeard

    For two reasons:
        1. django-mptt is unmaintained
        2. django-mptt doesn't allow prefetching translations in page tree
    timobrembeck committed Jan 18, 2022
    Configuration menu
    Copy the full SHA
    094ceb3 View commit details
    Browse the repository at this point in the history
  2. Improve performance of content models

    - Prefetch page translations in content lists and API
    - Prefetch language tree together with region
    - Use cached_property in content models
    timobrembeck committed Jan 18, 2022
    Configuration menu
    Copy the full SHA
    debadb1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0e2be26 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    41803b4 View commit details
    Browse the repository at this point in the history
  5. Add middleware to debug JSON views

    Pass the get-parameter "debug" to any JSON view to get the result in HTML including the debug toolbar
    timobrembeck committed Jan 18, 2022
    Configuration menu
    Copy the full SHA
    02909ee View commit details
    Browse the repository at this point in the history
  6. Add current region in middleware instead of context processor

    - Add current region to request object in custom middleware
    - Remove context processor which added the region to the template context
    
    This prevents duplicated region queries in views and templates
    timobrembeck committed Jan 18, 2022
    Configuration menu
    Copy the full SHA
    b4ca14e View commit details
    Browse the repository at this point in the history
  7. Add database migrations

    - Add initial migration file
    - Unignore migrations directory
    - Add CircleCI check whether migrations are missing
    timobrembeck committed Jan 18, 2022
    Configuration menu
    Copy the full SHA
    f46d525 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2b73cf3 View commit details
    Browse the repository at this point in the history
  9. Add more test data

    - Add more pages to the test data fixture
    - Add dev tool to generate more test data locally
    - Reflect changes in the expected outputs of the API tests
    timobrembeck committed Jan 18, 2022
    Configuration menu
    Copy the full SHA
    c95bce2 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    3ebf972 View commit details
    Browse the repository at this point in the history
  11. Add more view tests

    timobrembeck committed Jan 18, 2022
    Configuration menu
    Copy the full SHA
    b38b114 View commit details
    Browse the repository at this point in the history