From c4c5fcc2b20d8399e4a7cc782dd7d151ff0ebaa9 Mon Sep 17 00:00:00 2001 From: Kraiem Taha Yassine Date: Wed, 12 Feb 2025 15:32:18 +0100 Subject: [PATCH] fix(chalice): working on a fix for reversed user-journey (reversed links) (#3028) --- api/chalicelib/core/metrics/product_analytics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/chalicelib/core/metrics/product_analytics.py b/api/chalicelib/core/metrics/product_analytics.py index 1205b9c07..010ed47bc 100644 --- a/api/chalicelib/core/metrics/product_analytics.py +++ b/api/chalicelib/core/metrics/product_analytics.py @@ -90,7 +90,7 @@ def __transform_journey(rows, reverse_path=False): links.append(link) return {"nodes": nodes_values, - "links": sorted(links, key=lambda x: (x["source"], x["target"]), reverse=False)} + "links": sorted(links, key=lambda x: (x["source"], x["target"]), reverse=reverse_path)} JOURNEY_TYPES = {