Git Product home page Git Product logo

Comments (6)

lorenzo avatar lorenzo commented on June 7, 2024

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.

scottwpage avatar scottwpage commented on June 7, 2024

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.

lorenzo avatar lorenzo commented on June 7, 2024

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.

scottwpage avatar scottwpage commented on June 7, 2024

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.

lorenzo avatar lorenzo commented on June 7, 2024

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.

scottwpage avatar scottwpage commented on June 7, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.