Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
WIP - Try to get the test working
Browse files Browse the repository at this point in the history
  • Loading branch information
leenagupte committed Jul 21, 2015
1 parent 0b5a956 commit 45d4d97
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import json
from ..worker import config

from performanceplatform.client import AdminAPI
Expand Down Expand Up @@ -92,10 +93,13 @@ def _get_dashboard_configs_with_data(ids_with_data):


def _get_data_points_for_each_tx_metric(data, transform, data_set_config):
ids_with_data = _service_ids_with_data(
data)
data_ordered_by_timestamp = sorted(
data, key=lambda k: k['_timestamp'], reverse=True)

ids_with_data = _service_ids_with_data(data_ordered_by_timestamp)
dashboard_configs_with_data = _get_dashboard_configs_with_data(
ids_with_data)

for data_point_name in REQUIRED_DATA_POINTS:
for dashboard_config, dashboard_data in dashboard_configs_with_data:
latest_data = _get_latest_data_point(
Expand Down

0 comments on commit 45d4d97

Please sign in to comment.