Skip to content

Commit 64de680

Browse files
authored
Merge pull request #37 from xedinseu/master
more complex power bi dashboard, some Iris BI fixes, dsw authorization
2 parents a448fbc + 732db99 commit 64de680

File tree

10 files changed

+259714
-7
lines changed

10 files changed

+259714
-7
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.

atscale-server/src/cubes/EnCommunnityAnalytics3.xml

Lines changed: 3929 additions & 0 deletions
Large diffs are not rendered by default.

iris/iris.script

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,10 @@
55
set sc = ##class(App.Installer).setup()
66
set ViewsLoad = "False"
77
DO DISABLE^%NOJRN
8-
9-
zn "%SYS"
10-
Do ##class(Security.Users).UnExpireUserPasswords("*")
11-
set webName = "/mdx2json"
12-
set webProperties("AutheEnabled") = 64
13-
set webProperties("MatchRoles")=":%DB_DCANALYTICS"
14-
set sc = ##class(Security.Applications).Modify(webName, .webProperties)
158

169
zn "DCANALYTICS"
1710
do $SYSTEM.OBJ.Load("/opt/dcanalytics/src/inc/Community.inc", "ck")
11+
do $SYSTEM.OBJ.LoadDir("/opt/dcanalytics/src/utils", "ck")
1812
do $System.OBJ.LoadDir("/opt/dcanalytics/src/","ck",,1)
1913
zpm "install dsw"
2014
zpm "install isc-dev"
@@ -23,4 +17,12 @@
2317
do EnableDeepSee^%SYS.cspServer("/csp/dcanalytics/")
2418
do ##class(Community.Utils).setup("/opt/dcanalytics/globals.xml",100000, ViewsLoad)
2519

20+
zn "%SYS"
21+
Do ##class(Security.Users).UnExpireUserPasswords("*")
22+
set webName = "/mdx2json"
23+
set webProperties("AutheEnabled") = 64
24+
set webProperties("MatchRoles")=":%DB_DCANALYTICS"
25+
do ##class(Security.Users).AddRoles("UnknownUser", "%ALL")
26+
set sc = ##class(Security.Applications).Modify(webName, .webProperties)
27+
2628
halt

iris/src/dfi/BasicDashboards/Members.dashboard.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,20 @@
99
<control name="" action="applyFilter" target="*" targetProperty="[DateDimension].[H1].[Year]" location="dashboard" type="auto" controlClass="" label="Year" title="" value="&amp;[NOW]" text="NOW" readOnly="false" valueList="" displayList="" activeWhen="">
1010
<valueRequired>false</valueRequired>
1111
</control>
12+
<control name="" action="showListing" target="" targetProperty="" location="widget" type="auto" controlClass="" label="" title="" value="" text="" readOnly="false" valueList="" displayList="" activeWhen="itemSelected">
13+
<valueRequired>false</valueRequired>
14+
</control>
1215
<property name="legendPos">none</property>
1316
</widget>
1417
<widget name="Best Contributors" type="pivot" subtype="barChartStacked" subtypeClass="barChart" title="Best Contributors" dataSource="Members/BestContributors.pivot" dataLink="" drillDownDataSource="" width="200" height="200" sidebarContent="" showSidebar="false" sidebarWidth="" maximized="false" homeRowL="6" homeColL="0" colSpanL="6" rowSpanL="4" showToolbar="true" showToolbarBottomBorder="true" showToolbarOnlyWhenMaximized="false" colorToolbar="#F0F0F0" opacityToolbar="1" backgroundColor="#F0F0F0" opacity="1" theme="" dataColorList="">
18+
<control name="" action="showListing" target="" targetProperty="" location="widget" type="auto" controlClass="" label="" title="" value="" text="" readOnly="false" valueList="" displayList="" activeWhen="itemSelected">
19+
<valueRequired>false</valueRequired>
20+
</control>
1521
</widget>
1622
<widget name="New Members Monthly By Lang" type="pivot" subtype="columnChartStacked" subtypeClass="barChart" title="New Members by Language" dataSource="Members/NewMembersMonthlyByLang.pivot" dataLink="" drillDownDataSource="" width="200" height="200" sidebarContent="" showSidebar="false" sidebarWidth="" maximized="false" homeRowL="0" homeColL="6" colSpanL="4" rowSpanL="6" showToolbar="true" showToolbarBottomBorder="true" showToolbarOnlyWhenMaximized="false" colorToolbar="#F0F0F0" opacityToolbar="1" backgroundColor="#F0F0F0" opacity="1" theme="" dataColorList="">
23+
<control name="" action="showListing" target="" targetProperty="" location="widget" type="auto" controlClass="" label="" title="" value="" text="" readOnly="false" valueList="" displayList="" activeWhen="itemSelected">
24+
<valueRequired>false</valueRequired>
25+
</control>
1726
</widget>
1827
<widget name="Total EN Members" type="meter" subtype="textMeter" subtypeClass="" title="Total EN Members" dataSource="Members/TotalEnMembers.pivot" dataLink="" drillDownDataSource="" width="200" height="200" sidebarContent="" showSidebar="false" sidebarWidth="" maximized="false" homeRowL="0" homeColL="0" colSpanL="1" rowSpanL="2" showToolbar="true" showToolbarBottomBorder="true" showToolbarOnlyWhenMaximized="false" colorToolbar="#F0F0F0" opacityToolbar="1" backgroundColor="#F0F0F0" opacity="1" theme="" dataColorList="">
1928
</widget>

