Comments (4)
3. Disallow
demote
instruction and require topromote
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.
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.
- Another variation of option 2 could be removing
demote
command and asking todeprecate
things:- e.g.
gto deprecate rf v2
will deprecatev2
completely, so it gets automaticallydemoted
from all envs. gto deprecate rf v2 production
will deprecatev2
from using inproduction
env. So it gets automaticallydemoted
fromproduction
env. That sounds clearer to me than usinggto 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).
- e.g.
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.
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)
- Tag increment doesn't calculated right
- pydantic 2.0 release has breaking changes - cli crash
- Make "v" in "v1.2.3" optional HOT 2
- Bug: gto irresponsive HOT 5
- Sweep (slow): bump pylint to the latest version HOT 1
- Sweep: Update pylint version in setup.py HOT 1
- Sweep: Fix failing tests after pylint update HOT 1
- Sweep: Update code to comply with new pylint rules HOT 1
- Sweep: Remove unnecessary pylint skip comments HOT 1
- update GTO to be in line with iterative/py-template standards HOT 4
- Allow uppercase letters HOT 5
- gto should not push on register without --push flag. HOT 3
- Stale secret deletion HOT 1
- Bug: `--bump-...` falgs don't work HOT 2
- Feature proposal: `gto show` settings controlled by `.gto` config HOT 2
- Improve tests
- `deprecate`: why depracate an entire model/artifact? HOT 1
- bug: gto does not work with ssh-based repository urls HOT 4
- `gto show` returns tag names with a `\n` newline at the end.
- Inconsistent behaviour of GTO in Studio vs. CLI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gto.