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
Entries count <> Rows if you have deleted rows #226
Comments
…letes fixes total with soft deletes. #226
@mauthi please test |
Works for me. Thx for fixing. |
Unfortunately this has serious performance issues on big tables with complex queries / subqueries. We will revert @raftx24 |
Works perfect for my use case. Thx. |
Found an error:
My used select:
|
Fixed. |
Tested - error is fixed. |
But thinking more about it, I guess this approach is not enough. It will solve your case but won't work when you will want your query withTrashed, right? |
Right - if I use return |
Could you paste here your table query captured with telescope? |
And one additional thing: The delete button is also visible for deleted items and leads to a 404 (but thats not a normal use case to show deleted rows) |
ok, this needs more work but I guess we're on the right path |
yes thx - for me it’s fixed for now :)
|
I found another issue:
In the table I have 6 rows, one with post_status = trash |
Hi @mauthi |
Hi @raftx24, I just tried it. With not working I mean the following:
|
@mauthi.
|
@mauthi I guess there is another problem with your table. because I used this table(10 companies with (8 + 2 deleted)) and I tried to simulate your situation with the following Table class
Maybe your cache is enabled and you cannot see the current |
Hi again, Thx for the hint with the cache - I deleted it with |
You're welcome.
|
Thx - I will check this.
So we can close this topic?
|
merged |
This is a bug.
Prerequisites
Description
The entries count in table footer is wrong if you have soft deleted rows in your database.
Steps to Reproduce
Expected behavior
In my screenshot the footer row should be "From 1 to 12 of 12 entries"
Actual behavior
In my screenshot the footer row is "From 1 to 12 of 14 entries"
The text was updated successfully, but these errors were encountered: