fix(aihr): clarify pilot identity metric
This commit is contained in:
@@ -4,7 +4,7 @@ const REQUIRED_METRICS = [
|
||||
'data_scope',
|
||||
'scenario_count',
|
||||
'scenario_count_target',
|
||||
'formal_org_login_count',
|
||||
'formal_org_identity_count',
|
||||
'formal_pilot_people_count',
|
||||
'formal_pilot_people_target',
|
||||
'formal_pilot_project_count',
|
||||
@@ -38,7 +38,7 @@ const REQUIRED_METRICS = [
|
||||
const INTEGER_METRICS = [
|
||||
'scenario_count',
|
||||
'scenario_count_target',
|
||||
'formal_org_login_count',
|
||||
'formal_org_identity_count',
|
||||
'formal_pilot_people_count',
|
||||
'formal_pilot_people_target',
|
||||
'formal_pilot_project_count',
|
||||
@@ -241,12 +241,12 @@ export function verifyPilotExportContract({ csv, startDate, endDate, contentDisp
|
||||
const completionTotal = integerMetric(metrics, 'completion_people_total');
|
||||
const completedPeople = integerMetric(metrics, 'completion_people_count');
|
||||
const projects = integerMetric(metrics, 'formal_pilot_project_count');
|
||||
const orgLogin = integerMetric(metrics, 'formal_org_login_count');
|
||||
const orgIdentityCount = integerMetric(metrics, 'formal_org_identity_count');
|
||||
if (completionTotal !== formalPeople) {
|
||||
fail(`completion_people_total ${completionTotal} does not match formal_pilot_people_count ${formalPeople}`);
|
||||
}
|
||||
if (completedPeople > completionTotal) fail('completion_people_count exceeds completion_people_total');
|
||||
const scopeReady = orgLogin >= 20 && formalPeople >= 20 && projects >= 1 && projects <= 2;
|
||||
const scopeReady = orgIdentityCount >= 20 && formalPeople >= 20 && projects >= 1 && projects <= 2;
|
||||
expectMetric(metrics, 'formal_pilot_scope_ready', String(scopeReady));
|
||||
expectMetric(metrics, 'completion_rate', expectedPercentage(completedPeople, completionTotal));
|
||||
const completionReady = scopeReady && completedPeople * 100 >= completionTotal * 80;
|
||||
|
||||
Reference in New Issue
Block a user