Skip to content
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

chore(table): add num_rows for mock api #547

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion app/app/v1alpha/app_public_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,10 @@ service AppPublicService {
// This API is only available for internal use to generate mock row data for testing purposes.
// It should not be used in production environments.
rpc GenerateMockTable(GenerateMockTableRequest) returns (GenerateMockTableResponse) {
option (google.api.http) = {post: "/v1alpha/namespaces/{namespace_id}/tables/{table_uid}/generate-mock"};
option (google.api.http) = {
post: "/v1alpha/namespaces/{namespace_id}/tables/{table_uid}/generate-mock"
body: "*"
};
option (google.api.method_visibility).restriction = "INTERNAL";
}
}
3 changes: 3 additions & 0 deletions app/app/v1alpha/table.proto
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,9 @@ message GenerateMockTableRequest {

// The UID of the table to generate mock data for.
string table_uid = 2 [(google.api.field_behavior) = REQUIRED];

// The number of rows to generate.
optional int32 num_rows = 3 [(google.api.field_behavior) = OPTIONAL];
}

// GenerateMockTableResponse is an empty response for generating mock table data.
Expand Down
Loading