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

Missing table items on globally scoped models when sorting by created_at #15865

Open
alexandru-eftimie opened this issue Mar 14, 2025 · 0 comments
Labels
Milestone

Comments

@alexandru-eftimie
Copy link

Package

filament/filament

Package Version

v3.3.4

Laravel Version

v12.2.0 also v11.44.2

Livewire Version

v3.6.2

PHP Version

8.2.26

Problem description

  1. Globally Scope a model.
  2. Make sure there are at least 5 entries on the same date.
  3. Make sure to page by 5 or ten ( larger pages seem to work )
  4. Sort table by created_at.
  5. Some items are missing from filament tables.

Expected behavior

All items should appear eventually.

running regular laravel paginators. I.e.:

$x = \App\Models\Customer::paginate(perPage:10, page: 3)->items()

In tinker works as expected

Steps to reproduce

Just migrate and seed the example repo.

If you set if ($cnt > 5) { in database/factories/CustomerFactory.php:26
Then id 41 is always missing when sorting by created_at.
If you set if ($cnt > 15) { then then 63 is missing.

Reproduction repository (issue will be closed if this is not valid)

https://github.com/helios-live/filament-paging-bug

Relevant log output

@github-project-automation github-project-automation bot moved this to Todo in Roadmap Mar 14, 2025
@danharrin danharrin added this to the v3 milestone Mar 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

2 participants