Standard Reports
Dashboard Configuration for Standard Report
The OCS brand should be product-testFinal1. All the standard reports are configured on code level.We need to just follow some steps to configure the reports on database level and in the .env of OCS.
OCS .env :- In the .env of OCS we must add AWS_REPORT_UPLOAD_BUCKET , it is generally same as AWS_FILE_UPLOAD_BUCKET, but please confiem that with devops team before making this change.
Autogeneratereports Collection: Following are the parameter should be added for configuration. (They can be taken from vodafone dev database)
ocs_reports , ocs_reports_enabled,
ocs_reports : It is an array of object, it contains the following details:-
dateRangeCap :- to add dateRange in a particular report
isDashboard:- to enable/disable a particular report
report :- name of report.
worksheets :- different worksheet in a report.{
"isDashboard" : true,
"standardReport" : true,
"report" : "Whatsapp Dump Report",
"displayName" : "Whatsapp Dump Report",
"dateRangeCap" : 30,
"description" : "Whatsapp Dump Report description",
"worksheets" : [
{
"id" : "Whatsapp Dump",
"name" : "Whatsapp Dump"
},
{
"id" : "MSISDN - Query",
"name" : "MSISDN - Query"
}
]
},ocs_reports_enabled : It is a boolean variable to enable or disable the whole standard report on dashboard.
BrandSpecifiedValues Collection: Following are the parameter should be added.
bsv_dateRangeCap :- to add dateRange in a all reports"reporting_constant" : {
"bsv_dateRangeCap" : 5
}