Coder Social home page Coder Social logo

silverstripe-datachange-tracker's People

Contributors

nathanbrauer avatar nyeholt avatar samandeggs avatar sheadawson avatar silbinarywolf avatar stephenmcm avatar sunnysideup avatar symric avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

silverstripe-datachange-tracker's Issues

Delete handling in prune changes job assumes lower ID values are further back in time

While this is probably OK to assume for nearly all cases, there could exist a situation where an ID of 500 is more recent than an ID of 1000.

The query should instead just delete records prior to the pruneBefore value. This would require the Created column in the DataChangeRecord table have an index applied to it.

$query = new SQLDelete('DataChangeRecord', '"ID" < \'' . $max . '\'');

I'll knock up a PR for review, at some point.

Better search options

Would it be possible to add a few extra fields to search on, like Modification Date and User?

DataChangeTrackService could not be converted to string

I am tracking a Varchar and a Boolean.

Subsite:
  significant_fields:
   - MyVarcharField
   - MyBooleanField
  extensions:
   - ChangeRecordable
   - SignificantChangeRecordable

I see the list of change records, but clicking to view details, I receive this error:

Object of class DataChangeTrackService could not be converted to string...

https://www.dropbox.com/s/6wh82awrq7iurze/Screenshot%202015-11-22%2010.45.06.png?dl=0

Should there be a callback for non-text fields? or is it a Casting or forTemplate issue?

Fatal error: in .yml file

Tring to install and it does not work. I get this error:
Fatal error: Uncaught Symfony\Component\Yaml\Exception\ParseException: The reserved indicator "%" cannot start a plain scalar; you need to quote the scalar at line 6 (near "dataChangeTrackService: %$DataChangeTrackService"). in \vendor\symfony\yaml\Inline.php on line 307

It looks like you need to wrap any % signs in yml files in quotes.

So something like this:

---
Name: datachange_injector_config
---
SilverStripe\Core\Injector\Injector:
  DataChangeTrackService:
    class: \Symbiote\DataChange\Service\DataChangeTrackService
  Symbiote\DataChange\Extension\ChangeRecordable:
    properties:
      dataChangeTrackService: '%$DataChangeTrackService'
  Symbiote\DataChange\Extension\SiteTreeChangeRecordable:
    properties:
      dataChangeTrackService: '%$DataChangeTrackService'

Can you quickly fix it up please :)

Possible bug with onBeforeVersionedPublish

Hello

It seems when I change fields on a page and publish, the "Before" and "After" fields on the generated DataChangeRecord is always set to "null". And the ChangeType is always "Publish Stage to Live".

If I remove ChangeRecordable::onBeforeVersionedPublish() it all works as intended, change type is "Change" and before & after are correctly written.

I havent had time to debug this properly, just wanted to let you know

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.