Skip to content

Commit

Permalink
Fix describe consumer (ydb-platform#8100)
Browse files Browse the repository at this point in the history
  • Loading branch information
niksaveliev authored Aug 21, 2024
1 parent d02484d commit a5cc5e2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ydb/core/viewer/json_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 a5cc5e2

Please sign in to comment.