From a9040a4b4ef55ea8299c72dafe464b52aae6bf34 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Sat, 22 Jun 2024 18:02:15 -0300 Subject: [PATCH] refactor: Rename post_code_validation method to post_code_processing The post_code_validation method in the Component class has been renamed to post_code_processing to better reflect its purpose. This change improves code clarity and maintainability. --- src/backend/base/langflow/api/v1/endpoints.py | 2 +- src/backend/base/langflow/custom/custom_component/component.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/base/langflow/api/v1/endpoints.py b/src/backend/base/langflow/api/v1/endpoints.py index dda83cc31..93cdf2ce3 100644 --- a/src/backend/base/langflow/api/v1/endpoints.py +++ b/src/backend/base/langflow/api/v1/endpoints.py @@ -467,7 +467,7 @@ async def custom_component( built_frontend_node, component_instance = build_custom_component_template(component, user_id=user.id) - built_frontend_node = component_instance.post_code_validation(built_frontend_node, raw_code.frontend_node) + built_frontend_node = component_instance.post_code_processing(built_frontend_node, raw_code.frontend_node) return built_frontend_node diff --git a/src/backend/base/langflow/custom/custom_component/component.py b/src/backend/base/langflow/custom/custom_component/component.py index 532bd9fbc..b945f491f 100644 --- a/src/backend/base/langflow/custom/custom_component/component.py +++ b/src/backend/base/langflow/custom/custom_component/component.py @@ -226,7 +226,7 @@ class Component(CustomComponent): def build(self, **kwargs): self.set_attributes(kwargs) - def post_code_validation(self, new_build_config: dict, current_build_config: dict): + def post_code_processing(self, new_build_config: dict, current_build_config: dict): """ This function is called after the code validation is done. """