fullstorydev / grpcui

An interactive web UI for gRPC, along the lines of postman
MIT License
5.25k stars 388 forks source link

Columnar table view for `List` responses #330

Open mandarjog opened 3 months ago

mandarjog commented 3 months ago

gRPC standard List method output is rendered as one table per record, and records appear one after another mirroring json output passed through jq.

I would like to see columnar output.

What have I tried

  1. searched for setting that would make this a table view.
  2. I see that populateResultContainer is used to populate the grpc-response-data .output-container However that function is not wired up to anything in the latest code.
  3. This function used to be called from $.ajax.Post.Done in v1.0.0

Please advise.

jhump commented 3 months ago

@mandarjog, I assume you mean the HTML table output for responses?

It was removed in #100. There is an existing issue open about adding it back, but in an opt-in way (and possibly with more information in the table to make it more useful): #308.

In its previous form, it wasn't providing much value other than it was slightly nicer aesthetically. But it had plenty of drawbacks: it was extremely slow to load and render for very large responses. This made grpcui very painful to use for certain kinds of RPC endpoints, like queries that return a lot of data or even just complex and deeply-nested data structures (since that meant many layers of nested HTML tables, which are slow for the browser to compute layout).