Skip to content

Commit 29ee949

Browse files
authored
Merge branch 'dev' into fix/local-deploy
2 parents 0398167 + c38ce83 commit 29ee949

File tree

8 files changed

+605
-29
lines changed

8 files changed

+605
-29
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ To be able to change and test `taas-es-processor` locally you can follow the nex
234234
| `npm run cov` | Code Coverage Report. |
235235
| `npm run migrate` | Run any migration files which haven't run yet. |
236236
| `npm run migrate:undo` | Revert most recent migration. |
237-
| `npm run demo-payment-scheduler` | Create 1000 Work Periods Payment records in with status "scheduled" and various "amount" |
237+
| `npm run demo-payment-scheduler` | Create 1000 Work Periods Payment records in with status "scheduled" and various "amount" |
238+
| `npm run emsi-mapping` | mapping EMSI tags to topcoder skills |
238239
239240
## Import and Export data
240241
@@ -348,3 +349,8 @@ When we add, update or delete models and/or endpoints we have to make sure that
348349
- **DB Migration**
349350
- If there are any updates in DB schemas, create a DB migration script inside `migrations` folder which would make any necessary updates to the DB schema.
350351
- Test, that when we migrate DB from the previous state using `npm run migrate`, we get exactly the same DB schema as if we create DB from scratch using command `npm run init-db force`.
352+
353+
## EMSI mapping
354+
mapping EMSI tags to topcoder skills
355+
Run `npm run emsi-mapping` to create the mapping file
356+
It will take about 15 minutes to create the mapping file `script/emsi-mapping/emsi-skils-mapping.js`

config/default.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,5 +214,17 @@ module.exports = {
214214
FIX_DELAY_STEP_ASSIGN_MEMBER: parseInt(process.env.PAYMENT_PROCESSING_FIX_DELAY_STEP_ASSIGN_MEMBER || process.env.PAYMENT_PROCESSING_FIX_DELAY_STEP || 500),
215215
// the fix delay after step of activate challenge, unit: ms
216216
FIX_DELAY_STEP_ACTIVATE_CHALLENGE: parseInt(process.env.PAYMENT_PROCESSING_FIX_DELAY_STEP_ACTIVATE_CHALLENGE || process.env.PAYMENT_PROCESSING_FIX_DELAY_STEP || 500)
217+
},
218+
// if a job reach this critier, system will automatically withdrawn other job applications.
219+
JOBS_HOUR_PER_WEEK: 20,
220+
// the mapping includes the status transformation when auto-withdrawn feature is performed on job candidates.
221+
WITHDRAWN_STATUS_CHANGE_MAPPING: {
222+
applied: 'withdrawn-prescreen',
223+
'skills-test': 'withdrawn-prescreen',
224+
'phone-screen': 'withdrawn-prescreen',
225+
open: 'withdrawn',
226+
interview: 'withdrawn',
227+
selected: 'withdrawn',
228+
offered: 'withdrawn'
217229
}
218230
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"init-db": "node src/init-db.js",
1212
"create-index": "node scripts/es/createIndex.js",
1313
"delete-index": "node scripts/es/deleteIndex.js",
14+
"emsi-mapping": "node scripts/emsi-mapping/index.js",
1415
"index:all": "node scripts/es/reIndexAll.js",
1516
"index:jobs": "node scripts/es/reIndexJobs.js",
1617
"index:job-candidates": "node scripts/es/reIndexJobCandidates.js",
@@ -87,4 +88,4 @@
8788
"test/unit/**"
8889
]
8990
}
90-
}
91+
}

0 commit comments

Comments
 (0)