Unverified Commit e94da3e2 authored by Rajesh Kumaravel's avatar Rajesh Kumaravel Committed by GitHub
Browse files

Merge pull request #8403 from 5Amogh/release-5.0.0.3

Hotfix: Observation with rubric without criteria level report
parents 8c4c9854 65fe3eb7
release-5.0.0.3 Tags unavailable
1 merge request!1Feature/inquiry server validation
Showing with 20 additions and 16 deletions
+20 -16
......@@ -55,6 +55,7 @@ export let mockData = {
{
_id: "5f34ec17585244939f89f90d",
isRubricDriven: true,
criteriaLevelReport:true,
externalId:
"cbd074fa-dd11-11ea-a3bf-000d3af02677-OBSERVATION-TEMPLATE-1597303831612",
name: "MH01-Mantra4Change-APSWREIS School Leader Feedback",
......@@ -66,6 +67,7 @@ export let mockData = {
_id: "5fbb75537380505718640436",
type: "improvementproject",
isRubricDriven: false,
criteriaLevelReport:false,
subType: "",
externalId: "7146aa30-2d67-11eb-b70e-55ade5205c81",
name: "Health Awareness Project",
......@@ -75,6 +77,7 @@ export let mockData = {
_id: "5fbb75537380505718640437",
type: "improvementproject",
isRubricDriven: false,
criteriaLevelReport:false,
subType: "",
externalId: "71471f60-2d67-11eb-b70e-55ade5205c81",
name: "Safe School Project",
......@@ -84,6 +87,7 @@ export let mockData = {
_id: "5fbb75537380505718640438",
type: "survey",
isRubricDriven: false,
criteriaLevelReport:false,
subType: "",
externalId: "71471f60-2d67-11eb-b70e-55ade5205c82",
name: "Safe School survey",
......@@ -105,20 +109,6 @@ export let mockData = {
datasetId: "ml-improvementproject-status-report",
roles: ["PM"],
},
],
observation: [
{
name: "Question Report",
encrypt: true,
datasetId: "ml-observation-question-report",
roles: ["PM"],
},
{
name: "Status Report",
encrypt: false,
datasetId: "ml-observation-status-report",
roles: ["PM"],
},
{
name: "Filtered task detail report",
encrypt: true,
......@@ -145,7 +135,21 @@ export let mockData = {
defaultValue: 1,
},
],
}
],
observation: [
{
name: "Question Report",
encrypt: true,
datasetId: "ml-observation-question-report",
roles: ["PM"],
},
{
name: "Status Report",
encrypt: false,
datasetId: "ml-observation-status-report",
roles: ["PM"],
}
],
observation_with_rubric: [
{
......
......@@ -291,8 +291,8 @@ export class DatasetsComponent implements OnInit, OnDestroy {
this.reportForm.controls.solution.setValue($event.value);
this.reportForm.controls.programName.setValue(program);
this.displayFilters['Resource'] = [$event?.source?.triggerValue]
if (solution[0].isRubricDriven == true && solution[0].type == 'observation') {
const type = solution[0].type + '_with_rubric';
if (solution[0].isRubricDriven === true && solution[0].type === 'observation') {
const type = solution[0].criteriaLevelReport ? solution[0].type + '_with_rubric' : solution[0].type + '_with_rubric_no_criteria_level_report'
this.getReportTypes(this.programSelected, type);
} else {
this.getReportTypes(this.programSelected, solution[0].type);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment