Commit 39a11076 by Nilu

Fix : HT004 - Dial Graph - Seems to always be amber

However, at least for now, we could make the Culture Fit cut offs even easier, as follows:

70% and above, Green (per the note below which is a quote from the legacy Culture Fit report)
50% to 69.99.%, Amber
Below 50%, Red

Requirements is pretty brutal:

If > 0 Essential requirements are 'false'/wrong, then the dial color goes Red
Beyond that, Requirements can be roughly aligned with typical test scoring (given the weighting of Desirable, Highly Desirable, Essential).

80% and above, Green
60% to 79.99, Amber
Below 50%, Red
parent 04526e0f
......@@ -348,6 +348,33 @@ public class JobApplication extends BaseJobApplication
return getRequirementFit() != null ? (Long) getRequirementFit().get(null) : 0;
}
public String getCultureFitColor()
{
long score = getCultureFitScore();
return score >= 70 ? "green" : (score >= 50 ? "yellow" : "red-b");
}
public String getRequirementFitColor()
{
long score = getRequirementFitScore();
Filter filter = AssessmentCriteria.SearchByAll().andImportance(new EqualsFilter<>(Importance.ESSENTIAL));
Collection<AssessmentCriteria> essentialRequirements = CollectionFilter.filter(getJob().getAssessmentCriteriasSet(), filter);
if(essentialRequirements.size() > 0)
{
Filter negativeFilter = AssessmentCriteriaAnswer.SearchByAll().andAnswer(new EqualsFilter<>(Boolean.FALSE));
if(CollectionFilter.filter(getRequirementAnswersByImportance().getValuesForKey(Importance.ESSENTIAL), negativeFilter).size() > 0)
{
return "red-b";
}
}
return score >= 80 ? "green" : (score >= 60 ? "yellow" : "red-b");
}
//This will return relative percentage considering topper as 100%
public Double getRoleFitPercentage()
{
......
......@@ -171,7 +171,7 @@
</div>
<div class="<%= job.getIncludeAssessmentCriteria()==Boolean.TRUE ? "col-sm-4" : "col-sm-6" %> col-xs-12 text-center thr-block culture-fit" href="#2a" data-toggle="tab" id="progress2" onClick="tabToggle('#tab2', '.culture-fit')">
<label class="progress-label">culture fit</label>
<div class="percent-green fixed-width">
<div class="<%= "percent-" + jobApplication.getCultureFitColor() + " fixed-width" %>">
<p style="display:none;"><oneit:toString value="<%= jobApplication.getCultureFitScore() %>" mode="TwoDPDouble" /></p>
</div>
<div class="row four-label">
......@@ -221,7 +221,7 @@
%>
<div class="col-sm-4 col-xs-12 text-center thr-block requirement-fit" href="#3a" data-toggle="tab" id="progress3" onClick="tabToggle('#tab3','.requirement-fit')">
<label class="progress-label">requirements</label>
<div class="percent-yellow fixed-width">
<div class="<%= "percent-" + jobApplication.getRequirementFitColor() + " fixed-width" %>">
<p style="display:none;"><oneit:toString value="<%= jobApplication.getRequirementFitScore() %>" mode="TwoDPDouble" /></p>
</div>
<div class="row four-label">
......
Markdown is supported
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