Skip to content

Commit 9761368

Browse files
Merge pull request #45 from topcoder-platform/revert-44-feature/interview-scheduler
Revert "Feature/interview scheduler"
2 parents e10f939 + 4a6b647 commit 9761368

File tree

8 files changed

+1
-183
lines changed

8 files changed

+1
-183
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ The following parameters can be set in config files or in env variables:
3333
- `topics.TAAS_WORK_PERIOD_CREATE_TOPIC`: the create work period entity Kafka message topic
3434
- `topics.TAAS_WORK_PERIOD_UPDATE_TOPIC`: the update work period entity Kafka message topic
3535
- `topics.TAAS_WORK_PERIOD_DELETE_TOPIC`: the delete work period entity Kafka message topic
36-
- `topics.TAAS_INTERVIEW_REQUEST_TOPIC`: the request interview entity Kafka message topic
37-
- `topics.TAAS_INTERVIEW_UPDATE_TOPIC`: the update interview entity Kafka message topic
3836
- `topics.TAAS_WORK_PERIOD_PAYMENT_CREATE_TOPIC`: the create work period payment entity Kafka message topic
3937
- `topics.TAAS_WORK_PERIOD_PAYMENT_UPDATE_TOPIC`: the update work period payment entity Kafka message topic
4038
- `esConfig.HOST`: Elasticsearch host

