From d4d9a70cd465ec8d59300d9098ebde83213c57c7 Mon Sep 17 00:00:00 2001 From: Eric Hare Date: Fri, 20 Jun 2025 13:51:51 -0700 Subject: [PATCH] fix: Show 1000 rows of DataFrame and properly display number truncated (#8565) * fix: Allow up to 10000 dataframe rows to be visible * [autofix.ci] apply automated fixes * Update constants.py * Remove truncation from the data serializer * Revert "[autofix.ci] apply automated fixes" This reverts commit f66698097eb42000489cf736bfff2d1d0462d2fa. * Update schemas.py --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Lucas Oliveira --- src/backend/base/langflow/api/v1/schemas.py | 1 + src/backend/base/langflow/serialization/constants.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/base/langflow/api/v1/schemas.py b/src/backend/base/langflow/api/v1/schemas.py index 2b6b3a0eb..c25345759 100644 --- a/src/backend/base/langflow/api/v1/schemas.py +++ b/src/backend/base/langflow/api/v1/schemas.py @@ -326,6 +326,7 @@ class VertexBuildResponse(BaseModel): Returns: dict: The serialized representation of the data with truncation applied. """ + # return serialize(data, max_length=get_max_text_length()) TODO: Safe? return serialize(data, max_length=get_max_text_length(), max_items=get_max_items_length()) diff --git a/src/backend/base/langflow/serialization/constants.py b/src/backend/base/langflow/serialization/constants.py index d7a9a0bca..9221627a6 100644 --- a/src/backend/base/langflow/serialization/constants.py +++ b/src/backend/base/langflow/serialization/constants.py @@ -1,2 +1,2 @@ MAX_TEXT_LENGTH = 2000 -MAX_ITEMS_LENGTH = 100 +MAX_ITEMS_LENGTH = 1000