GithubHelp home page GithubHelp logo

Comments (2)

032660 avatar 032660 commented on May 23, 2024

Hi colleagues,

I executed some tests and checked created entities. Could you please confirm that an "update" modification creates a change log only if "modifiedAt" or "modifiedBy" has changed after this update?

I suppose that it is so because there is:

// Since req.diff() will record the managed data, change history will filter those logs only be changed managed data
const managedAttrs = ["modifiedAt", "modifiedBy"]
if (curChange.modification === "update") {
const rowOldAttrs = Object.keys(childNodeChange._old)
const diffAttrs = rowOldAttrs.filter((attr) => managedAttrs.indexOf(attr) === -1)
if (!diffAttrs.length) {
return
}
}

If I am right then you can close this issue because I found out that neither modifiedAt nor modifiedBy was changed for the entities for which update change log is missing.

Kind regards,
Elena

from change-tracking.

032660 avatar 032660 commented on May 23, 2024

Hi colleagues,

I enforced modifiedAt to be changed at updating. However I still do not see any changelogs.

Is it necessary to change also modifiedBy?

Or am I wrong when I suppose that "modified" fields can affect creating changelogs?

Kind regards,
Elena

from change-tracking.

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.