-
Notifications
You must be signed in to change notification settings - Fork 391
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
[FEAT] V7 - Multi user audits #421
Conversation
Awesome job, thanks! |
@crashkonijn I should be tagging this in the next couple of days. Meanwhile, give it a go, to see if it works as advertised 😄 |
@quetzyg I replaced our own changes with your changes this morning and everything works perfectly! I take it you're going to tag it with version 7, since these changes break backwards compatibility? Also, we just made a trait which fixes these issues: #310 by copying the fix for Laravel 5.5. Would it be an idea to include it in the package and let people add it to their models when using Laravel 5.4 or earlier? |
Yup, it's gonna be version 7. In regards to #310, wasn't that fixed upstream? |
It's been fixed in Laravel 5.5, yes. But unfortunately some our projects are stuck at 5.3 for example. Without this fix every boolean and date would be marked dirty and changed on every save. On one of our models that meant this package would register 10 changes, even when nothing actually changed. I can imagine there are more unfortunate people that have to work with legacy Laravel versions. |
I'm not a fan of fixing upstream issues downstream. Have you considered making a pull request to https://github.com/laravel/framework/ ? But do share the trait, we might consider including it. |
Do they still accept PR's on versions that old? And I understand your point, but at the same time it does have a huge impact on the performance of this package (read: almost unusable) on older Laravel versions. That's why I suggested to only include it for people to include it if they need to. Another option could of course also be to link to this gist in the docs: https://gist.github.com/crashkonijn/7d581e55770d2379494067d8b0ce0f6d :) |
Try it, it wouldn't hurt, I guess :) I'll have a look at the gist. 👍 |
@quetzyg Awesome, thanks! |
Description
The code in this pull request is based on #420 but with a few simplifications.
Work done:
MorphTo
;user_type
column;Special thanks to Webparking for their initial work!
@crashkonijn & @remkobrenters