Replies: 15 comments
-
The solution ? |
Beta Was this translation helpful? Give feedback.
-
Fix:There is a PR for VentureCraft/revisionable from Jan 2017 however it looks like the package is not currently being maintained. Options Due To Lack of Package Maintenance:Few options we can do to make it work on backpack:
|
Beta Was this translation helpful? Give feedback.
-
The best thing would be to fork Laravel-Backpack / CRUD, remove VentureCraft / revisionable and implement Laravel Auditing, then do a pull request. |
Beta Was this translation helpful? Give feedback.
-
Changing the package to do revisions (however we do it) is likely to break something unless we happen to fork and maintain the original ourselves. @cerelli Before doing that, I'd discuss with @tabacitu (or given the time frame if you already have done that, we'd be happy to look at a PR or a fork if there is one). |
Beta Was this translation helpful? Give feedback.
-
This is my fork: Configuration: ... |
Beta Was this translation helpful? Give feedback.
-
I'm new to backpack but came to this issue because I already wondered if the lack of maintenance of venturecraft/revisionable could be a problem. I am interested to see how Backpack handles this going forward. As per @AbbyJanke suggestion it seems owen-it/laravel-auditing is very mature and well maintained/documented so it could be an excellent replacement rather than relying on a self-maintainted fork of revisionable. I doubt I'm experienced enough yet to contribute such a change but I may have a play around with it. |
Beta Was this translation helpful? Give feedback.
-
Update: it seems like the patch has gone through for some time, so the issue is fixed. Also:
We should probably create a different operation in Backpack 4.0 (Audit) that can be an alternative to Revisions. One that uses owen-it/laravel-auditing. That way:
I don't think the db structure is exactly the same between the two projects, so I doubt we can make an easy transition from one to the other... |
Beta Was this translation helpful? Give feedback.
-
Update: venturecraft/revisionable is NOT abandoned. But its creator is looking for help with maintenance. Anybody here want to help a popular Laravel project (1.5 million downloads!!!)? If so, speak up here. The plan stands - should probably create a new operation for owen-it/laravel-auditing - better safe. Let's leave this open until we do. Cheers! |
Beta Was this translation helpful? Give feedback.
-
I sugest suporting https://altek.gitlab.io/accountant instead. The owen-it/laravel-auditing pakage has lots of issues andpull requests, wich is a sign of abandoned. |
Beta Was this translation helpful? Give feedback.
-
I have a new alternative suggestion for this. In Laravel Nova, they have this action_events table where they record the changes to the models. I wonder if it is better we do the same (i.e. same table name, same columns). This way it will be easy for people to switch between laravel nova and backpack and still have their revisions history working! May want to talk to the laravel nova team 1st on this. |
Beta Was this translation helpful? Give feedback.
-
Or what about a generic revision module that perhaps has it's own config stack and allows you to use any of the favourite audit/logging backends? Sure this is more work but I think it's clear from above everyone has a preference (and not always able to change). But all these audit/logging packages do a simmilar thing, we'd just need to reference a different column or data type/parser. I'm not committing to anything (sorry) but on my current project
|
Beta Was this translation helpful? Give feedback.
-
Thanks for pitching in everyone! @ziming I agree it would be nice to have a clear&simple process for people to migrate from Nova to Backpack. I'd love to see an operation like that built - it shouldn't be too difficult. @PizzaTibe thank you - didn't even know about Laravel Accountant . @Bnxio Hmm... can't say I love the idea of a generic module - it's a level of abstraction that I don't think is needed in this case. You'd either have to
Seems a little complicated. The way I see it, In Backpack v4 it's pretty easy to create a custom operation. And those operations can be delivered as composer packages. So instead of A or B above, I think it's easier to do [C] create different operations, for each auditing package - ex
As a first step, we'd have to split the current Revisions operation into a package. I've added an issue here for that. Anybody can already create an @Bnxio if you're building an A different path forward would be [D] talking to venturecraft, altek and owen-it (the developers of the auditing packages) and pushing the code for the Backpack operations right inside the packages themselves. But I don't think many of them will agree to it - they would have the responsibility to maintain the code, which would make their job more difficult. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the input! Appreciate the guidance and that definitely makes much more sense than my Monday morning ramblings. I'll keep watch on #2430 hopefully you can go down that route. If so I can definitely start work on a package (in my env we use owen-it/laravel-auditing). I know you said it can be done now but waiting on #2430 gives me an excuse to make this a priority within my current project (two birds one stone...) as I have not started anything yet unfortunately. |
Beta Was this translation helpful? Give feedback.
-
Worth noting that venturecraft's library doesn't support JSON fields which may be used extensively in backpack projects when using the "fake" datafield. If you go forward with that option it'd be nice to see that fixed. |
Beta Was this translation helpful? Give feedback.
-
Hi. Due to not activity on many years i will close this discussion, if there is needed feel free to reopen or create a new one. Cheers. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug report
Is it better to correct the error or find another package?
What I did:
I use:
What I expected to happen:
What happened:
Class error to retrieve the history of revions
What I've already tried to fix it:
Backpack, Laravel, PHP, DB version:
3.4, 5.6, 7.1 MariaDB
Beta Was this translation helpful? Give feedback.
All reactions