iris/src/dfi/BasicDashboards/Posts.dashboard.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
<control name="" action="applyFilter" target="*" targetProperty="[DateDimension].[H1].[Year]" location="dashboard" type="auto" controlClass="" label="Year" title="" value="&amp;[NOW]" text="NOW" readOnly="false" valueList="" displayList="" activeWhen="">
1010
<valueRequired>false</valueRequired>
1111
</control>
12+
<control name="" action="showListing" target="" targetProperty="" location="widget" type="auto" controlClass="" label="" title="" value="" text="" readOnly="false" valueList="" displayList="" activeWhen="itemSelected">
13+
<valueRequired>false</valueRequired>
14+
</control>
1215
</widget>
1316
<widget name="Widget2" type="meter" subtype="textMeter" subtypeClass="" title="Total Posts" dataSource="Posts/TotalPosts.pivot" dataLink="" drillDownDataSource="" width="200" height="200" sidebarContent="" showSidebar="false" sidebarWidth="" maximized="false" homeRowL="0" homeColL="0" colSpanL="1" rowSpanL="2" showToolbar="true" showToolbarBottomBorder="true" showToolbarOnlyWhenMaximized="false" colorToolbar="#F0F0F0" opacityToolbar="1" backgroundColor="#F0F0F0" opacity="1" theme="" dataColorList="">
1417
</widget>
@@ -19,10 +22,19 @@
1922
<widget name="Widget5" type="meter" subtype="textMeter" subtypeClass="" title="Total Discussions" dataSource="Posts/TotalDiscussion.pivot" dataLink="" drillDownDataSource="" width="200" height="200" sidebarContent="" showSidebar="false" sidebarWidth="" maximized="false" homeRowL="0" homeColL="3" colSpanL="1" rowSpanL="2" showToolbar="true" showToolbarBottomBorder="true" showToolbarOnlyWhenMaximized="false" colorToolbar="#F0F0F0" opacityToolbar="1" backgroundColor="#F0F0F0" opacity="1" theme="" dataColorList="">
2023
</widget>
2124
<widget name="Widget6" type="pivot" subtype="lineChartMarkers" subtypeClass="lineChart" title="Total Posts" dataSource="Posts/PostsTotalMonth.pivot" dataLink="" drillDownDataSource="" width="200" height="200" sidebarContent="" showSidebar="false" sidebarWidth="" maximized="false" homeRowL="0" homeColL="4" colSpanL="6" rowSpanL="6" showToolbar="true" showToolbarBottomBorder="true" showToolbarOnlyWhenMaximized="false" colorToolbar="#F0F0F0" opacityToolbar="1" backgroundColor="#F0F0F0" opacity="1" theme="" dataColorList="">
25+
<control name="" action="showListing" target="" targetProperty="" location="widget" type="auto" controlClass="" label="" title="" value="" text="" readOnly="false" valueList="" displayList="" activeWhen="itemSelected">
26+
<valueRequired>false</valueRequired>
27+
</control>
2228
</widget>
2329
<widget name="Widget7" type="pivot" subtype="columnChart" subtypeClass="barChart" title="New Posts Monthly" dataSource="Posts/PostsMonthly.pivot" dataLink="" drillDownDataSource="" width="200" height="200" sidebarContent="" showSidebar="false" sidebarWidth="" maximized="false" homeRowL="6" homeColL="0" colSpanL="4" rowSpanL="4" showToolbar="true" showToolbarBottomBorder="true" showToolbarOnlyWhenMaximized="false" colorToolbar="#F0F0F0" opacityToolbar="1" backgroundColor="#F0F0F0" opacity="1" theme="" dataColorList="">
30+
<control name="" action="showListing" target="" targetProperty="New_listing1" location="widget" type="auto" controlClass="" label="" title="" value="" text="" readOnly="false" valueList="" displayList="" activeWhen="itemSelected">
31+
<valueRequired>false</valueRequired>
32+
</control>
2433
</widget>
2534
<widget name="Widget8" type="pivot" subtype="lineChartMarkers" subtypeClass="lineChart" title="Posting Contribution" dataSource="Posts/PostingContribution.pivot" dataLink="" drillDownDataSource="" width="200" height="200" sidebarContent="" showSidebar="false" sidebarWidth="" maximized="false" homeRowL="6" homeColL="4" colSpanL="6" rowSpanL="4" showToolbar="true" showToolbarBottomBorder="true" showToolbarOnlyWhenMaximized="false" colorToolbar="#F0F0F0" opacityToolbar="1" backgroundColor="#F0F0F0" opacity="1" theme="" dataColorList="">
35+
<control name="" action="showListing" target="" targetProperty="" location="widget" type="auto" controlClass="" label="" title="" value="" text="" readOnly="false" valueList="" displayList="" activeWhen="itemSelected">
36+
<valueRequired>false</valueRequired>
37+
</control>
2638
</widget>
2739
</dashboard>
2840
</Document></Export>

iris/src/dfi/BasicDashboards/Views.dashboard.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,24 @@
99
<control name="" action="applyFilter" target="*" targetProperty="[DateDimension].[H1].[Year]" location="dashboard" type="auto" controlClass="" label="Year" title="" value="&amp;[NOW]" text="NOW" readOnly="false" valueList="" displayList="" activeWhen="">
1010
<valueRequired>false</valueRequired>
1111
</control>
12+
<control name="" action="showListing" target="" targetProperty="" location="widget" type="auto" controlClass="" label="" title="" value="" text="" readOnly="false" valueList="" displayList="" activeWhen="itemSelected">
13+
<valueRequired>false</valueRequired>
14+
</control>
1215
</widget>
1316
<widget name="Widget2" type="pivot" subtype="columnChartStacked" subtypeClass="barChart" title="Views Monthly" dataSource="Views/ViewsByLang.pivot" dataLink="" drillDownDataSource="" width="200" height="200" sidebarContent="" showSidebar="false" sidebarWidth="" maximized="false" homeRowL="0" homeColL="4" colSpanL="4" rowSpanL="4" showToolbar="true" showToolbarBottomBorder="true" showToolbarOnlyWhenMaximized="false" colorToolbar="#F0F0F0" opacityToolbar="1" backgroundColor="#F0F0F0" opacity="1" theme="" dataColorList="">
17+
<control name="" action="showListing" target="" targetProperty="" location="widget" type="auto" controlClass="" label="" title="" value="" text="" readOnly="false" valueList="" displayList="" activeWhen="itemSelected">
18+
<valueRequired>false</valueRequired>
19+
</control>
1420
</widget>
1521
<widget name="Widget3" type="pivot" subtype="columnChartStacked" subtypeClass="barChart" title="Views By Post Type" dataSource="Views/ViewsByPosttype.pivot" dataLink="" drillDownDataSource="" width="200" height="200" sidebarContent="" showSidebar="false" sidebarWidth="" maximized="false" homeRowL="4" homeColL="0" colSpanL="4" rowSpanL="4" showToolbar="true" showToolbarBottomBorder="true" showToolbarOnlyWhenMaximized="false" colorToolbar="#F0F0F0" opacityToolbar="1" backgroundColor="#F0F0F0" opacity="1" theme="" dataColorList="">
22+
<control name="" action="showListing" target="" targetProperty="" location="widget" type="auto" controlClass="" label="" title="" value="" text="" readOnly="false" valueList="" displayList="" activeWhen="itemSelected">
23+
<valueRequired>false</valueRequired>
24+
</control>
1625
</widget>
1726
<widget name="Widget4" type="pivot" subtype="columnChart" subtypeClass="barChart" title="Views By Tags" dataSource="Views/ViewsByTags.pivot" dataLink="" drillDownDataSource="" width="200" height="200" sidebarContent="" showSidebar="false" sidebarWidth="" maximized="false" homeRowL="4" homeColL="4" colSpanL="4" rowSpanL="4" showToolbar="true" showToolbarBottomBorder="true" showToolbarOnlyWhenMaximized="false" colorToolbar="#F0F0F0" opacityToolbar="1" backgroundColor="#F0F0F0" opacity="1" theme="" dataColorList="">
27+
<control name="" action="showListing" target="" targetProperty="" location="widget" type="auto" controlClass="" label="" title="" value="" text="" readOnly="false" valueList="" displayList="" activeWhen="itemSelected">
28+
<valueRequired>false</valueRequired>
29+
</control>
1830
</widget>
1931
<widget name="Widget5" type="meter" subtype="textMeter" subtypeClass="" title="" dataSource="Views/TotalViews.pivot" dataLink="" drillDownDataSource="" width="200" height="200" sidebarContent="" showSidebar="false" sidebarWidth="" maximized="false" homeRowL="0" homeColL="0" colSpanL="2" rowSpanL="3" showToolbar="true" showToolbarBottomBorder="true" showToolbarOnlyWhenMaximized="false" colorToolbar="#F0F0F0" opacityToolbar="1" backgroundColor="#F0F0F0" opacity="1" theme="" dataColorList="">
2032
</widget>

