[TE] frontend - aaronucsd/fixed the missing data points on valid analysis range
added 5 milliseconds to analysis's end timestamp vs user have to add 1+ day to display window
@@ -251,7 +251,7 @@ export default Route.extend(AuthenticatedRouteMixin, {
const anomalyRangeStart = moment(anomalyRangeEnd).add(anomalyRangeStartOffset, metricGranularity[1]).valueOf();
const anomalyRange = [anomalyRangeStart, anomalyRangeEnd];
- const analysisRangeEnd = moment(anomalyRangeEnd).startOf('day').add(1, 'day').valueOf();
+ const analysisRangeEnd = moment(anomalyRangeEnd).startOf('day').add(1, 'day').add(5, 'milliseconds').valueOf();
const analysisRangeStartOffset = toAnalysisOffset(metricGranularity);
const analysisRangeStart = moment(anomalyRangeEnd).add(analysisRangeStartOffset, 'day').valueOf();
const analysisRange = [analysisRangeStart, analysisRangeEnd];
@@ -279,7 +279,7 @@ export default Route.extend(AuthenticatedRouteMixin, {
const anomalyRange = [parseInt(anomalyEntity.start, 10), parseInt(anomalyEntity.end, 10)];
// align to local end of day
- const analysisRangeEnd = moment(anomalyRange[1]).startOf('day').add(1, 'day').valueOf();
+ const analysisRangeEnd = moment(anomalyRange[1]).startOf('day').add(1, 'day').add(5, 'milliseconds').valueOf();
const analysisRangeStartOffset = toAnalysisOffset(metricGranularity);
const analysisRangeStart = moment(anomalyRange[0]).startOf('day').add(analysisRangeStartOffset, 'day').valueOf();
const analysisRange = [analysisRangeStart, analysisRangeEnd];
@@ -301,7 +301,6 @@ export default Route.extend(AuthenticatedRouteMixin, {
anomalyFunctionUrns.pushObject(appendFilters(anomalyFunctionUrnRaw, anomalyFilters));
}
-
context = {
urns: new Set([anomalyMetricUrn]),
anomalyRange,
