Skip to content

Commit a6dc450

Browse files
committed
dsw-report was added to dc-analytics
1 parent f60176b commit a6dc450

2 files changed

Lines changed: 11 additions & 9 deletions

File tree

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ RUN iris start $ISC_PACKAGE_INSTANCENAME quietly EmergencyId=sys,sys && \
5151
/bin/echo -e "sys\nsys\n" \
5252
| iris stop $ISC_PACKAGE_INSTANCENAME quietly
5353

54+
RUN apt update && apt install -y git && git clone https://github.com/intersystems-community/dsw-reports.git && cp -r dsw-reports/src/web/reports /usr/irissys/csp/dsw/ && cp -r src/reports /usr/irissys/csp/dsw/ && rm -rf dsw-reports
55+
5456
COPY ./other/dcanalytics.json /usr/irissys/csp/dsw/configs/
5557

5658
COPY ./fixoverlay.sh ./

src/reports/week/config.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function beforeWeekDates(UTCtimezone) {
2020
* @returns {{REPORT_NAME: string, BLOCKS: *[], NAMESPACE: string}}
2121
*/
2222
function getConfiguration(params) {
23-
if (params.ns == undefined || params.ns == null) params.ns = "COMMUNITYPUBLIC";
23+
if (params.ns == undefined || params.ns == null) params.ns = "DCANALYTICS";
2424
if (params.filter == undefined || params.filter == null) params.filter = "NOW-1";
2525
if (params.date_string == undefined || params.date_string == null) params.date_string = beforeWeekDates(-5);
2626
return {
@@ -67,7 +67,7 @@ function getReportBlocks(params) {
6767
title: "Posts by Members",
6868
note: "",
6969
widget: {
70-
url: server + "/dswpub/index.html#!/d/Week/WeekView.dashboard?FILTERS=TARGET:*;FILTER:%5BDateDimension%5D.%5BH1%5D.%5BWeekYear%5D.%26%5B"+filter+"%5D&widget=0&height=450&showValues=true&ns=" + namespace,
70+
url: server + "/dsw/index.html#!/d/Week/WeekView.dashboard?FILTERS=TARGET:*;FILTER:%5BDateDimension%5D.%5BH1%5D.%5BWeekYear%5D.%26%5B"+filter+"%5D&widget=0&height=450&showValues=true&ns=" + namespace,
7171
width: 1000,
7272
height: 450
7373
}
@@ -76,7 +76,7 @@ function getReportBlocks(params) {
7676
title: "Posts Daily",
7777
note: "",
7878
widget: {
79-
url: server + "/dswpub/index.html#!/d/Week/WeekView.dashboard?FILTERS=TARGET:*;FILTER:%5BDateDimension%5D.%5BH1%5D.%5BWeekYear%5D.%26%5B"+filter+"%5D&widget=1&height=300&isLegend=true" + namespace,
79+
url: server + "/dsw/index.html#!/d/Week/WeekView.dashboard?FILTERS=TARGET:*;FILTER:%5BDateDimension%5D.%5BH1%5D.%5BWeekYear%5D.%26%5B"+filter+"%5D&widget=1&height=300&isLegend=true" + namespace,
8080
width: 800,
8181
height: 350
8282
},
@@ -100,15 +100,15 @@ function getReportBlocks(params) {
100100
title: "Comments by Members",
101101
note: "",
102102
widget: {
103-
url: server + "/dswpub/index.html#!/d/Week/WeekView.dashboard?FILTERS=TARGET:*;FILTER:%5BDateDimension%5D.%5BH1%5D.%5BWeekYear%5D.%26%5B"+filter+"%5D&widget=2&height=450&showValues=true&ns=" + namespace,
103+
url: server + "/dsw/index.html#!/d/Week/WeekView.dashboard?FILTERS=TARGET:*;FILTER:%5BDateDimension%5D.%5BH1%5D.%5BWeekYear%5D.%26%5B"+filter+"%5D&widget=2&height=450&showValues=true&ns=" + namespace,
104104
width: 1000,
105105
height: 750
106106
}
107107
}, {
108108
title: "Comments Daily",
109109
note: "",
110110
widget: {
111-
url: server + "/dswpub/index.html#!/d/Week/WeekView.dashboard?FILTERS=TARGET:*;FILTER:%5BDateDimension%5D.%5BH1%5D.%5BWeekYear%5D.%26%5B"+filter+"%5D&widget=3&height=300&isLegend=true" + namespace,
111+
url: server + "/dsw/index.html#!/d/Week/WeekView.dashboard?FILTERS=TARGET:*;FILTER:%5BDateDimension%5D.%5BH1%5D.%5BWeekYear%5D.%26%5B"+filter+"%5D&widget=3&height=300&isLegend=true" + namespace,
112112
width: 800,
113113
height: 350
114114
},
@@ -132,23 +132,23 @@ function getReportBlocks(params) {
132132
title: "Posts by Groups",
133133
note: "",
134134
widget: {
135-
url: server + "/dswpub/index.html#!/d/Week/WeekView.dashboard?FILTERS=TARGET:*;FILTER:%5BDateDimension%5D.%5BH1%5D.%5BWeekYear%5D.%26%5B"+filter+"%5D&widget=4&height=400&ns=" + namespace,
135+
url: server + "/dsw/index.html#!/d/Week/WeekView.dashboard?FILTERS=TARGET:*;FILTER:%5BDateDimension%5D.%5BH1%5D.%5BWeekYear%5D.%26%5B"+filter+"%5D&widget=4&height=400&ns=" + namespace,
136136
width: 1000,
137137
height: 400
138138
}
139139
}, {
140140
title: "Comments by Groups",
141141
note: "",
142142
widget: {
143-
url: server + "/dswpub/index.html#!/d/Week/WeekView.dashboard?FILTERS=TARGET:*;FILTER:%5BDateDimension%5D.%5BH1%5D.%5BWeekYear%5D.%26%5B"+filter+"%5D&widget=5&height=400&ns=" + namespace,
143+
url: server + "/dsw/index.html#!/d/Week/WeekView.dashboard?FILTERS=TARGET:*;FILTER:%5BDateDimension%5D.%5BH1%5D.%5BWeekYear%5D.%26%5B"+filter+"%5D&widget=5&height=400&ns=" + namespace,
144144
width: 1000,
145145
height: 800
146146
}
147147
}, {
148148
title: "Articles and Announcements of the week",
149149
note: "",
150150
widget: {
151-
url: server + "/dswpub/index.html#!/d/Week/DigestLists.dashboard?widget=0&height=500&isLegend=false" + namespace,
151+
url: server + "/dsw/index.html#!/d/Week/DigestLists.dashboard?widget=0&height=500&isLegend=false" + namespace,
152152
width: 800,
153153
height: 500
154154
},
@@ -193,7 +193,7 @@ function getReportBlocks(params) {
193193
title: "Questions of the week",
194194
note: "",
195195
widget: {
196-
url: server + "/dswpub/index.html#!/d/Week/DigestLists.dashboard?widget=1&height=1000&isLegend=false" + namespace,
196+
url: server + "/dsw/index.html#!/d/Week/DigestLists.dashboard?widget=1&height=1000&isLegend=false" + namespace,
197197
width: 800,
198198
height: 1000
199199
},

0 commit comments

Comments
 (0)