config/default.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ module.exports = {
3232
TAAS_WORK_PERIOD_CREATE_TOPIC: process.env.TAAS_WORK_PERIOD_CREATE_TOPIC || 'taas.workperiod.create',
3333
TAAS_WORK_PERIOD_UPDATE_TOPIC: process.env.TAAS_WORK_PERIOD_UPDATE_TOPIC || 'taas.workperiod.update',
3434
TAAS_WORK_PERIOD_DELETE_TOPIC: process.env.TAAS_WORK_PERIOD_DELETE_TOPIC || 'taas.workperiod.delete',
35-
// topics for interview service
36-
TAAS_INTERVIEW_REQUEST_TOPIC: process.env.TAAS_INTERVIEW_REQUEST_TOPIC || 'taas.interview.requested',
37-
TAAS_INTERVIEW_UPDATE_TOPIC: process.env.TAAS_INTERVIEW_UPDATE_TOPIC || 'taas.interview.update',
3835
// topics for work period payment service
3936
TAAS_WORK_PERIOD_PAYMENT_CREATE_TOPIC: process.env.TAAS_WORK_PERIOD_PAYMENT_CREATE_TOPIC || 'taas.workperiodpayment.create',
4037
TAAS_WORK_PERIOD_PAYMENT_UPDATE_TOPIC: process.env.TAAS_WORK_PERIOD_PAYMENT_UPDATE_TOPIC || 'taas.workperiodpayment.update'

local/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ services:
1212
- "9092:9092"
1313
environment:
1414
KAFKA_ADVERTISED_HOST_NAME: localhost
15-
KAFKA_CREATE_TOPICS: "taas.job.create:1:1,taas.jobcandidate.create:1:1,taas.resourcebooking.create:1:1,taas.interview.requested:1:1,taas.interview.update:1:1,taas.workperiod.create:1:1,taas.workperiodpayment.create:1:1,taas.job.update:1:1,taas.jobcandidate.update:1:1,taas.resourcebooking.update:1:1,taas.workperiod.update:1:1,taas.workperiodpayment.update:1:1,taas.job.delete:1:1,taas.jobcandidate.delete:1:1,taas.resourcebooking.delete:1:1,taas.workperiod.delete:1:1"
15+
KAFKA_CREATE_TOPICS: "taas.job.create:1:1,taas.jobcandidate.create:1:1,taas.resourcebooking.create:1:1,taas.workperiod.create:1:1,taas.workperiodpayment.create:1:1,taas.job.update:1:1,taas.jobcandidate.update:1:1,taas.resourcebooking.update:1:1,taas.workperiod.update:1:1,taas.workperiodpayment.update:1:1,taas.job.delete:1:1,taas.jobcandidate.delete:1:1,taas.resourcebooking.delete:1:1,taas.workperiod.delete:1:1"
1616
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
1717
esearch:
1818
image: elasticsearch:7.7.1

src/app.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ const JobProcessorService = require('./services/JobProcessorService')
1313
const JobCandidateProcessorService = require('./services/JobCandidateProcessorService')
1414
const ResourceBookingProcessorService = require('./services/ResourceBookingProcessorService')
1515
const WorkPeriodProcessorService = require('./services/WorkPeriodProcessorService')
16-
const InterviewProcessorService = require('./services/InterviewProcessorService')
1716
const WorkPeriodPaymentProcessorService = require('./services/WorkPeriodPaymentProcessorService')
1817
const Mutex = require('async-mutex').Mutex
1918
const events = require('events')
@@ -46,9 +45,6 @@ const topicServiceMapping = {
4645
[config.topics.TAAS_WORK_PERIOD_CREATE_TOPIC]: WorkPeriodProcessorService.processCreate,
4746
[config.topics.TAAS_WORK_PERIOD_UPDATE_TOPIC]: WorkPeriodProcessorService.processUpdate,
4847
[config.topics.TAAS_WORK_PERIOD_DELETE_TOPIC]: WorkPeriodProcessorService.processDelete,
49-
// interview
50-
[config.topics.TAAS_INTERVIEW_REQUEST_TOPIC]: InterviewProcessorService.processRequestInterview,
51-
[config.topics.TAAS_INTERVIEW_UPDATE_TOPIC]: InterviewProcessorService.processUpdateInterview,
5248
// work period payment
5349
[config.topics.TAAS_WORK_PERIOD_PAYMENT_CREATE_TOPIC]: WorkPeriodPaymentProcessorService.processCreate,
5450
[config.topics.TAAS_WORK_PERIOD_PAYMENT_UPDATE_TOPIC]: WorkPeriodPaymentProcessorService.processUpdate

src/bootstrap.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
const Joi = require('@hapi/joi')
22
const config = require('config')
3-
const _ = require('lodash')
4-
const { Interview } = require('../src/common/constants')
53
const constants = require('./common/constants')
64

7-
const allowedInterviewStatuses = _.values(Interview.Status)
8-
95
global.Promise = require('bluebird')
106

117
Joi.rateType = () => Joi.string().valid('hourly', 'daily', 'weekly', 'monthly')
@@ -15,7 +11,6 @@ Joi.jobCandidateStatus = () => Joi.string().valid('open', 'selected', 'shortlist
1511
Joi.workload = () => Joi.string().valid('full-time', 'fractional')
1612
Joi.title = () => Joi.string().max(128)
1713
Joi.paymentStatus = () => Joi.string().valid('pending', 'partially-completed', 'completed', 'cancelled')
18-
Joi.interviewStatus = () => Joi.string().valid(...allowedInterviewStatuses)
1914
Joi.workPeriodPaymentStatus = () => Joi.string().valid('completed', 'cancelled')
2015
// Empty string is not allowed by Joi by default and must be enabled with allow('').
2116
// See https://joi.dev/api/?v=17.3.0#string fro details why it's like this.

src/common/constants.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,5 @@ module.exports = {
1616
JobCandidateCreate: 'jobcandidate:create',
1717
JobCandidateUpdate: 'jobcandidate:update'
1818
}
19-
},
20-
Interview: {
21-
Status: {
22-
Scheduling: 'Scheduling',
23-
Scheduled: 'Scheduled',
24-
RequestedForReschedule: 'Requested for reschedule',
25-
Rescheduled: 'Rescheduled',
26-
Completed: 'Completed',
27-
Cancelled: 'Cancelled'
28-
}
2919
}
3020
}

src/scripts/createIndex.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -46,24 +46,6 @@ async function createIndex () {
4646
status: { type: 'keyword' },
4747
externalId: { type: 'keyword' },
4848
resume: { type: 'text' },
49-
interviews: {
50-
type: 'nested',
51-
properties: {
52-
id: { type: 'keyword' },
53-
jobCandidateId: { type: 'keyword' },
54-
googleCalendarId: { type: 'keyword' },
55-
startTimestamp: { type: 'date' },
56-
attendeesList: { type: 'keyword' },
57-
customMessage: { type: 'text' },
58-
xaiTemplate: { type: 'keyword' },
59-
round: { type: 'integer' },
60-
status: { type: 'keyword' },
61-
createdAt: { type: 'date' },
62-
createdBy: { type: 'keyword' },
63-
updatedAt: { type: 'date' },
64-
updatedBy: { type: 'keyword' }
65-
}
66-
},
6749
createdAt: { type: 'date' },
6850
createdBy: { type: 'keyword' },
6951
updatedAt: { type: 'date' },

src/services/InterviewProcessorService.js

Lines changed: 0 additions & 140 deletions
This file was deleted.

0 commit comments

Comments
 (0)