Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Usman
PERFORMA_REPLICA
Commits
cd9e0ec7
Commit
cd9e0ec7
authored
Sep 18, 2017
by
Harsh Shah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Client migration job update issue fixes, AnalysisEngine - color code for Role Fit details
parent
eb72162a
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
18 additions
and
14 deletions
+18
-14
JobApplication.java
cmsWebApp/src/performa/orm/JobApplication.java
+2
-2
AnalysisEngine.java
cmsWebApp/src/performa/utils/AnalysisEngine.java
+6
-4
MenuItemDisableTransformFactory.java
...p/src/performa/utils/MenuItemDisableTransformFactory.java
+1
-2
htmlheader.jsp
cmsWebApp/webroot/extensions/adminportal/inc/htmlheader.jsp
+1
-1
view_application_tab_applicant.jsp
...nsions/adminportal/inc/view_application_tab_applicant.jsp
+3
-3
20170901_UpdateUserStructure.xml
...ons/adminportal/upgrades/20170901_UpdateUserStructure.xml
+1
-0
20170902_UpdateCompanyAddedBy.sql
...ns/adminportal/upgrades/20170902_UpdateCompanyAddedBy.sql
+2
-0
view_applicants_shortlist_grid.jsp
...extensions/adminportal/view_applicants_shortlist_grid.jsp
+2
-2
No files found.
cmsWebApp/src/performa/orm/JobApplication.java
View file @
cd9e0ec7
...
...
@@ -307,7 +307,7 @@ public class JobApplication extends BaseJobApplication
public
Double
getRoleFitScore
()
{
return
getRoleFit
()
!=
null
?
(
Double
)
getRoleFit
().
get
(
null
)
:
0
d
;
return
getRoleFit
()
!=
null
&&
getRoleFit
().
get
(
null
)
!=
null
?
((
Tuple
.
T2
<
Double
,
ColorCode
>)
getRoleFit
().
get
(
null
)).
get0
(
)
:
0
d
;
}
public
Long
getCultureFitScore
()
...
...
@@ -325,7 +325,7 @@ public class JobApplication extends BaseJobApplication
{
JobApplication
jobTopper
=
getJob
()
!=
null
?
getJob
().
getTopper
()
:
null
;
Double
myScore
=
getRoleFitScore
();
Double
topScore
=
jobTopper
.
getRoleFitScore
()
;
Double
topScore
=
jobTopper
!=
null
?
jobTopper
.
getRoleFitScore
()
:
null
;
return
NullArith
.
round
(
NullArith
.
divide
(
NullArith
.
multiply
(
myScore
,
100
),
topScore
),
2
);
}
...
...
cmsWebApp/src/performa/utils/AnalysisEngine.java
View file @
cd9e0ec7
...
...
@@ -400,12 +400,12 @@ public class AnalysisEngine
return
roleFitMap
;
}
public
static
Map
<
FactorClass
,
Double
>
getRoleFitSuitability
(
Candidate
candidate
,
Level
level
)
public
static
Map
<
FactorClass
,
Tuple
.
T2
<
Double
,
ColorCode
>
>
getRoleFitSuitability
(
Candidate
candidate
,
Level
level
)
{
LogMgr
.
log
(
JobApplication
.
LOG
,
LogLevel
.
PROCESSING1
,
"AnalysisEngine --> getRoleFitSuitability called for candidate "
,
candidate
,
" Level "
,
level
);
TestAnalysis
testAnalysis
=
candidate
.
getTestAnalysisFor
(
level
);
Map
<
FactorClass
,
Double
>
scoreMap
=
new
HashMap
();
Map
<
FactorClass
,
Tuple
.
T2
<
Double
,
ColorCode
>>
scoreMap
=
new
HashMap
();
if
(
testAnalysis
!=
null
&&
testAnalysis
.
getCandidateClassScoresCount
()
>
0
)
{
...
...
@@ -416,14 +416,16 @@ public class AnalysisEngine
CandidateClassScore
candidateClassScore
=
testAnalysis
.
pipelineTestAnalysis
().
toCandidateClassScores
(
candidateClassScoreFilter
).
val
();
ClassNormalisation
classNormalisation
=
level
.
getClassNormalisationFor
(
factorClass
);
Double
score
=
0
d
;
ColorCode
colorCode
=
null
;
if
(
candidateClassScore
!=
null
&&
classNormalisation
!=
null
&&
NullArith
.
greaterThan
(
classNormalisation
.
getWghtStddevScore
(),
0
d
))
{
score
=
NullArith
.
round
(((
10
*
((
candidateClassScore
.
getWghtdClassScore
()
-
classNormalisation
.
getWghtMeanScore
())
/
classNormalisation
.
getWghtStddevScore
()))
+
50
),
1
);
colorCode
=
candidateClassScore
.
getColorCode
();
}
scoreMap
.
put
(
factorClass
,
score
);
scoreMap
.
put
(
factorClass
,
new
Tuple
.
T2
(
score
,
colorCode
)
);
}
scoreMap
.
put
(
null
,
getSuitabilityScore
(
testAnalysis
)
.
get0
()
);
scoreMap
.
put
(
null
,
getSuitabilityScore
(
testAnalysis
));
}
LogMgr
.
log
(
JobApplication
.
LOG
,
LogLevel
.
PROCESSING1
,
"AnalysisEngine --> getRoleFitSuitability completed for candidate "
,
candidate
,
" Level "
,
level
);
...
...
cmsWebApp/src/performa/utils/MenuItemDisableTransformFactory.java
View file @
cd9e0ec7
...
...
@@ -42,8 +42,7 @@ public class MenuItemDisableTransformFactory implements ContentTransformFactory,
public
Object
transform
(
Object
original
)
{
if
((
Boolean
)
article
.
getAdditionalAttribute
(
"Allow Disable"
,
Boolean
.
FALSE
)
&&
this
.
company
!=
null
&&
this
.
company
.
getHasClientSupport
()!=
Boolean
.
TRUE
)
&&
this
.
company
!=
null
&&
!
this
.
company
.
showHasClientSupport
())
{
return
String
.
valueOf
(
original
);
}
...
...
cmsWebApp/webroot/extensions/adminportal/inc/htmlheader.jsp
View file @
cd9e0ec7
...
...
@@ -57,7 +57,7 @@
<div
class=
"search-bar"
>
<div
class=
"inset-shadow"
></div>
<img
src=
"images/search-icon.svg"
/>
<input
type=
"text"
class=
"form-control"
placeholder=
"<%= company.
get
HasClientSupport() ? "
Search
for
job
,
candidate
or
client
"
:
"
Search
for
a
job
or
candidate
"%
>
"/>
<input
type=
"text"
class=
"form-control"
placeholder=
"<%= company.
show
HasClientSupport() ? "
Search
for
job
,
candidate
or
client
"
:
"
Search
for
a
job
or
candidate
"%
>
"/>
</div>
<div
class=
"fl-right"
>
<div
class=
"notification-bar"
>
...
...
cmsWebApp/webroot/extensions/adminportal/inc/view_application_tab_applicant.jsp
View file @
cd9e0ec7
...
...
@@ -14,7 +14,7 @@
<oneit:dynIncluded>
<%
Map<FactorClass,
Double> roleScoreMap = (Map<FactorClass, Double
>)jobApplication.getRoleFit();
Map<FactorClass,
Tuple.T2<Double, ColorCode>> roleScoreMap = (Map<FactorClass, Tuple.T2<Double, ColorCode>
>)jobApplication.getRoleFit();
%>
<script>
function tabToggle(tab) {
...
...
@@ -116,14 +116,14 @@
<%
for(FactorClass factorClass : jobApplication.getSortedFactorClasses())
{
if(roleScoreMap.get(factorClass) != null && roleScoreMap.get(factorClass) > 0d)
if(roleScoreMap.get(factorClass) != null && roleScoreMap.get(factorClass)
.get0()
> 0d)
{
Map<FactorLevelLink, Map> factorDetails = AnalysisEngine.getFactorScoreDetails(candidate, job.getLevel(), factorClass);
%>
<div class="main-pro-bar">
<div class="pro-bar">
<span class="appli-label"><oneit:toString value="<%= factorClass %>" mode="EscapeHTML"/></span>
<span class="appli-percen"><oneit:toString value="<%= roleScoreMap.get(factorClass)
%>"
mode="TwoDPDouble"/></span>
<span class="appli-percen"><oneit:toString value="<%= roleScoreMap.get(factorClass)
.get0() %>"
mode="TwoDPDouble"/></span>
<span class="expand-box">
<span class="hasarrow"><img src="images/select-down-arrow.svg"></span>
</span>
...
...
cmsWebApp/webroot/extensions/adminportal/upgrades/20170901_UpdateUserStructure.xml
View file @
cd9e0ec7
...
...
@@ -23,6 +23,7 @@
<value
name=
'object_created_date'
class=
"oneit.sql.transfer.DBTransferer$Timestamp"
/>
<value
name=
'object_type'
factory=
'String'
>
CompanyUser
</value>
<value
name=
'role_type'
factory=
'String'
>
ADMIN
</value>
<value
name=
'is_account_verified'
factory=
'Boolean'
>
true
</value>
<value
name=
'user_id'
factory=
'Participant'
class=
"oneit.sql.transfer.InsertOperation$QueryColumn"
column=
"user_id"
/>
<value
name=
'company_id'
factory=
'Participant'
class=
"oneit.sql.transfer.DBTransferer$ObjectID"
keyName=
"CompanyID"
/>
</NODE>
...
...
cmsWebApp/webroot/extensions/adminportal/upgrades/20170902_UpdateCompanyAddedBy.sql
View file @
cd9e0ec7
-- @AutoRun
update
tl_company
set
added_by_user_id
=
(
select
object_id
from
oneit_sec_user_extension
ext
where
ext
.
user_id
=
added_by_user_id
);
update
tl_job
set
company_user_id
=
(
select
object_id
from
oneit_sec_user_extension
ext
where
ext
.
user_id
=
secuser_id
);
cmsWebApp/webroot/extensions/adminportal/view_applicants_shortlist_grid.jsp
View file @
cd9e0ec7
...
...
@@ -114,7 +114,7 @@
Candidate candidate = jobApplication.getCandidate();
String appID = "app-id-" + jobApplication.getID().toString();
Map<FactorClass,
Double> roleScoreMap = (Map<FactorClass, Double
>)jobApplication.getRoleFit();
Map<FactorClass,
Tuple.T2<Double, ColorCode>> roleScoreMap = (Map<FactorClass, Tuple.T2<Double, ColorCode>
>)jobApplication.getRoleFit();
%>
<div class="<%= "appl-c-box " + (i == 0 ? " cb-one" : "")%> ">
<!--TODO: need to work on the logic. just added to demonstrate that there are 3 different colors for this-->
...
...
@@ -154,7 +154,7 @@
<oneit:toString value="<%= factorClass %>" mode="EscapeHTML"/>
</div>
<div class="detail-no green">
<oneit:toString value="<%= roleScoreMap.get(factorClass)
%>"
mode="TwoDPDouble"/>
<oneit:toString value="<%= roleScoreMap.get(factorClass)
.get0() %>"
mode="TwoDPDouble"/>
</div>
</div>
<%
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment