Skip to content

Work period automation #79

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
eac7ee0
Merge pull request #34 from topcoder-platform/hotfix/patch-1.5.3.1
nkumar-topcoder Apr 9, 2021
9a42597
Add work period payments.
narekcat Apr 9, 2021
977c174
Merge pull request #37 from topcoder-platform/feature/work-periods-au…
maxceem Apr 16, 2021
4c5d45c
Merge pull request #39 from narekcat/feature/work-periods
maxceem Apr 17, 2021
af161b9
Merge branch 'dev' into feature/work-periods
maxceem Apr 17, 2021
e965836
fix: unit test
maxceem Apr 17, 2021
c966138
Final fixes for adding work period payments.
narekcat Apr 18, 2021
cd4ccbc
Merge pull request #41 from narekcat/feature/work-periods
maxceem Apr 19, 2021
c76d6a3
Merge pull request #42 from topcoder-platform/feature/work-periods
nkumar-topcoder Apr 19, 2021
130d37a
part1
xxcxy Apr 21, 2021
47ae415
part2
xxcxy Apr 21, 2021
36fa12d
Merge pull request #43 from xxcxy/feature/interview-scheduler
urwithat Apr 21, 2021
47b825c
Merge branch 'dev' into feature/interview-scheduler
urwithat Apr 21, 2021
e10f939
Merge pull request #44 from topcoder-platform/feature/interview-sched…
urwithat Apr 21, 2021
4a6b647
Revert "Feature/interview scheduler"
nkumar-topcoder Apr 21, 2021
9761368
Merge pull request #45 from topcoder-platform/revert-44-feature/inter…
nkumar-topcoder Apr 21, 2021
6872051
Resource Booking index to not store time, only dates
eisbilir Apr 21, 2021
e7c3c6b
fix comment
eisbilir Apr 21, 2021
012dbc2
feat: add interview scheduler
cagdas001 Apr 22, 2021
96a055c
Merge branch 'dev' of https://github.com/cagdas001/taas-es-processor …
cagdas001 Apr 22, 2021
96ef522
Merge pull request #46 from eisbilir/dev
nkumar-topcoder Apr 22, 2021
2665ac5
Use billing account for payments
imcaizheng Apr 22, 2021
95800c8
Merge pull request #48 from imcaizheng/feature/use-billing-account-fo…
nkumar-topcoder Apr 22, 2021
20a0255
Merge pull request #47 from cagdas001/interview-scheduler2
nikolay83 Apr 22, 2021
1979d3f
Merge pull request #50 from topcoder-platform/dev-wp
nkumar-topcoder Apr 26, 2021
06a2e7c
feat(interview-scheduler): frontend integration
cagdas001 Apr 27, 2021
7a65b4f
Merge pull request #51 from cagdas001/interview-scheduler2
nikolay83 Apr 27, 2021
b586803
Merge pull request #52 from topcoder-platform/interview-scheduler2
urwithat Apr 28, 2021
63236bc
Change the XaiTemplate values
urwithat Apr 28, 2021
505dd11
add interview n client rejected screening status
nkumar-topcoder Apr 29, 2021
1c7564f
add - allow selected status to zap
nkumar-topcoder Apr 29, 2021
90c4b4f
add client rejected - interview for zap
nkumar-topcoder Apr 29, 2021
898d776
Merge pull request #53 from topcoder-platform/dev
urwithat May 3, 2021
d85138d
feat(interview-scheduler): update mapping & validations for the new m…
cagdas001 May 10, 2021
c439d94
Get Resource Bookings together with Work Periods
eisbilir May 10, 2021
2c04596
Merge pull request #54 from cagdas001/dev
urwithat May 11, 2021
d9aff64
Changed xaiId & templateId from UUID to String
urwithat May 11, 2021
151c253
Bug Fix title was GUID
urwithat May 11, 2021
2446ba3
Bug Fix locationDetails was GUID
urwithat May 11, 2021
4fbacc5
Added updatedBy for Interviews
urwithat May 12, 2021
d9e2a2c
Merge pull request #56 from topcoder-platform/dev
urwithat May 17, 2021
715fcb9
Merge pull request #55 from eisbilir/feature/rb-with-wp
maxceem May 17, 2021
9cc0ef1
Merge pull request #57 from topcoder-platform/feature/rb-with-wp
nkumar-topcoder May 17, 2021
9502b1b
change refresh option for WP
eisbilir May 19, 2021
0428f23
Merge pull request #58 from eisbilir/dev
nkumar-topcoder May 19, 2021
0238cac
fix: refresh true
maxceem May 19, 2021
5d43357
chore: add consumer handler debug log
maxceem May 19, 2021
642d41c
Update WorkPeriodProcessorService.js
nkumar-topcoder May 19, 2021
9417170
chore: add log before adding WP to RB
maxceem May 19, 2021
f51bb08
fix: use transactionId when get data from ES
maxceem May 19, 2021
471d097
Revert "fix: refresh true"
maxceem May 20, 2021
960d264
Revert "Merge pull request #58 from eisbilir/dev"
maxceem May 20, 2021
87ede16
fix: revert 'true' to esRefreshOption
maxceem May 20, 2021
0f7fa81
added statuses to the job candidates
sushilshinde May 24, 2021
19c4190
Merge pull request #59 from topcoder-platform/statuses-change
sushilshinde May 24, 2021
c7a47a2
Payments - Batch Endpoints
xxcxy May 26, 2021
5ce9aca
fix: added new 'offered' status
sushilshinde May 27, 2021
1db6efc
Merge pull request #60 from topcoder-platform/statuses-change
sushilshinde May 27, 2021
7370849
api-updates challenge:30186701
May 29, 2021
bfd4d48
Batch Payments - Part 1 - Scheduler
xxcxy May 29, 2021
f4e193d
feat(job-processor): accept `roles` array
cagdas001 May 29, 2021
1836259
Merge pull request #61 from cagdas001/feature/role-intake
nikolay83 May 29, 2021
4b20e8e
fix: resource booking search issues
eisbilir May 30, 2021
97866e2
role endpoint added
eisbilir May 31, 2021
ec14608
Merge pull request #63 from eisbilir/feature/roles-backend-repost
nikolay83 May 31, 2021
5da339c
Merge remote-tracking branch 'upstream/dev' into dev
eisbilir May 31, 2021
4a24d73
Merge pull request #62 from eisbilir/dev
maxceem Jun 1, 2021
cf38c92
Merge branch 'dev' into feature/api-updates
sushilshinde Jun 1, 2021
d8e88a9
Merge pull request #64 from topcoder-platform/feature/api-updates
sushilshinde Jun 1, 2021
5a80f8a
fix: allow null for new fields
sushilshinde Jun 1, 2021
1fcb339
Merge pull request #65 from topcoder-platform/feature/api-updates
sushilshinde Jun 1, 2021
ae9be19
Merge pull request #66 from xxcxy/feature/batch-payments
maxceem Jun 2, 2021
c723de9
Merge branch 'dev' into feature/batch-payments
maxceem Jun 2, 2021
32cf10b
Merge pull request #67 from topcoder-platform/feature/batch-payments
nkumar-topcoder Jun 3, 2021
fc7267f
fix: role index use normalizer
eisbilir Jun 3, 2021
3a7e4a7
action topic and service added
eisbilir Jun 3, 2021
c0cfe81
Merge branch 'dev' of https://github.com/topcoder-platform/taas-es-pr…
xxcxy Jun 5, 2021
1b8e22d
Merge pull request #68 from eisbilir/fix/role-issues-01
nikolay83 Jun 7, 2021
59ec92d
use retry value from payload
eisbilir Jun 7, 2021
4989548
Merge pull request #71 from xxcxy/feature/payment-scheduler
maxceem Jun 8, 2021
3716995
avoid circular dependency
eisbilir Jun 8, 2021
3538258
Merge pull request #69 from eisbilir/feature/new-action-topic
maxceem Jun 9, 2021
b349be1
refactor: improve retry logic
maxceem Jun 9, 2021
b570ba3
docs: update README
maxceem Jun 9, 2021
3bcfe88
Update WorkPeriodProcessorService.js
nkumar-topcoder Jun 9, 2021
ea6c301
Merge pull request #74 from topcoder-platform/feature/topic-bus-key
nkumar-topcoder Jun 9, 2021
8f6931a
Merge pull request #73 from topcoder-platform/feature/retry-action
maxceem Jun 9, 2021
9c43b15
docs: fix README
maxceem Jun 9, 2021
ee27df4
Merge pull request #72 from topcoder-platform/feature/payment-scheduler
maxceem Jun 11, 2021
0e55d65
Include addition param key to Postevent method #329
xxcxy Jun 11, 2021
0f0dabb
fix: 1. allow empty strings, 2. added new ratetype enum 'annual'
sushilshinde Jun 11, 2021
51f2c76
ci: deploying this branch on dev env
sushilshinde Jun 11, 2021
5be4268
Merge pull request #76 from xxcxy/feature/topic-bus-key
maxceem Jun 11, 2021
a7b8c47
docs: improve README
maxceem Jun 11, 2021
40b7758
Merge pull request #77 from topcoder-platform/change-validatations-in…
sushilshinde Jun 11, 2021
baa90e1
Merge branch 'dev' into feature/topic-bus-key
maxceem Jun 11, 2021
20ed3db
fix: lint
maxceem Jun 11, 2021
fe9dd0b
Merge pull request #78 from topcoder-platform/feature/topic-bus-key
maxceem Jun 11, 2021
18b3860
wp-wpp fields update
eisbilir Jun 14, 2021
a8e039a
fix parallelism problem
eisbilir Jun 14, 2021
e1e127d
paymentStatus no-days
eisbilir Jun 14, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ workflows:
only:
- dev
- dev-circleci
- change-validatations-in-job-j

