Skip to content

Commit

Permalink
Fix describe consumer (ydb-platform#8095)
Browse files Browse the repository at this point in the history
  • Loading branch information
niksaveliev authored and adameat committed Oct 3, 2024
1 parent f68808c commit 48e4ee9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ydb/core/viewer/viewer_describe_consumer.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ class TJsonDescribeConsumer : public TDescribeConsumerRpc {
return ReplyAndPassAway(Viewer->GetHTTPBADREQUEST(Event->Get(), "text/plain", "field 'consumer' is required"));
}

if (params.Has("path")) {
Request.set_path(params.Get("path"));
} else {
return ReplyAndPassAway(Viewer->GetHTTPBADREQUEST(Event->Get(), "text/plain", "field 'path' is required"));
}

if (params.Has("include_stats")) {
Request.set_include_stats(FromStringWithDefault<bool>(params.Get("include_stats"), false));
}
Expand Down

0 comments on commit 48e4ee9

Please sign in to comment.