Repository navigation
chore: remove deprecated properties for v0.13.0 - #8281
Conversation
646e6a3 to
9a62516
Compare
9a62516 to
498e9b0
Compare
helderco
left a comment
There was a problem hiding this comment.
LGTM, just some minor comments.
| `If empty, the container's default command is used.`). | ||
| ArgDoc("useEntrypoint", | ||
| `If the container has an entrypoint, prepend it to the args.`). | ||
| ArgRemove("skipEntrypoint"). |
There was a problem hiding this comment.
What does this do since the 3 withExec views re-define all their fields?
There was a problem hiding this comment.
This is a shorthand for removing this as a parameter - without this, you'd have to redefine the entire args struct, and have a new fun to take this.
Ideally, we'd have even more shorthands for common operations - since redeclaring all the common fields over and over is quite annoying.
If you don't explicitly remove it, then there's no documentation for it, the parameter still exists.
| // We use this in tests to do quick-and-easy checks against the schemas served | ||
| // (without needing to do fancy module manipulation). |
| props[prefix+"git_symbolic"] = git.Symbolic() | ||
| props[prefix+"git_clone_url"] = git.CloneURL // todo(guillaume): remove as deprecated | ||
| props[prefix+"git_clone_url"] = git.CloneRef // todo(guillaume): remove as deprecated | ||
| props[prefix+"git_clone_ref"] = git.CloneRef |
There was a problem hiding this comment.
This is used for analytics? When can we delete it (according to the node, @grouville)?
| func (s *containerSchema) withExec(ctx context.Context, parent *core.Container, args containerExecArgs) (*core.Container, error) { | ||
| if args.ContainerExecOpts.SkipEntrypoint != nil { | ||
| if args.SkipEntrypoint != nil { | ||
| slog.Warn("The 'skipEntrypoint' argument is deprecated. Use 'useEntrypoint' instead.") | ||
| if !args.ContainerExecOpts.UseEntrypoint && !*args.ContainerExecOpts.SkipEntrypoint { | ||
| if !args.ContainerExecOpts.UseEntrypoint && !*args.SkipEntrypoint { | ||
| args.ContainerExecOpts.UseEntrypoint = true | ||
| } | ||
| } |
There was a problem hiding this comment.
This is interesting. So this function serves both v0.12 and v0.13, it's just that in v0.13 SkipEntrypoint is always nil, right?
There was a problem hiding this comment.
Yup, exactly 🎉 I'd like to do some more cleanup around here, I think some of the changes to multiple schema versions are hard to track, but it works for now 🎉
|
There's a PHP test using pipeline. Could either be replaced by another API call or removed, depending on what it's really testing. Haven't looked at it. |
Signed-off-by: Justin Chadwell <[email protected]>
Signed-off-by: Justin Chadwell <[email protected]>
498e9b0 to
76d2d0b
Compare
76d2d0b to
18150ab
Compare
Signed-off-by: Justin Chadwell <[email protected]>
18150ab to
3528125
Compare
Signed-off-by: Justin Chadwell <[email protected]>
Signed-off-by: Justin Chadwell <[email protected]>
Signed-off-by: Justin Chadwell <[email protected]>
Signed-off-by: Justin Chadwell <[email protected]>
|
Bringing this change in, since the suggested changes have been made now ❤️ |
Makes the API changes specified in #8065.