# Production builds are exectuted only on tagged commits to the
# master branch.
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ coverage
.DS_Store
.env
api.env
.eslintrc.y*ml
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12
40 changes: 38 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ The following parameters can be set in config files or in env variables:
- `KAFKA_CLIENT_CERT_KEY`: Kafka connection private key, optional;
if not provided, then SSL connection is not used, direct insecure connection is used;
if provided, it can be either path to private key file or private key content
- `KAFKA_MESSAGE_ORIGINATOR`: The originator value for the kafka messages
- `KAFKA_GROUP_ID`: the Kafka group id
- `topics.KAFKA_ERROR_TOPIC`: the error topic at which bus api will publish any errors
- `topics.TAAS_JOB_CREATE_TOPIC`: the create job entity Kafka message topic
- `topics.TAAS_JOB_UPDATE_TOPIC`: the update job entity Kafka message topic
- `topics.TAAS_JOB_DELETE_TOPIC`: the delete job entity Kafka message topic
Expand All @@ -33,6 +35,18 @@ The following parameters can be set in config files or in env variables:
- `topics.TAAS_WORK_PERIOD_CREATE_TOPIC`: the create work period entity Kafka message topic
- `topics.TAAS_WORK_PERIOD_UPDATE_TOPIC`: the update work period entity Kafka message topic
- `topics.TAAS_WORK_PERIOD_DELETE_TOPIC`: the delete work period entity Kafka message topic
- `topics.TAAS_WORK_PERIOD_PAYMENT_CREATE_TOPIC`: the create work period payment entity Kafka message topic
- `topics.TAAS_WORK_PERIOD_PAYMENT_UPDATE_TOPIC`: the update work period payment entity Kafka message topic
- `topics.TAAS_INTERVIEW_REQUEST_TOPIC`: the request interview entity Kafka message topic
- `topics.TAAS_INTERVIEW_UPDATE_TOPIC`: the update interview entity Kafka message topic
- `topics.TAAS_INTERVIEW_BULK_UPDATE_TOPIC`: the bulk update interview entity Kafka message topic
- `topics.TAAS_ROLE_CREATE_TOPIC`: the create role entity Kafka message topic
- `topics.TAAS_ROLE_UPDATE_TOPIC`: the update role entity Kafka message topic
- `topics.TAAS_ROLE_DELETE_TOPIC`: the delete role entity Kafka message topic
- `topics.TAAS_ACTION_RETRY_TOPIC`: the retry process Kafka message topic
- `MAX_RETRY`: maximum allowed retry count for failed operations for sending `taas.action.retry` message
- `BASE_RETRY_DELAY`: base amount of retry delay (ms) for failed operations
- `BUSAPI_URL`: Topcoder Bus API URL
- `esConfig.HOST`: Elasticsearch host
- `esConfig.AWS_REGION`: The Amazon region to use when using AWS Elasticsearch service
- `esConfig.ELASTICCLOUD.id`: The elastic cloud id, if your elasticsearch instance is hosted on elastic cloud. DO NOT provide a value for ES_HOST if you are using this
Expand All @@ -41,13 +55,14 @@ The following parameters can be set in config files or in env variables:
- `esConfig.ES_INDEX_JOB`: the index name for job
- `esConfig.ES_INDEX_JOB_CANDIDATE`: the index name for job candidate
- `esConfig.ES_INDEX_RESOURCE_BOOKING`: the index name for resource booking
- `esConfig.ES_INDEX_WORK_PERIOD`: the index name for work period
- `esConfig.ES_INDEX_ROLE`: the index name for role

