langflow/tests
Gabriel Luiz Freitas Almeida d28fe8eedc
fix: Improve vertex filtering and update is_vertex_runnable logic (#2612)
* feat: improve is_vertex_runnable method in RunnableVerticesManager

This commit improves the `is_vertex_runnable` method in the `RunnableVerticesManager` class. It adds an additional parameter `activated_vertices` to the method signature and updates the logic to check if a vertex is runnable based on the presence of activated vertices. This enhancement improves the accuracy of determining whether a vertex is runnable or not.

* fix: add predecessors to vertices_to_run

* style: fix lint issues

* feat: optimize vertex filtering in useFlowStore

This commit optimizes the vertex filtering logic in the `useFlowStore` function in `flowStore.ts`. It introduces a more efficient way to filter out vertices that are already being built, resulting in improved performance and accuracy.

* refactor: add is_active method to Vertex class

This commit adds the `is_active` method to the `Vertex` class in the `base.py` file. The `is_active` method checks if the state of the vertex is set to `ACTIVE` and returns a boolean value accordingly. This enhancement improves the readability and maintainability of the codebase.

* refactor: improve is_vertex_runnable method in RunnableVerticesManager

* refactor: improve find_runnable_predecessors_for_successors method in Graph class

* refactor: move test_create_function
2024-07-10 07:40:16 -03:00
..
data test(test_webhook): change component in webhook test to be async (#2578) 2024-07-08 09:38:22 -07:00
integration tests: fix up the astra integ tests and add vectorize tests (#2616) 2024-07-10 11:32:34 +02:00
locust Reapply "Refactor state management to use Zustand, migrate components to CustomComponent and other fixes" 2024-02-05 19:02:34 -03:00
unit fix: Improve vertex filtering and update is_vertex_runnable logic (#2612) 2024-07-10 07:40:16 -03:00
conftest.py fix: stream option is not working with tracing enabled (#2602) 2024-07-09 13:37:47 +00:00
test_endpoints.py ci: skip tests with openai key required (#2477) 2024-07-02 06:20:13 -07:00
test_messages_endpoints.py refactor: Update add_messages and add_messagetables functions to return Message objects 2024-07-01 13:53:37 -03:00
test_schema.py refactor: Update langflow components and constants 2024-06-13 10:40:39 -03:00
test_user.py Fixes CLI and server (#2342) 2024-06-25 09:20:55 -07:00
test_webhook.py fix: make webhook api call honor webhook component as input (#2511) 2024-07-04 11:11:55 -07:00