Comments (6)
That is by design, though. The blacklist is only an extra filter. I would suggest using a whitelist instead.
Keep in mind that modified
is the same as the audit log date, since both happen at the same time
from audit-stash.
Is there any way to have AuditStash always fire? I'm subscribing to AuditStash.beforeLog
in order to look for changes in related fields that AuditStash
does not report, but without the initial log
event, my routine is never triggered. Or, is there a way to manually trigger AuditStash.beforeLog
and have it return the expected $logs
?
from audit-stash.
If the related tables also have the behaviour enabled, saving these related fields should also appear in the logs. Is that not the case for you?
from audit-stash.
I believe enabling the AuditStash
behavior on related fields would trigger logs, but I need to combine the logs into a single transaction, as opposed to having the related tables in a separate log. So I'm looking for a way to essentially trigger the behavior on any add/edit in order to do the checking of the related fields.
from audit-stash.
yes, you need to re-build the transaction, that's the design decision I made for this library. You can manually trigger the audit logging. There is an example at the end of the README in this repo
from audit-stash.
I assume you're referring to the Transactional Queries example at the end of the README. It's not clear to me why you would be creating a new entity ($bookmark = $this->Bookmarks->newEntity();
) nor where $data1
is coming from in $bookmark1->save($data1, $trail->toSaveOptions());
. In my case I would want to include an address associated with a User
edit, but it's not clear to me how I would do that with a transactional query. Any help would be appreciated.
from audit-stash.
Related Issues (20)
- Exception: No handler for type [string] declared on field [transaction] HOT 2
- audit-stash not working when updating multiple rows together HOT 7
- Syntax error in 2.0.0 release HOT 1
- deprecation warning for ServerRequest::here() HOT 3
- Deprecated field type error when running elastic_mapping shell HOT 2
- Multiple index guide incorrect HOT 3
- Throws an SQL incorrect syntax error on test HOT 2
- Inserting stringifiable objects HOT 2
- Implement JSON field types HOT 3
- CakePHP 4 compatibility HOT 5
- Can't find %s in the configuration guide for daily index HOT 1
- psr-4 autoloading standard warning in composer 1.10 HOT 2
- AuditLogsType.php does not comply with psr-4 autoloading standard. HOT 2
- String datetime changes may break custom DateTimeType implementations HOT 1
- Log associative model HOT 4
- Logging Cascading Deletes HOT 1
- Rename AuditLogsType.php file to AuditLogsIndex.php
- Your requirements could not be resolved to an installable set of packages
- Tests fail on my local
- CakePHP 5 Support HOT 4
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 audit-stash.