- `auth0.AUTH0_URL`: Auth0 URL, used to get TC M2M token
- `auth0.AUTH0_AUDIENCE`: Auth0 audience, used to get TC M2M token
- `auth0.AUTH0_CLIENT_ID`: Auth0 client id, used to get TC M2M token
- `auth0.AUTH0_CLIENT_SECRET`: Auth0 client secret, used to get TC M2M token
- `auth0.AUTH0_PROXY_SERVER_URL`: Proxy Auth0 URL, used to get TC M2M token
- `auth0.TOKEN_CACHE_TIME`: Auth0 token cache time, used to get TC M2M token

- `zapier.ZAPIER_COMPANYID_SLUG`: your company id in zapier; numeric value
- `zapier.ZAPIER_CONTACTID_SLUG`: your contact id in zapier; numeric value
Expand Down Expand Up @@ -75,7 +90,13 @@ The following parameters can be set in config files or in env variables:

## Local deployment

1. Make sure that Kafka and Elasticsearch is running as per instructions above.
0. Make sure that Kafka and Elasticsearch is running as per instructions above.

1. Make sure to use Node v12+ by command `node -v`. We recommend using [NVM](https://github.com/nvm-sh/nvm) to quickly switch to the right version:

```bash
nvm use
```

2. From the project root directory, run the following command to install the dependencies

Expand All @@ -95,6 +116,21 @@ The following parameters can be set in config files or in env variables:
npm run lint:fix
```

4. Local config

In the `taas-es-processor` root directory create `.env` file with the next environment variables. Values for **Auth0 config** should be shared with you on the forum.<br>

```bash
# Auth0 config
AUTH0_URL=
AUTH0_AUDIENCE=
AUTH0_CLIENT_ID=
AUTH0_CLIENT_SECRET=
```

- Values from this file would be automatically used by many `npm` commands.
- ⚠️ Never commit this file or its copy to the repository!

5. Start the processor and health check dropin

```bash
Expand Down
20 changes: 17 additions & 3 deletions VERIFICATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,51 @@

## Create documents in ES

- Run the following commands to create `Job`, `JobCandidate`, `ResourceBooking`, `WorkPeriod` documents in ES.
- Run the following commands to create `Job`, `JobCandidate`, `Interview`, `ResourceBooking`, `WorkPeriod`, `WorkPeriodPayment`, `Role` documents in ES.

``` bash
# for Job
docker exec -i taas-es-processor_kafka /opt/kafka/bin/kafka-console-producer.sh --broker-list localhost:9092 --topic taas.job.create < test/messages/taas.job.create.event.json
# for JobCandidate
docker exec -i taas-es-processor_kafka /opt/kafka/bin/kafka-console-producer.sh --broker-list localhost:9092 --topic taas.jobcandidate.create < test/messages/taas.jobcandidate.create.event.json
# for Interview
docker exec -i taas-es-processor_kafka /opt/kafka/bin/kafka-console-producer.sh --broker-list localhost:9092 --topic taas.interview.requested < test/messages/taas.interview.requested.event.json
# for ResourceBooking
docker exec -i taas-es-processor_kafka /opt/kafka/bin/kafka-console-producer.sh --broker-list localhost:9092 --topic taas.resourcebooking.create < test/messages/taas.resourcebooking.create.event.json
# for WorkPeriod
docker exec -i taas-es-processor_kafka /opt/kafka/bin/kafka-console-producer.sh --broker-list localhost:9092 --topic taas.workperiod.create < test/messages/taas.workperiod.create.event.json
# for WorkPeriodPayment
docker exec -i taas-es-processor_kafka /opt/kafka/bin/kafka-console-producer.sh --broker-list localhost:9092 --topic taas.workperiodpayment.create < test/messages/taas.workperiodpayment.create.event.json
# for Role
docker exec -i taas-es-processor_kafka /opt/kafka/bin/kafka-console-producer.sh --broker-list localhost:9092 --topic taas.role.requested < test/messages/taas.role.create.event.json
```

- Run `npm run view-data <model-name-here>` to see if documents were created.

## Update documents in ES
- Run the following commands to update `Job`, `JobCandidate`, `ResourceBooking`, `WorkPeriod` documents in ES.
- Run the following commands to update `Job`, `JobCandidate`, `Interview`, `ResourceBooking`, `WorkPeriod`, `WorkPeriodPayment`, `Role` documents in ES.

``` bash
# for Job
docker exec -i taas-es-processor_kafka /opt/kafka/bin/kafka-console-producer.sh --broker-list localhost:9092 --topic taas.job.update < test/messages/taas.job.update.event.json
# for JobCandidate
docker exec -i taas-es-processor_kafka /opt/kafka/bin/kafka-console-producer.sh --broker-list localhost:9092 --topic taas.jobcandidate.update < test/messages/taas.jobcandidate.update.event.json
# for Interview
docker exec -i taas-es-processor_kafka /opt/kafka/bin/kafka-console-producer.sh --broker-list localhost:9092 --topic taas.interview.update < test/messages/taas.interview.update.event.json
# for ResourceBooking
docker exec -i taas-es-processor_kafka /opt/kafka/bin/kafka-console-producer.sh --broker-list localhost:9092 --topic taas.resourcebooking.update < test/messages/taas.resourcebooking.update.event.json
# for WorkPeriod
docker exec -i taas-es-processor_kafka /opt/kafka/bin/kafka-console-producer.sh --broker-list localhost:9092 --topic taas.workperiod.update < test/messages/taas.workperiod.update.event.json
# for WorkPeriodPayment
docker exec -i taas-es-processor_kafka /opt/kafka/bin/kafka-console-producer.sh --broker-list localhost:9092 --topic taas.workperiodpayment.update < test/messages/taas.workperiodpayment.update.event.json
# for Role
docker exec -i taas-es-processor_kafka /opt/kafka/bin/kafka-console-producer.sh --broker-list localhost:9092 --topic taas.role.update < test/messages/taas.role.update.event.json
```

- Run `npm run view-data <model-name-here>` to see if documents were updated.

## Delete documents in ES
- Run the following commands to delete `Job`, `JobCandidate`, `ResourceBooking`, `WorkPeriod` documents in ES.
- Run the following commands to delete `Job`, `JobCandidate`, `ResourceBooking`, `WorkPeriod`, `Role` documents in ES.

``` bash
# for Job
Expand All @@ -45,6 +57,8 @@
docker exec -i taas-es-processor_kafka /opt/kafka/bin/kafka-console-producer.sh --broker-list localhost:9092 --topic taas.resourcebooking.delete < test/messages/taas.resourcebooking.delete.event.json
# for WorkPeriod
docker exec -i taas-es-processor_kafka /opt/kafka/bin/kafka-console-producer.sh --broker-list localhost:9092 --topic taas.workperiod.delete < test/messages/taas.workperiod.delete.event.json
# for Role
docker exec -i taas-es-processor_kafka /opt/kafka/bin/kafka-console-producer.sh --broker-list localhost:9092 --topic taas.role.delete < test/messages/taas.role.delete.event.json
```

- Run `npm run view-data <model-name-here>` to see if documents were deleted.
33 changes: 29 additions & 4 deletions config/default.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* The default configuration file.
*/

require('dotenv').config()
module.exports = {
PORT: process.env.PORT || 3001,
LOG_LEVEL: process.env.LOG_LEVEL || 'debug',
Expand All @@ -14,8 +14,12 @@ module.exports = {

// Kafka group id
KAFKA_GROUP_ID: process.env.KAFKA_GROUP_ID || 'taas-es-processor',
// The originator value for the kafka messages
KAFKA_MESSAGE_ORIGINATOR: process.env.KAFKA_MESSAGE_ORIGINATOR || 'taas-es-processor',

topics: {
// The error topic at which bus api will publish any errors
KAFKA_ERROR_TOPIC: process.env.KAFKA_ERROR_TOPIC || 'common.error.reporting',
// topics for job service
TAAS_JOB_CREATE_TOPIC: process.env.TAAS_JOB_CREATE_TOPIC || 'taas.job.create',
TAAS_JOB_UPDATE_TOPIC: process.env.TAAS_JOB_UPDATE_TOPIC || 'taas.job.update',
Expand All @@ -31,8 +35,28 @@ module.exports = {
// topics for work period service
TAAS_WORK_PERIOD_CREATE_TOPIC: process.env.TAAS_WORK_PERIOD_CREATE_TOPIC || 'taas.workperiod.create',
TAAS_WORK_PERIOD_UPDATE_TOPIC: process.env.TAAS_WORK_PERIOD_UPDATE_TOPIC || 'taas.workperiod.update',
TAAS_WORK_PERIOD_DELETE_TOPIC: process.env.TAAS_WORK_PERIOD_DELETE_TOPIC || 'taas.workperiod.delete'
TAAS_WORK_PERIOD_DELETE_TOPIC: process.env.TAAS_WORK_PERIOD_DELETE_TOPIC || 'taas.workperiod.delete',
// topics for work period payment service
TAAS_WORK_PERIOD_PAYMENT_CREATE_TOPIC: process.env.TAAS_WORK_PERIOD_PAYMENT_CREATE_TOPIC || 'taas.workperiodpayment.create',
TAAS_WORK_PERIOD_PAYMENT_UPDATE_TOPIC: process.env.TAAS_WORK_PERIOD_PAYMENT_UPDATE_TOPIC || 'taas.workperiodpayment.update',
// topics for interview service
TAAS_INTERVIEW_REQUEST_TOPIC: process.env.TAAS_INTERVIEW_REQUEST_TOPIC || 'taas.interview.requested',
TAAS_INTERVIEW_UPDATE_TOPIC: process.env.TAAS_INTERVIEW_UPDATE_TOPIC || 'taas.interview.update',
TAAS_INTERVIEW_BULK_UPDATE_TOPIC: process.env.TAAS_INTERVIEW_BULK_UPDATE_TOPIC || 'taas.interview.bulkUpdate',
// topics for role service
TAAS_ROLE_CREATE_TOPIC: process.env.TAAS_ROLE_CREATE_TOPIC || 'taas.role.requested',
TAAS_ROLE_UPDATE_TOPIC: process.env.TAAS_ROLE_UPDATE_TOPIC || 'taas.role.update',
TAAS_ROLE_DELETE_TOPIC: process.env.TAAS_ROLE_DELETE_TOPIC || 'taas.role.delete',
// special kafka topics
TAAS_ACTION_RETRY_TOPIC: process.env.TAAS_ACTION_RETRY_TOPIC || 'taas.action.retry'

},
// maximum allowed retry count for failed operations for sending `action.retry` message
MAX_RETRY: process.env.MAX_RETRY || 3,
// base amount of retry delay for failed operations
BASE_RETRY_DELAY: process.env.BASE_RETRY_DELAY || 500,
// Topcoder Bus API URL
BUSAPI_URL: process.env.BUSAPI_URL || 'https://api.topcoder-dev.com/v5',

esConfig: {
HOST: process.env.ES_HOST || 'http://localhost:9200',
Expand All @@ -48,15 +72,16 @@ module.exports = {
ES_INDEX_JOB: process.env.ES_INDEX_JOB || 'job',
ES_INDEX_JOB_CANDIDATE: process.env.ES_INDEX_JOB_CANDIDATE || 'job_candidate',
ES_INDEX_RESOURCE_BOOKING: process.env.ES_INDEX_RESOURCE_BOOKING || 'resource_booking',
ES_INDEX_WORK_PERIOD: process.env.ES_INDEX_WORK_PERIOD || 'work_period'
ES_INDEX_ROLE: process.env.ES_INDEX_ROLE || 'role'
},

auth0: {
AUTH0_URL: process.env.AUTH0_URL,
AUTH0_AUDIENCE: process.env.AUTH0_AUDIENCE,
AUTH0_CLIENT_ID: process.env.AUTH0_CLIENT_ID,
AUTH0_CLIENT_SECRET: process.env.AUTH0_CLIENT_SECRET,
AUTH0_PROXY_SERVER_URL: process.env.AUTH0_PROXY_SERVER_URL
AUTH0_PROXY_SERVER_URL: process.env.AUTH0_PROXY_SERVER_URL,
TOKEN_CACHE_TIME: process.env.TOKEN_CACHE_TIME
},

zapier: {
Expand Down
4 changes: 3 additions & 1 deletion config/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ module.exports = {
zapier: {
ZAPIER_SWITCH: process.env.ZAPIER_SWITCH || 'ON',
ZAPIER_JOB_CANDIDATE_SWITCH: process.env.ZAPIER_JOB_CANDIDATE_SWITCH || 'ON'
}
},
// don't retry actions during tests because tests for now don't expect it and should be updated first
MAX_RETRY: 0
}
2 changes: 1 addition & 1 deletion local/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
- "9092:9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: localhost
KAFKA_CREATE_TOPICS: "taas.job.create:1:1,taas.jobcandidate.create:1:1,taas.resourcebooking.create:1:1,taas.job.update:1:1,taas.jobcandidate.update:1:1,taas.resourcebooking.update:1:1,taas.job.delete:1:1,taas.jobcandidate.delete:1:1,taas.resourcebooking.delete:1:1"
KAFKA_CREATE_TOPICS: "taas.job.create:1:1,taas.jobcandidate.create:1:1,taas.interview.requested: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.interview.update:1:1,taas.interview.bulkUpdate: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"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
esearch:
image: elasticsearch:7.7.1
Expand Down
Loading