Giter VIP home page Giter VIP logo

Comments (4)

dberenbaum avatar dberenbaum commented on September 26, 2024 1

3. Disallow demote instruction and require to promote things instead.

I think this seems like the most straightforward approach. I don't think the convenience is worth it here where users probably want to be very explicit about what is currently active in each environment.

By the way, can a version that's active in any environment be unregistered? How does/should that work?

from gto.

aguschin avatar aguschin commented on September 26, 2024 1

By the way, can a version that's active in any environment be unregistered? How does/should that work?

Good question! Right now it works like this. If you unregister a version which is present in any environment, it gets demoted from them automatically. That means (among other) when you'll run gto show, you'll won't see this version promoted, or gto audit will show that it got demoted at the moment you unregistered the version.

As unregister is undoable, to promote model from the same commit once more, you'll have to register new version in the same commit (assuming that registration is a requirement for promotion, which is the default behavior).

from gto.

aguschin avatar aguschin commented on September 26, 2024
  1. Another variation of option 2 could be removing demote command and asking to deprecate things:
    • e.g. gto deprecate rf v2 will deprecate v2 completely, so it gets automatically demoted from all envs.
    • gto deprecate rf v2 production will deprecate v2 from using in production env. So it gets automatically demoted from production env. That sounds clearer to me than using gto demote rf production - because in the latter you doesn't specify which version you're demoting (but we still can print demoted version in a cmd output FYI).

How git tags will look like in this option:
[email protected] - version registration
rf@!v1.0.1 - version deprecation (should you be able to undo this action any other way except for git tag removal?)
[email protected]!production - version deprecation for particular env (should you be able to undo this action any other way except for git tag removal?)

from gto.

aguschin avatar aguschin commented on September 26, 2024

Considering current implementations with labels in #219, I'm going to use the 5th approach above.
If you deregister a version, all labels of that version are also considered inactive.

from gto.

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.