-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unclear demotion behavior #51
Comments
How git tags will look like in this option: |
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? |
Good question! Right now it works like this. If you As |
Considering current implementations with labels in #219, I'm going to use the 5th approach above. |
Initial idea to introduce
gto demote $MODEL $VERSION $ENV
was based on the assumption that user may want to undo the action of promotion. E.g. if he mistakenly promoted a experimental version to production.One corner case I found out for this
demote
cmd is this.rf
withv1
andv2
. Then you promote to productionv2
, thenv1
, then againv2
.demote
what's inproduction
right now. As a result,v1
now inproduction
.demote
again. As a result,v2
now inproduction
. But you already tried toundo
promotion ofv2
toproduction
, so it's confusing.I see two options here:
demote
v2
fromproduction
, that means that it shouldn't appear there until youpromote
it again. Then the example above will end up without any version ofrf
promoted toproduction
.demote
instruction and require topromote
things instead.demote
shortcut cmd which will actually executepromote $PREV_VERSION_IN_THAT_ENV
, but that doesn't look very intuitive in complex scenarios also. As you can't distinguish betweenpromote
made on purpose andpromote
made because user calleddemote
, if you rundemote
2+ times, you'll stuck between two last versions in that env forever.I'm leaning towards option 3 right now because it's simpler. Later we can introduce
demote
command as in option 1 or 2, however we decide.WDYT?
CC @dmpetrov @mike0sv @dberenbaum @omesser @shcheklein
The text was updated successfully, but these errors were encountered: