-
Notifications
You must be signed in to change notification settings - Fork 330
Return pipeline run bundle from UI_GetPipelineRun
#4762
Conversation
8fdb442
to
6aa737a
Compare
UI_GetPipelineRun
// deprecated in favor of pipeline_run_bundle. | ||
PipelineRun pipeline_run = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why no deprecated_
prefix?
Though changing the name of a field is backwards-compatible in end-to-end protobuf, it’s not backwards-compatible with Swagger and our generated client library.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What, really? That's surprising. That kind of breaks the one reason why protobufs are cool and useful for crafting APIs. It should be safe to rename fields in protobufs as long as the number stays the same. If we lose that, then that's a shame 😞
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also if we're deprecating this, then we're gonna need to update everywhere in the system that uses this field. I know much of the CLI is relying on this field existing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What, really? That's surprising. That kind of breaks the one reason why protobufs are cool and useful for crafting APIs. It should be safe to rename fields in protobufs as long as the number stays the same. If we lose that, then that's a shame 😞
Absolutely. All is good when you stay within gRPC. But unfortunately because we go via Swagger and the OpenAPI generator, we lose that delightful property of protobufs (at least I’m pretty sure that’s the case). It affects the UI more than anything else.
Also if we're deprecating this, then we're gonna need to update everywhere in the system that uses this field. I know much of the CLI is relying on this field existing.
Oh, is the CLI using UI_GetPipelineRun
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ohhh shoot, I think the git diff wasn't showing me the full picture, but isn't this modifying the GetPipelineRunResponse?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahhh, looks like this is within UI? So maybe not, all good I bet!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, should just be UI.GetPipelineRunResponse
.
Looks good! |
This was an oversight on my part. We need the extra info for the UI
Why the change?
This was an oversight on my part. We need the extra info for the UI.
What’s the plan?
What does it look like?
Given I have run this pipeline.
When I run:
Then I see this:
How do I test it?
Essentially follow the steps above, in other words:
waypoint-grpc
to callUI_GetPipelineRun
pipelineRunBundle
looks correct