Hello I would like to make a suggestion:

Let's say that we have a very large payload field value, maybe containing a file.

It would be nice if we could have a built in way to truncate the field in query select level, and then the ViewsField implentation just present the raw json truncated value (as the Json::Decode process will normally fail).

Comments

petros created an issue. See original summary.

bojanz’s picture

I would accept a patch for this.

saidatom’s picture

Status: Active » Needs review
StatusFileSize
new586 bytes

Hi all,

my suggestion.

saidatom’s picture

StatusFileSize
new586 bytes
dubcanada’s picture

I'm not sure there is much value in showing a large payload, perhaps it would be better to either truncate the payload to a set number of characters or remove the column entirely and show the unique ID from https://www.drupal.org/project/advancedqueue/issues/2918866 or something.

Having a giant payload shown in a table, just doesn't offer much.