-
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
Promoting version to the same version twice #199
Comments
Thank you @jellebouwman!
QQ about "We should also allow this commit to be a candidate for a version registration" - do you mean the History part? If yes, we may skip showing it since in GTO counterpart there is nothing about it. Then it will be aligned. E.g.: The reason for this is that it's not actual registration. That's why I assumed there is no need in showing cc @omesser |
Alright, thanks for confirming this is a valid case. We will probably not support doing this in Studio at this stage. We will have to be able to show it in the View table however. Good to know!
As I understand it, with If, at a later stage, you would like to register that commit as a version, a registration action could be done, right? |
Yes, it's definitely doesn't need to be supported in Studio now. The default flow (with registration) is cleaner and should be advised.
Yes! |
@aguschin So if the user does promote an older version to production again, then what are the expected tags? In Jelle's example above, they are |
@tapadipti
|
☝️ While investigating, I found two edge cases that are introduced by the way GTO currently works.
1. A version can only be promoted to production once in the same commit. If after this promotion a different version of the same artifact is promoted to the same stage, you can promote the first version again.
For CommitA (sha: 'commit-a) & CommitB (sha: 'commit-b) this script:
Will yield the following git tags:
Commit A:
model@v0.0.1
model#production#1
model#production#3
Commit B:
model@v0.0.2
model#production#2
Proposed solution:
We could either show all promotions for that commit, or filter ‘duplicate’ promotions. For Commit A
v0.0.1 - production
&v0.0.1 - production
(twice)v0.0.1 - production
2. Promoting a model without registering a new version
For CommitC (sha: 'commit-c'), this script:
Will yield only a git tag
model#production#4
, and no version registration tag.Proposed solution
We should still show this promotion if the model column is set to
Promotion
display setting. We should also allow this commit to be a candidate for a version registration if the model column display setting is switched toVersion registrations
.Originally posted by @jellebouwman in https://github.com/iterative/studio/issues/3606#issuecomment-1168249521
The text was updated successfully, but these errors were encountered: