This commit updates the `Graph.from_payload` method in the `endpoints.py` file to include the `flow_name` parameter. This change ensures that the `Graph` object is created with the correct flow name, which is necessary for proper functionality. By passing the `flow.name` value to the `Graph.from_payload` method, we ensure that the `graph` object is initialized correctly with the associated flow name. This improvement enhances the accuracy and reliability of the code.
The welcome panel in the `__main__.py` module has been updated to include information about telemetry data collection. This change adds a new line of text explaining that anonymous usage data is collected to improve Langflow, and provides instructions on how to opt-out by setting the `DO_NOT_TRACK` environment variable to `true`.
The `PlaygroundPayload` class in the `telemetry/schema.py` module has been updated to make the `componentCount` field nullable by setting its default value to `None`. This change allows for more flexibility when handling the `componentCount` data in the telemetry service.
This commit adds the `components_count` variable to the `retrieve_vertices_order` function in `chat.py`. The `components_count` variable is initialized as `None` and will be used for further processing within the function.
This commit adds the `TelemetryService` class and updates the code in `endpoints.py` to log the run time of package execution. The `TelemetryService` is responsible for handling telemetry-related functionality, including logging package run time. This addition enables the application to collect and analyze telemetry data, providing insights into the performance of package execution.