GithubHelp home page GithubHelp logo

Soft delete and changelog about netbox-ssot HOT 4 OPEN

bl4ko avatar bl4ko commented on August 22, 2024
Soft delete and changelog

from netbox-ssot.

Comments (4)

bl4ko avatar bl4ko commented on August 22, 2024

Yes its good to have history of an object, but how would you implement this in netbox? There is no soft delete option, so as you suggested, when an objects gets deleted from the API all changelog gets lost with it.

I think this is a feature netbox is supposed to implement first, because microservice only stores data locally.

from netbox-ssot.

TaLoN1x avatar TaLoN1x commented on August 22, 2024

I'd say playing with the status of an object or assigning a tag would be a solution. I will think of it and describe my vision

from netbox-ssot.

kirkkak avatar kirkkak commented on August 22, 2024

Lifecycle wise i imagine:
asset -> purchase/inventory id/stocking can be handled in Inventory plugin/module
resource -> in use/on the field in core netbox [as device]

Nevertheless device-asset (even in case of reimage .. new uuid; rename etc) relationship and/or device should not be deleted as it is "same thing" on same "rackunit etc (which info is kept with device) with different values or..?

from netbox-ssot.

bl4ko avatar bl4ko commented on August 22, 2024

The easiest way I currently see, is to add orphan tag to objects which would mark soft deletion. But this approach would introduce use to new issues like:

  • which orphans to autodelete and which to keep
  • adding new objects whose primary keys would overlap with orphans would trigger error

So full redesign of OrphanManager will also have to be implemented.

from netbox-ssot.

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.