Skip to content

Commit 9bbcac2

Browse files
authored
Merge pull request #88 from topcoder-platform/dev
[PROD] Next Release
2 parents 1313644 + abe3d05 commit 9bbcac2

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

src/bootstrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ global.Promise = require('bluebird')
1212
Joi.rateType = () => Joi.string().valid('hourly', 'daily', 'weekly', 'monthly', 'annual')
1313
Joi.jobStatus = () => Joi.string().valid('sourcing', 'in-review', 'assigned', 'closed', 'cancelled')
1414
Joi.resourceBookingStatus = () => Joi.string().valid('placed', 'closed', 'cancelled')
15-
Joi.jobCandidateStatus = () => Joi.string().valid('open', 'placed', 'selected', 'client rejected - screening', 'client rejected - interview', 'rejected - other', 'cancelled', 'interview', 'topcoder-rejected', 'applied', 'rejected-pre-screen', 'skills-test', 'skills-test', 'phone-screen', 'job-closed', 'offered')
15+
Joi.jobCandidateStatus = () => Joi.string().valid('open', 'placed', 'selected', 'client rejected - screening', 'client rejected - interview', 'rejected - other', 'cancelled', 'interview', 'topcoder-rejected', 'applied', 'rejected-pre-screen', 'skills-test', 'skills-test', 'phone-screen', 'job-closed', 'offered', 'withdrawn', 'withdrawn-prescreen')
1616
Joi.workload = () => Joi.string().valid('full-time', 'fractional')
1717
Joi.title = () => Joi.string().max(128)
1818
Joi.paymentStatus = () => Joi.string().valid('pending', 'in-progress', 'partially-completed', 'completed', 'failed', 'no-days')

src/services/JobCandidateProcessorService.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async function updateCandidateStatus ({ type, payload, previousData }) {
2626
return
2727
}
2828
// if (!['rejected', 'shortlist',].includes(payload.status)) {
29-
if (!['client rejected - screening', 'client rejected - interview', 'interview', 'selected'].includes(payload.status)) {
29+
if (!['client rejected - screening', 'client rejected - interview', 'interview', 'selected', 'withdrawn', 'withdrawn-prescreen'].includes(payload.status)) {
3030
localLogger.debug({ context: 'updateCandidateStatus', message: `not interested status: ${payload.status}` })
3131
return
3232
}
@@ -104,8 +104,8 @@ processCreate.schema = {
104104
updatedBy: Joi.string().uuid().allow(null),
105105
status: Joi.jobCandidateStatus().required(),
106106
externalId: Joi.string().allow(null),
107-
resume: Joi.string().uri().allow(null).allow(""),
108-
remark: Joi.stringAllowEmpty().allow(null),
107+
resume: Joi.string().uri().allow(null).allow(''),
108+
remark: Joi.stringAllowEmpty().allow(null)
109109
})
110110
.required()
111111
})

src/services/JobProcessorService.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ processCreate.schema = {
6565
topic: Joi.string().required(),
6666
originator: Joi.string().required(),
6767
timestamp: Joi.date().required(),
68-
"mime-type": Joi.string().required(),
68+
'mime-type': Joi.string().required(),
6969
payload: Joi.object()
7070
.keys({
7171
id: Joi.string().uuid().required(),
@@ -95,13 +95,13 @@ processCreate.schema = {
9595
currency: Joi.stringAllowEmpty().allow(null),
9696
roleIds: Joi.array()
9797
.items(Joi.string().uuid().required())
98-
.allow(null),
98+
.allow(null)
9999
})
100-
.required(),
100+
.required()
101101
})
102102
.required(),
103-
transactionId: Joi.string().required(),
104-
};
103+
transactionId: Joi.string().required()
104+
}
105105

106106
/**
107107
* Process update entity message

src/services/RoleProcessorService.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,13 @@ processCreate.schema = {
4242
global: Joi.smallint().required(),
4343
inCountry: Joi.smallint().required(),
4444
offShore: Joi.smallint().required(),
45+
niche: Joi.smallint().allow(null),
4546
rate30Global: Joi.smallint().allow(null),
47+
rate30Niche: Joi.smallint().allow(null),
4648
rate30InCountry: Joi.smallint().allow(null),
4749
rate30OffShore: Joi.smallint().allow(null),
4850
rate20Global: Joi.smallint().allow(null),
51+
rate20Niche: Joi.smallint().allow(null),
4952
rate20InCountry: Joi.smallint().allow(null),
5053
rate20OffShore: Joi.smallint().allow(null)
5154
}).required()).required(),

0 commit comments

Comments
 (0)