Skip to content

ListWorkerDeployments#530

Merged
Shivs11 merged 3 commits intoversioning-3.1from
ss-list-worker-deployment
Jan 25, 2025
Merged

ListWorkerDeployments#530
Shivs11 merged 3 commits intoversioning-3.1from
ss-list-worker-deployment

Conversation

@Shivs11
Copy link
Copy Markdown
Member

@Shivs11 Shivs11 commented Jan 24, 2025

READ BEFORE MERGING: All PRs require approval by both Server AND SDK teams before merging! This is why the number of required approvals is "2" and not "1"--two reviewers from the same team is NOT sufficient. If your PR is not approved by someone in BOTH teams, it may be summarily reverted.

What changed?

  • title

Why?

  • versioning-3.1

Breaking changes

Server PR

  • developing :)

@Shivs11 Shivs11 requested review from a team as code owners January 24, 2025 21:14
google.protobuf.Timestamp create_time = 5;
google.protobuf.Timestamp current_version_update_time = 6;
google.protobuf.Timestamp ramping_version_update_time = 7;
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
}

repeated WorkerDeploymentSummary worker_deployments = 2;

// (-- api-linter: core::0123::resource-annotation=disabled --)
message WorkerDeploymentSummary {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like RoutingInfo, is it possible to reuse types? (if not RoutingInfo directly, have it be the first-and-for-now-only field in this message)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My vote would be for something like this (also them WorkerDeploymentSummary has a subset of the fields in WorkerDeploymentInfo which is nice. You could even comment defining Summary as a subset of info and then there is a clear semantic about what should/should not be in each message.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that RoutingInfo should come here - my bad for not catching this - done!

Copy link
Copy Markdown
Contributor

@carlydf carlydf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with Chad about reusing RoutingInfo instead of repeating the fields, but other than that this looks good!

repeated WorkerDeploymentSummary worker_deployments = 2;

// (-- api-linter: core::0123::resource-annotation=disabled --)
message WorkerDeploymentSummary {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My vote would be for something like this (also them WorkerDeploymentSummary has a subset of the fields in WorkerDeploymentInfo which is nice. You could even comment defining Summary as a subset of info and then there is a clear semantic about what should/should not be in each message.

Comment on lines +2045 to +2051
string name = 1;
string current_version = 2;
string ramping_version = 3;
float ramp_version_percentage = 4;
google.protobuf.Timestamp create_time = 5;
google.protobuf.Timestamp current_version_update_time = 6;
google.protobuf.Timestamp ramping_version_update_time = 7;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
string name = 1;
string current_version = 2;
string ramping_version = 3;
float ramp_version_percentage = 4;
google.protobuf.Timestamp create_time = 5;
google.protobuf.Timestamp current_version_update_time = 6;
google.protobuf.Timestamp ramping_version_update_time = 7;
string name = 1;
google.protobuf.Timestamp create_time = 2;
RoutingInfo routing_info 3;

@Shivs11 Shivs11 merged commit c268c5c into versioning-3.1 Jan 25, 2025
@Shivs11 Shivs11 deleted the ss-list-worker-deployment branch January 25, 2025 02:05
@antlai-temporal
Copy link
Copy Markdown
Contributor

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants