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

Pagination and filtering (new PR) #1277

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

jurrian
Copy link

@jurrian jurrian commented Nov 9, 2023

Description

This will add pagination and filtering to the simple history admin view. This is needed because it will allow more performance views on instances with many historical records. Currently it is very likely to timeout depending on the settings.

It uses the same pagination as the default in Django.

Related Issue

This PR replaces this stale PR: #1220
Most of the text of this PR is copied from the stale one.

Closes #1117 and closes #1219.

Motivation and Context

This is needed because it will allow more performance views on instances with many historical records. Currently it is very likely to timeout depending on the settings .

How Has This Been Tested?

Added a few extra tests on top of what already existed in the stale PR.

Screenshots (if appropriate):

image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have run the pre-commit run command to format and lint.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have added my name and/or github handle to AUTHORS.rst
  • I have added my change to CHANGES.rst
  • All new and existing tests passed.

rumitLancium and others added 7 commits November 9, 2023 19:03
update documentation

make sure they pass tests

[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

use history list per page instead of list per page

paginator.get_page already has a default value

Update docs/admin.rst

Co-authored-by: Anders <[email protected]>

get rid of duplicated code block in docs

add test

better test

[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

pre commit hooks run
@jurrian jurrian mentioned this pull request Nov 9, 2023
11 tasks
@jurrian
Copy link
Author

jurrian commented Nov 9, 2023

@ddabble @RumitAP I've created a new PR based on #1220 with some additional changes.

@jurrian
Copy link
Author

jurrian commented Jan 3, 2024

@ddabble could you have a look at this? It's basically the same as #1220 that you reviewed, with a small addition to make it work.

@diogosilva30
Copy link

Any update on this? Do you need any help?

@jurrian
Copy link
Author

jurrian commented Mar 15, 2024

@ddabble ?

@ddabble
Copy link
Member

ddabble commented Mar 15, 2024

@jurrian Sorry for the (very) late reply; I'm busy with some of the other PRs, currently, but this is definitely on my TODO list 🙂

@ferran-gutierrez
Copy link

Hi guys!

How is going this feature? I'm super engaged with that, for us would be an amazing deliveryHi guys!

How is going this feature? I'm super engaged with that for us will be an amazing delivery

@jurrian
Copy link
Author

jurrian commented Jul 17, 2024

Only needs review at the moment. Code should be complete, but needs to be tested and merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Pagination and Filtering No pagination in admin list (a long history fails or super slow to load)
5 participants