Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Merge pull request #824 from ammendonca/HAWKULAR-1004
Browse files Browse the repository at this point in the history
HAWKULAR-1004 : Fix availability data retrieval by using ascending order
  • Loading branch information
mtho11 committed Feb 2, 2016
2 parents ec2eb52 + 490b7b1 commit 7ded1be
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ module HawkularMetrics {
availabilityId: metricId,
start: startTime,
end: endTime,
order: 'ASC',
distinct: true
}).$promise
.then((response: any[]) => {
Expand Down
1 change: 0 additions & 1 deletion console/src/main/scripts/plugins/metrics/ts/urlList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,6 @@ module HawkularMetrics {
availabilityId: res.id, distinct: true,
start: 1, end: moment().valueOf()
}, (resource) => {
resource.reverse(); // FIXME: HAWKULAR-366
res['isUp'] = (resource[0] && resource[0].value === 'up');
}).$promise);
let availPromise = this.MetricsService.retrieveAvailabilityMetrics(this.$rootScope.currentPersona.id,
Expand Down

0 comments on commit 7ded1be

Please sign in to comment.