@@ -925,7 +925,7 @@
- {{ 'home.view-experiment.mattab.data.text' | translate }}
+ {{ 'home.view-experiment.mattab.data.text' | translate }}
@@ -945,7 +945,18 @@
-
+
+
+
+
+
+
warning
+
+ {{ 'home.view-experiment.metrics-analysis-unavailable.text' | translate }}
+
+
+
+
diff --git a/frontend/projects/upgrade/src/app/features/dashboard/home/pages/view-experiment/view-experiment.component.scss b/frontend/projects/upgrade/src/app/features/dashboard/home/pages/view-experiment/view-experiment.component.scss
index c34bc88e35..f514f00f8e 100644
--- a/frontend/projects/upgrade/src/app/features/dashboard/home/pages/view-experiment/view-experiment.component.scss
+++ b/frontend/projects/upgrade/src/app/features/dashboard/home/pages/view-experiment/view-experiment.component.scss
@@ -393,6 +393,17 @@ $font-size-small: 15px;
margin-bottom: 24px;
padding: 10px;
}
+
+ .disabled-analysis-view-messsage-container {
+ padding-top: 50px;
+ padding-bottom: 20px;
+ display: flex;
+ justify-content: center;
+
+ .mat-icon {
+ margin-right: 20px;
+ }
+ }
}
::ng-deep .owl-dt-calendar-table .owl-dt-calendar-cell-selected {
diff --git a/frontend/projects/upgrade/src/app/features/dashboard/home/pages/view-experiment/view-experiment.component.ts b/frontend/projects/upgrade/src/app/features/dashboard/home/pages/view-experiment/view-experiment.component.ts
index 404c8d8b77..73316916a3 100644
--- a/frontend/projects/upgrade/src/app/features/dashboard/home/pages/view-experiment/view-experiment.component.ts
+++ b/frontend/projects/upgrade/src/app/features/dashboard/home/pages/view-experiment/view-experiment.component.ts
@@ -1,4 +1,4 @@
-import { Component, OnInit, OnDestroy, ViewEncapsulation } from '@angular/core';
+import { Component, OnInit, OnDestroy, ViewEncapsulation, Inject } from '@angular/core';
import { ExperimentService } from '../../../../../core/experiments/experiments.service';
import { MatDialog } from '@angular/material/dialog';
import { ExperimentStatusComponent } from '../../components/modal/experiment-status/experiment-status.component';
@@ -33,6 +33,7 @@ import {
FactorialConditionTableDataFromConditionPayload,
SimpleExperimentPayloadTableRowData,
} from '../../../../../core/experiment-design-stepper/store/experiment-design-stepper.model';
+import { ENV, Environment } from '../../../../../../environments/environment-types';
// Used in view-experiment component only
enum DialogType {
CHANGE_STATUS = 'Change status',
@@ -102,7 +103,8 @@ export class ViewExperimentComponent implements OnInit, OnDestroy {
private dialog: MatDialog,
private authService: AuthService,
private router: Router,
- private _Activatedroute: ActivatedRoute
+ private _Activatedroute: ActivatedRoute,
+ @Inject(ENV) private environment: Environment
) {}
get DialogType() {
@@ -125,6 +127,10 @@ export class ViewExperimentComponent implements OnInit, OnDestroy {
return this.experiment.state === EXPERIMENT_STATE.CANCELLED;
}
+ get showMetricAnalysisDisplay() {
+ return this.environment.metricAnalyticsExperimentDisplayToggle;
+ }
+
ngOnInit() {
this.isLoadingExperimentDetailStats$ = this.experimentService.isLoadingExperimentDetailStats$;
this.isPollingExperimentDetailStats$ = this.experimentService.isPollingExperimentDetailStats$;
@@ -276,7 +282,7 @@ export class ViewExperimentComponent implements OnInit, OnDestroy {
statisticOperation.push(compareFn);
statisticOperation.push(query.query.compareValue);
}
- const operationObject = this.queryOperations.find(op => op.value === query.query.operationType);
+ const operationObject = this.queryOperations.find((op) => op.value === query.query.operationType);
statisticOperation.push(operationObject.viewValue);
this.displayMetrics.push({
metric_Key: rootKey,
diff --git a/frontend/projects/upgrade/src/assets/i18n/en.json b/frontend/projects/upgrade/src/assets/i18n/en.json
index 68a3fd42d0..c13ffce922 100644
--- a/frontend/projects/upgrade/src/assets/i18n/en.json
+++ b/frontend/projects/upgrade/src/assets/i18n/en.json
@@ -248,6 +248,7 @@
"home.view-experiment.experiment-payloads.column-label.target": "TARGET",
"home.view-experiment.experiment-payloads.column-label.condition": "CONDITION",
"home.view-experiment.experiment-payloads.column-label.payload": "PAYLOAD",
+ "home.view-experiment.metrics-analysis-unavailable.text": "Experiment metrics analysis has been temporarily disabled in this view. This information is still available when exporting the experiment data.",
"home.view-experiment.graph-type.text": "Type",
"home.view-experiment.graph-conditions.text": "Conditions",
"home.view-experiment.graph-decision-point.text": "Sites",
diff --git a/frontend/projects/upgrade/src/environments/environment-types.ts b/frontend/projects/upgrade/src/environments/environment-types.ts
index d58d1d24f9..ee06822faa 100644
--- a/frontend/projects/upgrade/src/environments/environment-types.ts
+++ b/frontend/projects/upgrade/src/environments/environment-types.ts
@@ -56,7 +56,8 @@ export interface Environment {
pollingInterval: number;
pollingLimit: number;
api: APIEndpoints;
- withinSubjectExperimentSupportToggle: boolean,
+ withinSubjectExperimentSupportToggle: boolean;
+ metricAnalyticsExperimentDisplayToggle: boolean;
}
export interface RuntimeEnvironmentConfig {
@@ -64,5 +65,6 @@ export interface RuntimeEnvironmentConfig {
googleClientId?: string;
endpointApi?: string;
apiBaseUrl?: string;
- withinSubjectExperimentSupportToggle?: boolean,
+ withinSubjectExperimentSupportToggle?: boolean;
+ metricAnalyticsExperimentDisplayToggle?: boolean;
}
diff --git a/frontend/projects/upgrade/src/environments/environment.bsnl.ts b/frontend/projects/upgrade/src/environments/environment.bsnl.ts
index 3794163615..c13ab7c75f 100644
--- a/frontend/projects/upgrade/src/environments/environment.bsnl.ts
+++ b/frontend/projects/upgrade/src/environments/environment.bsnl.ts
@@ -11,6 +11,7 @@ export const environment = {
pollingInterval: 10 * 1000,
pollingLimit: 600,
withinSubjectExperimentSupportToggle: false,
+ metricAnalyticsExperimentDisplayToggle: true,
api: {
getAllExperiments: '/experiments/paginated',
createNewExperiments: '/experiments',
diff --git a/frontend/projects/upgrade/src/environments/environment.demo.prod.ts b/frontend/projects/upgrade/src/environments/environment.demo.prod.ts
index 78c4f4ae52..5b682a73fd 100755
--- a/frontend/projects/upgrade/src/environments/environment.demo.prod.ts
+++ b/frontend/projects/upgrade/src/environments/environment.demo.prod.ts
@@ -11,6 +11,7 @@ export const environment = {
pollingInterval: 10 * 1000,
pollingLimit: 600,
withinSubjectExperimentSupportToggle: false,
+ metricAnalyticsExperimentDisplayToggle: false,
api: {
getAllExperiments: '/experiments/paginated',
createNewExperiments: '/experiments',
diff --git a/frontend/projects/upgrade/src/environments/environment.prod.ts b/frontend/projects/upgrade/src/environments/environment.prod.ts
index a6fb6a025d..8723794278 100755
--- a/frontend/projects/upgrade/src/environments/environment.prod.ts
+++ b/frontend/projects/upgrade/src/environments/environment.prod.ts
@@ -11,6 +11,7 @@ export const environment = {
pollingInterval: 10 * 1000,
pollingLimit: 600,
withinSubjectExperimentSupportToggle: false,
+ metricAnalyticsExperimentDisplayToggle: false,
api: {
getAllExperiments: '/experiments/paginated',
createNewExperiments: '/experiments',
diff --git a/frontend/projects/upgrade/src/environments/environment.staging.ts b/frontend/projects/upgrade/src/environments/environment.staging.ts
index 0dd7d54d7d..23b63952cd 100644
--- a/frontend/projects/upgrade/src/environments/environment.staging.ts
+++ b/frontend/projects/upgrade/src/environments/environment.staging.ts
@@ -11,6 +11,7 @@ export const environment = {
pollingInterval: 10 * 1000,
pollingLimit: 600,
withinSubjectExperimentSupportToggle: false,
+ metricAnalyticsExperimentDisplayToggle: false,
api: {
getAllExperiments: '/experiments/paginated',
createNewExperiments: '/experiments',
diff --git a/frontend/projects/upgrade/src/environments/environment.ts b/frontend/projects/upgrade/src/environments/environment.ts
index f41b1b5503..fc4bc2193e 100755
--- a/frontend/projects/upgrade/src/environments/environment.ts
+++ b/frontend/projects/upgrade/src/environments/environment.ts
@@ -16,6 +16,7 @@ export const environment = {
pollingInterval: 10 * 1000,
pollingLimit: 600,
withinSubjectExperimentSupportToggle: false,
+ metricAnalyticsExperimentDisplayToggle: false,
api: {
getAllExperiments: '/experiments/paginated',
createNewExperiments: '/experiments',
diff --git a/package-lock.json b/package-lock.json
index d430e36fc1..367cf40baa 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "UpGrade",
- "version": "5.1.15",
+ "version": "5.1.16",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "UpGrade",
- "version": "5.1.15",
+ "version": "5.1.16",
"license": "ISC",
"devDependencies": {
"@angular-eslint/eslint-plugin": "^14.1.2",
diff --git a/package.json b/package.json
index 544d54e4b3..b44483b9e8 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "UpGrade",
- "version": "5.1.15",
+ "version": "5.1.16",
"description": "This is a combined repository for UpGrade, an open-source platform to support large-scale A/B testing in educational applications. Learn more at www.upgradeplatform.org",
"main": "index.js",
"devDependencies": {
diff --git a/types/package-lock.json b/types/package-lock.json
index 683c96e92b..cf7fa2badb 100644
--- a/types/package-lock.json
+++ b/types/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "upgrade_types",
- "version": "5.1.15",
+ "version": "5.1.16",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "upgrade_types",
- "version": "5.1.15",
+ "version": "5.1.16",
"license": "ISC",
"devDependencies": {
"eslint": "^8.27.0",
diff --git a/types/package.json b/types/package.json
index 6afd04b460..563233b324 100644
--- a/types/package.json
+++ b/types/package.json
@@ -1,6 +1,6 @@
{
"name": "upgrade_types",
- "version": "5.1.15",
+ "version": "5.1.16",
"description": "",
"main": "src/index.ts",
"types": "src/index.ts",