-
Notifications
You must be signed in to change notification settings - Fork 875
Fold template create into template push #9318
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
Comments
May what we can do is make And yes merging this would be a good idea. There is still a plenty of duplication in these three commands. |
ObservationsOn further researching on this, I have noticed a few issues,
|
@bpmct for comments |
Hey, really appreciate you sharing this! I'm in favor of your proposal but think we should be careful with the naming. I'd rather users specify the template name as an argument, not a flag. How about this? coder templates create|push <my-template> --version "PyTorch2p0" --message "Updated PyTorch to version 2.0" Main reason being we don't really call the template name the "ID" anywhere. |
@bpmct It won't hurt if can call this
|
@matifali explained that we call the template name: ![]() an coder templates create|push <my-template> --version "PyTorch2p0" --message "Updated PyTorch to version 2.0" |
lol I like it |
What happened with this issue? |
I had taken on too much for my first sprint and this was one of the items taken off after meeting with @sreya about it. |
@matifali @bpmct Thanks for documenting the research here. I've looked at the code a little and I see why things are the way they are. Mainly:
So you run into problems with combining these behaviors into a single
I'm going to continue digging, but want to start the conversation around those points that I've noticed so far. |
If we get rid of the
I am okay with keeping it as a separate command that only edits/adds metadata, but it would be nice to have all of these options as part of the Also, we may rename |
@matifali @bpmct @ammario Okay I have some usability questions for product - basically there's some difficulty with working with template edit api that is making this difficult. I have 2 clear paths I can go down:
I originally started with 2 but thought I ask if 1 works from a product perspective while I continue down path 2. Thanks. |
Push is supposed to be a superset of create, so we're carrying significant code debt. The slight mismatches in their functionality are mostly mistakes, e.g.:
We should make sure to deprecate create for a period of time, perhaps with an annoying
time.Sleep
. We should also changepush
to create a new template by default.Bonus points for reducing duplication across
template edit
too. See #9319 for an example bug.The text was updated successfully, but these errors were encountered: