Skip to content

Commit

Permalink
[#noissue] Fix period selection
Browse files Browse the repository at this point in the history
  • Loading branch information
binDongKim committed Jul 7, 2022
1 parent ecc44a4 commit 00d181c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,21 +105,22 @@ export class PeriodSelectorContainerComponent implements OnInit, OnDestroy {
} else {
this.analyticsService.trackEvent(TRACKED_EVENT_LIST.SELECT_PERIOD, selectedPeriod);

const tree = this.router.parseUrl(this.router.url);
const g = tree.root.children[PRIMARY_OUTLET];
const s = g.segments;
// TODO: Handle it considering metric page
// const tree = this.router.parseUrl(this.router.url);
// const g = tree.root.children[PRIMARY_OUTLET];
// const s = g.segments;

this.urlRouteManagerService.move({
url: [
this.newUrlStateNotificationService.getStartPath(),
// this.newUrlStateNotificationService.getPathValue(UrlPathId.APPLICATION).getUrlStr(),
this.newUrlStateNotificationService.getPathValue(UrlPathId.APPLICATION).getUrlStr(),
// this.router.url[1],
s[1].path,
// s[1].path,
selectedPeriod
],
needServerTimeRequest: true,
// nextUrl: this.newUrlStateNotificationService.hasValue(UrlPathId.AGENT_ID) ? [this.newUrlStateNotificationService.getPathValue(UrlPathId.AGENT_ID)] : []
nextUrl: s[4] ? [s[4].path] : []
nextUrl: this.newUrlStateNotificationService.hasValue(UrlPathId.AGENT_ID) ? [this.newUrlStateNotificationService.getPathValue(UrlPathId.AGENT_ID)] : []
// nextUrl: s[4] ? [s[4].path] : []
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion web/src/main/angular/src/proxy.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const PROXY_CONFIG = [
"/systemMetric/hostGroup.pinpoint",
"/systemMetric/hostGroup/host.pinpoint",
"/systemMetric/hostGroup/host/collectedMetricInfo.pinpoint",
"/systemMetric/hostGroup/host/collectedMetricData.pinpoint"
"/systemMetric/hostGroup/host/collectedMetricData.pinpoint",
"/getApdexScore.pinpoint",
"/getApplicationStat/apdexScore/chart.pinpoint",
"/getAgentStat/apdexScore/chart.pinpoint"
Expand Down

0 comments on commit 00d181c

Please sign in to comment.