Comments (10)
Interesting, I'll leave it for @erikn69 to investigate the specifics.
The SQL needs a double slash so
SELECT count(id) FROM `audits` WHERE `auditable_id` = 4 AND `auditable_type` = 'App\\Models\\TheModel'
from laravel-auditing.
Are you able to include the rest of the stack trace for some more context? At least the lines before it reaches your app.
from laravel-auditing.
13.6.4
In my opinion this was already solved in later versions, I removed the whereIn
: #933/files
Try v13.6.7
I'll leave it for @erikn69 to investigate the specifics.
Sorry, I can't do it at all
and most of them aren't real bugs, it's a waste of time chasing ghosts
Also, take some time to review the code, I have noticed that you have not caught up yet
Open a discussion if you don't understant something, and I will try to explain it to you, I have only contributed out of necessity, but the code is really small, and it is not complex
from laravel-auditing.
Are you able to include the rest of the stack trace for some more context? At least the lines before it reaches your app.
updated the post with the data requested
from laravel-auditing.
Thanks, are you able to confirm how many audit entries for this model you have?
from laravel-auditing.
Thanks, are you able to confirm how many audit entries for this model you have?
afraid I don't know how to query the 'auditable_type' column since doing like below doesn't result with anything
SELECT count(id) FROM `audits` WHERE `auditable_id` = 4 and `auditable_type` =\ 'App\Models\TheModel';
and this fails:
SELECT count(id) FROM `audits` WHERE `auditable_id` = 4 and `auditable_type` = App\Models\TheModel;
from laravel-auditing.
Thanks, are you able to confirm how many audit entries for this model you have?
EDIT: it was 74k records, I manually pruned it instead as I remember you can just use LIKE to filter using auditable_type. However, I still hope that the package can handle more records when it's deleting them automatically.
from laravel-auditing.
Interesting, I'll leave it for @erikn69 to investigate the specifics.
The SQL needs a double slash so
SELECT count(id) FROM `audits` WHERE `auditable_id` = 4 AND `auditable_type` = 'App\\Models\\TheModel'
thank you for that! also, I set it as 'threshold' => 2500, in the config
from laravel-auditing.
13.6.4
In my opinion this was already solved in later versions, I removed the
whereIn
: #933/files Try v13.6.7I'll leave it for @erikn69 to investigate the specifics.
Sorry, I can't do it at all and most of them aren't real bugs, it's a waste of time chasing ghosts
Also, take some time to review the code, I have noticed that you have not caught up yet Open a discussion if you don't understant something, and I will try to explain it to you, I have only contributed out of necessity, but the code is really small, and it is not complex
aye, looks like that version does fix that problem. thanks!
from laravel-auditing.
@erikn69 thanks for confirming, I only tagged you because I knew you had been in that part of the code very recently and would know what the issue was straight away 🙏
from laravel-auditing.
Related Issues (20)
- Duplicate entries for every action HOT 8
- Values are not being audited when using DB::beginTransaction HOT 2
- Implement support for Laravel 11.x. HOT 1
- Column with type `point` throws error HOT 1
- SoftDelete behaviour config option true/false HOT 5
- Laravel 11 HOT 1
- Error when implementing transformAudit HOT 2
- UUID user_type and user_id store error HOT 3
- Empty array values when auditing relations HOT 3
- Unknown column 'auditEvents' in 'field list'
- AuditingEventServiceProvider disables Laravel's Event Auto-Discovery HOT 2
- Laravel Audit breaks Events Auto Discovery HOT 1
- Laravel's auto event discovery not working HOT 1
- Possible bug in auditSync: Unexpected old/new values HOT 4
- Accessing static trait property OwenIt\Auditing\Audit::$auditingDisabled is deprecated HOT 2
- Auditing for each relationship being saved more than once in multiple relationship auditing with auditSync
- Audited logs deleted on fresh install with threshold set to > 0 HOT 8
- Model's all logs are deleted after v13.6.5 when Threshold is more 0 HOT 9
- https://laravel-auditing.com/ is not accessible HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-auditing.