Giter Club home page Giter Club logo

Comments (14)

feldrim avatar feldrim commented on August 22, 2024 1

What is the purpose of AutoHistory? If to keep a track of all DB transactions -except reading- then ADD could be implemented.

But the newly inserted data is already in its own table , therefore there's no need to keep a duplicate data of it. Data auditing should include past actions, because the current data is already in the correct place: its own table, own row.

Besides, AutoHistory table will be a sum of all the database, including past versions of data. It's like an Excel worksheet with no removal support so that the update and delete actions are all in the same table. It's unusable.

By supporting add, which is already meaningless, the application should do two round trips for the same action: A data inserted in a table.

That's why I believe ADD should not be supported and the issue should be closed.

from autohistory.

rigofunc avatar rigofunc commented on August 22, 2024

@lotosbin or anyone, have anytime to close this issue?

from autohistory.

alexmtnezf avatar alexmtnezf commented on August 22, 2024

I can do it even if the primary key is a composite one.

from autohistory.

rigofunc avatar rigofunc commented on August 22, 2024

@alexmtnezf Thanks!, PR welcome!

from autohistory.

rigofunc avatar rigofunc commented on August 22, 2024

@alexmtnezf Are your PR ready?

from autohistory.

alexmtnezf avatar alexmtnezf commented on August 22, 2024

from autohistory.

rigofunc avatar rigofunc commented on August 22, 2024

yeah, PR = pull request

from autohistory.

lotosbin avatar lotosbin commented on August 22, 2024

ensure entity inserted before history.
and update history's rowId after entity inserted.

from autohistory.

rigofunc avatar rigofunc commented on August 22, 2024

@lotosbin Yes, this can solve the problem, but this cause a new route trip to database. So maybe not to support the ADD history, only record the modify history.

from autohistory.

loic-montagne avatar loic-montagne commented on August 22, 2024

Hi there,
Finally, do you plan to support the ADD history ?
Thanks,

from autohistory.

rigofunc avatar rigofunc commented on August 22, 2024

I have not good idea how to impl it in one db roundtrip right now.

from autohistory.

alexmtnezf avatar alexmtnezf commented on August 22, 2024

What if we use a package or code from other project hosted in GitHub, if its license is MIT we can use their code right?.

from autohistory.

rigofunc avatar rigofunc commented on August 22, 2024

Yep

from autohistory.

rigofunc avatar rigofunc commented on August 22, 2024

@feldrim AutoHistory not want to keep a track of all DB changing. The usage is only for recording some important changes.

That's why I believe ADD should not be supported and the issue should be closed.

I agree now.

from autohistory.

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.