iris/src/utils/Calendar.cls

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
Class utils.Calendar Extends %Persistent
2+
{
3+
4+
Index FullDateIdx On FullDate [ Type = bitmap ];
5+
6+
Property FullDate As %Library.Date;
7+
8+
Property MonthYear As %Library.String(MAXLEN = 8);
9+
10+
Property MonthYearNum As %Library.Integer;
11+
12+
Property Year As %Library.Integer;
13+
14+
Storage Default
15+
{
16+
<Data name="CalendarDefaultData">
17+
<Value name="1">
18+
<Value>%%CLASSNAME</Value>
19+
</Value>
20+
<Value name="2">
21+
<Value>FullDate</Value>
22+
</Value>
23+
<Value name="3">
24+
<Value>MonthYear</Value>
25+
</Value>
26+
<Value name="4">
27+
<Value>MonthYearNum</Value>
28+
</Value>
29+
<Value name="5">
30+
<Value>Year</Value>
31+
</Value>
32+
</Data>
33+
<DataLocation>^utils.CalendarD</DataLocation>
34+
<DefaultData>CalendarDefaultData</DefaultData>
35+
<IdLocation>^utils.CalendarD</IdLocation>
36+
<IndexLocation>^utils.CalendarI</IndexLocation>
37+
<StreamLocation>^utils.CalendarS</StreamLocation>
38+
<Type>%Storage.Persistent</Type>
39+
}
40+
41+
}

0 commit comments

Comments
 (0)