Replies: 1 comment
-
I don't want to shorten numbers. Feel free to prepare a pull-request to move this function to You can also try to change the code calling |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have another problem that I'm trying to solve and it's related to "shortening"
there's this function
function is_shortable(array $field): bool {
which has a whitelist of types.Unfortunately, in PostgreSQL (and other databases as well) it's possible to create an own type.
Having an array of 100 uuids in a single field (I know it's a schema problem) is then difficult to read as it's not shortened..
I wonder Why don't we shorten ALL values (Simple solution so I wonder what I'm missing)? Or at least can't we make that function extendable via plugin?
Another think is that I can see that in function
function select_value($val, string $link, array $field, ?string $text_length): string
We are handling a arrays differently (better formatting), but it doesn't work for PostgreSQL. (I gues that I might be able to fix that)
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions