From 69bea6583802f8b77dd338867d158ca4d2eba67c Mon Sep 17 00:00:00 2001 From: Sanjay Chari Date: Wed, 15 Dec 2021 17:24:43 +0530 Subject: [PATCH] Fix in Rally HTML Charts For duplicate atomic actions which occur more than 2 times in an iteration, multiple line charts were getting generated because of a bug in the code. This patch fixes the bug. Change-Id: I447aad984d026e3ade10e9558ff31c0e8c789503 --- rally/rally-plugins/reports/process_atomic_actions_data.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rally/rally-plugins/reports/process_atomic_actions_data.py b/rally/rally-plugins/reports/process_atomic_actions_data.py index d609f2c0b..97c42f364 100644 --- a/rally/rally-plugins/reports/process_atomic_actions_data.py +++ b/rally/rally-plugins/reports/process_atomic_actions_data.py @@ -36,13 +36,13 @@ class AtomicActionsDurationDataProcessor: :returns: list of strings representing duplicate action names """ actions_set = set() - duplicate_actions_list = [] + duplicate_actions_set = set() for action in atomic_actions: if action["name"] not in actions_set: actions_set.add(action["name"]) else: - duplicate_actions_list.append(action["name"]) - return duplicate_actions_list + duplicate_actions_set.add(action["name"]) + return list(duplicate_actions_set) def process_atomic_action_additive_data(self, action_name, atomic_actions): """Generate duration data in additive format for aggregate chart