Skip to content

Syncing master with v5 changes #431

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
merged 108 commits into from
Dec 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
5b880c0
Update Swagger to V5 standards
sharathkumaranbu Jun 5, 2019
e3b8eed
30092642 - Upgrade to V5 - Part 1
sharathkumaranbu Jun 14, 2019
0e37b34
Credential clean up
sharathkumaranbu Jun 18, 2019
d990340
30093584 - Winning submission from Part 2 challenge
sharathkumaranbu Jun 24, 2019
080c4c4
feat: latest update of `v5` branch from another repo "projects-api"
maxceem Oct 11, 2019
0589926
Merge changes from 'dev' branch
gets0ul Oct 16, 2019
f12979a
Added fixes.
gets0ul Oct 17, 2019
c6abfb2
Remove duplicates.
gets0ul Oct 17, 2019
c5c36a5
More fixes based on feedback.
gets0ul Oct 18, 2019
0718a23
Fixes based on feedback part 2.
gets0ul Oct 19, 2019
8fb8b2f
Fix remaining mismatches (productCategories, projectTemplates, projec…
gets0ul Oct 21, 2019
36ec430
Merge pull request #389 from gets0ul/merge_dev_to_v5
maxceem Oct 22, 2019
77abc21
fix: set 'Access-Control-Expose-Headers' so browser can get paginatio…
maxceem Oct 22, 2019
203892f
fix: values of query params might be encoded when having special char…
maxceem Oct 22, 2019
4fe4e6c
Add db query parameter to support getting timeline directly from data…
gets0ul Oct 24, 2019
038b0a0
- support filtering orgConfigs by multiple orgId
gets0ul Oct 24, 2019
39bdf46
Merge pull request #390 from gets0ul/get_timeline_from_db
maxceem Oct 24, 2019
b477a8e
Merge pull request #391 from gets0ul/filter_org_configs
maxceem Oct 24, 2019
7b5f8bd
F2F, update postman
sumitdaga Oct 25, 2019
2033fab
Merge with #1cee66ef
gower9 Oct 26, 2019
0a6d4ae
Merge pull request #393 from gower9/v5-upgrade-merge-dev
maxceem Oct 27, 2019
7492b5c
Merge pull request #392 from sumitdaga/F2F-postman-update
maxceem Oct 27, 2019
227023c
feat: updated postman
maxceem Oct 27, 2019
41fd6a1
feat: Kafka events for Notification Service brought back from "dev"
maxceem Oct 28, 2019
4dee61c
fix: fix unit tests so they don’t fail randomly.
imcaizheng Oct 28, 2019
4de55fe
Merge pull request #396 from imcaizheng/feature/v5-upgrdae-fix-tests
maxceem Oct 29, 2019
23bd664
Merge branch 'feature/v5-upgrdae-fix-tests' into v5-upgrade
maxceem Oct 29, 2019
b137cfb
fix: "/projects/{projectId}/permissions" endpoint follow "v5" standard
maxceem Oct 29, 2019
2a7b4d5
fix: issue generating BUS API events when upgrading project
maxceem Oct 29, 2019
c96418e
fix: should return 404 for deleted config
maxceem Oct 29, 2019
e66babd
fix: connect.notification.project.product/workItem.update.spec event
maxceem Oct 29, 2019
93c214e
fix: remove console.log
maxceem Oct 29, 2019
3b82774
fix: try to fix unit tests for LIST planConfig
maxceem Oct 29, 2019
1f69d50
fix: removed duplicate ES index calls
maxceem Oct 30, 2019
cadba46
feat: bring back RabbitMQ unit tests for works
maxceem Oct 30, 2019
479dc69
refactor: simpler code to wait before test
maxceem Oct 30, 2019
a3550df
feat: improve debug output for BUS API events
maxceem Oct 31, 2019
cda34b3
fix: published RabbitMQ events are not consumed
maxceem Oct 31, 2019
41c157b
chore: added debug output for "list projects" endpoints
maxceem Oct 31, 2019
6ebecb1
fix: "npm run demo-data" fails if NODE_ENV is not defined
maxceem Nov 1, 2019
e94aeac
chore: enhance log messages
maxceem Nov 1, 2019
a3e0f4f
feat: remove "scopeChangeRequests" from "project" for now
maxceem Nov 1, 2019
58c6ed4
chore: *.local.js are ready to be used with new services
maxceem Nov 1, 2019
4d02fa9
Get Metadata from ES
rakibansary Nov 4, 2019
b7f8c52
Merge pull request #405 from ansaryfantastic/v5-upgrade
maxceem Nov 4, 2019
b0aae19
Merge branch 'v5-upgrade' into dev-synced
maxceem Nov 4, 2019
fbab3e7
perf: optimize GET /metadata endpoint
maxceem Nov 4, 2019
ee92818
feat: get project by id from ES
maxceem Nov 4, 2019
25375fd
fix: unit tests by clearing ES index
maxceem Nov 4, 2019
aa14baf
fix: unit tests by clearing ES index, part 2
maxceem Nov 4, 2019
e8c0ab3
chore: use locally deployed BUS API in local configs
maxceem Nov 4, 2019
40e3aa5
chore: fix log output
maxceem Nov 5, 2019
c6451c7
fix: make resource names consistent with "project-processor-es"
maxceem Nov 5, 2019
b0f46ee
Add script for updating data in DB
imcaizheng Nov 6, 2019
455c37a
Merge pull request #406 from imcaizheng/v5-upgrade-merged
maxceem Nov 9, 2019
7439062
feat: improved script to fix metadata to be indexed in ES
maxceem Nov 10, 2019
7646ec1
feat: added ES mapping for the Product Template's "options.value"s
maxceem Nov 10, 2019
b36d5cb
feat: command to recreate only some ES indexes instead of all
maxceem Nov 10, 2019
f6f5e99
feat: 2 ways of indexing metadata in ES
maxceem Nov 10, 2019
939fe00
fix: allow re-create all ES indexes in "test" env
maxceem Nov 10, 2019
7fd1956
fix: remove unnecessary "refresh: 'wait_for'" from ES sync script
maxceem Nov 10, 2019
9c4780b
feat: improved script to fix metadata to be indexed in ES
maxceem Nov 10, 2019
c44d2e5
chore: generate "package-lock.json" file
maxceem Nov 10, 2019
d100987
fix: removed response wrapper in the rest of endpoints
maxceem Nov 11, 2019
62fa47f
fix: request list of project from DB
maxceem Nov 11, 2019
c51d00e
fix: request list of project from DB (for deleted members)
maxceem Nov 11, 2019
1dfaeb1
fix: request list of project from DB (for deleted members), part 2
maxceem Nov 11, 2019
077d4a2
fix: attachment create
maxceem Nov 11, 2019
807be5d
fix: lint
maxceem Nov 11, 2019
6d5f9a6
feat: improved admin endpoints to create and delete ES indexes
maxceem Nov 11, 2019
4fa958d
feat: admin endpoints to migrate data from DB to ES (metadata)
maxceem Nov 11, 2019
17ca11c
feat: admin endpoint to fix metadata for ES
maxceem Nov 11, 2019
2b3cf21
Merge branch 'dev' into v5-upgrade
maxceem Nov 13, 2019
ee5771e
fix: fixMetadataForES script to be deployable
maxceem Nov 14, 2019
fb9eb94
refactor: improve GET /orgConfigs endpoint unit test
maxceem Nov 19, 2019
8850389
Corrected error message
Nov 19, 2019
8bf854f
fix: Kafka events with correct type "action"
maxceem Nov 19, 2019
70ef4b5
fix: analytics events
maxceem Nov 20, 2019
ae2656e
Restoring non v5 call to file service because file service is yet to …
Nov 21, 2019
b8d9382
Lint fix
Nov 21, 2019
27c8a93
Add local docker configuration setup with multiple tc services
meshde Nov 28, 2019
be40931
Merge pull request #415 from meshde/local-setup-improvements
maxceem Nov 29, 2019
1e0bc56
Merge branch 'dev' into v5-upgrade
maxceem Dec 13, 2019
38f7a6a
Merge branch 'dev' into v5-upgrade
maxceem Dec 13, 2019
fbf18a8
fix: fixes after merging with dev
maxceem Dec 13, 2019
1958701
Merge branch 'dev' into v5-upgrade
maxceem Dec 14, 2019
bacb4a0
feat: array logger also use default logger to output to console
maxceem Dec 16, 2019
4154442
fix: delete phase in ES
maxceem Dec 16, 2019
cfc0aac
Merge branch 'dev' into v5-upgrade
maxceem Dec 16, 2019
1fd4d2a
Revert "fix: temporary fix to index TaaS project with skills"
maxceem Dec 16, 2019
5f3e1d0
fix project data in DB
dengzikun Dec 16, 2019
0f62b5e
Merge pull request #426 from dengzikun/v5-upgrade
maxceem Dec 17, 2019
f5291e3
fix: some edge cases in fixing projects for ES in DB
maxceem Dec 17, 2019
636b140
Merge branch 'dev' into v5-upgrade
maxceem Dec 17, 2019
5a70cae
fix: include invites for projects
maxceem Dec 17, 2019
3b4aacb
fix: fallback to DB for phases LIST
maxceem Dec 17, 2019
790d0b5
fix: project.findProjectRange
maxceem Dec 17, 2019
6c28808
fix: return all members and invites from ES
maxceem Dec 17, 2019
d649ef9
fix: admin index endpoint include "attachments"
maxceem Dec 18, 2019
cae3b0e
fix: lint
maxceem Dec 18, 2019
d40aacf
fix: delete attachements in ES
maxceem Dec 18, 2019
522ff4a
fix: full docker-compose Kafka events
maxceem Dec 18, 2019
7a806d4
docs: added pecularities of v5 local setup
maxceem Dec 18, 2019
f55da52
fix: metadata update in ES
maxceem Dec 19, 2019
992208d
fix: orgConfigs update in ES
maxceem Dec 19, 2019
012de9b
Updated circleci config to deploy to v5 cluster
Dec 19, 2019
2d9bec6
Merge pull request #430 from topcoder-platform/v5-upgrade
Dec 19, 2019
bc60730
Merge branch 'master' into develop
Dec 19, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
76 changes: 44 additions & 32 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ version: 2
python_env: &python_env
docker:
- image: circleci/python:2.7-stretch-browsers

install_awscli: &install_awscli
name: "Install awscli"
command: |
sudo pip install awscli --upgrade
install_deploysuite: &install_deploysuite
name: Installation of install_deploysuite.
command: |
git clone --branch master https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
cp ./../buildscript/master_deploy.sh .
cp ./../buildscript/buildenv.sh .
cp ./../buildscript/awsconfiguration.sh .
name: Installation of install_deploysuite.
command: |
git clone --branch v1.4.1 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
cp ./../buildscript/master_deploy.sh .
cp ./../buildscript/buildenv.sh .
cp ./../buildscript/awsconfiguration.sh .

# Instructions of deployment
deploy_steps: &deploy_steps
- checkout
Expand All @@ -23,22 +23,16 @@ deploy_steps: &deploy_steps
- run: *install_awscli
- run: *install_deploysuite
- setup_remote_docker
- run: docker build -t tc-project-service:latest .
- run: docker build -t ${APPNAME}:latest .
- deploy:
name: "Running Masterscript - deploy tc-project-service "
name: "Running Masterscript - deploy tc-project-service "
command: |
./awsconfiguration.sh $DEPLOY_ENV
./awsconfiguration.sh $DEPLOY_ENV
source awsenvconf
./buildenv.sh -e $DEPLOY_ENV -b ${VAR_ENV}-tc-project-service-deployvar
./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-${APPNAME}-deployvar
source buildenvvar
./master_deploy.sh -d ECS -e $DEPLOY_ENV -t latest -s ${VAR_ENV}-global-appvar,${VAR_ENV}-tc-project-service-appvar -i tc-project-service -p FARGATE
./master_deploy.sh -d ECS -e $DEPLOY_ENV -t latest -s ${LOGICAL_ENV}-global-appvar,${LOGICAL_ENV}-${APPNAME}-appvar -i ${APPNAME}

echo "======= Running Masterscript - deploy tc-project-service-consumers ==========="
if [ -e ${VAR_ENV}-tc-project-service-appvar.json ]; then sudo rm -vf ${VAR_ENV}-tc-project-service-appvar.json; fi
./buildenv.sh -e $DEPLOY_ENV -b ${VAR_ENV}-tc-project-service-consumers-deployvar
source buildenvvar
./master_deploy.sh -d ECS -e $DEPLOY_ENV -t latest -s ${VAR_ENV}-global-appvar,${VAR_ENV}-tc-project-service-appvar -i tc-project-service -p FARGATE

jobs:
test:
docker:
Expand All @@ -50,13 +44,20 @@ jobs:
- image: elasticsearch:2.3
- image: rabbitmq:3-management
environment:
DB_MASTER_URL: postgres://circle_test:@127.0.0.1:5432/circle_test
AUTH_SECRET: secret
AUTH_DOMAIN: topcoder-dev.com
LOG_LEVEL: debug
APP_VERSION: v4
DEPLOY_ENV: "DEV"
LOGICAL_ENV: "dev"
APPNAME: "projects-api"
steps:
- checkout
- run:
name: "Install dependeency"
command: |
sudo apt update
sudo apt install curl
sudo apt install python-pip
- run: *install_awscli
- run: *install_deploysuite
- setup_remote_docker
- restore_cache:
key: test-node-modules-{{ checksum "package.json" }}
- run: npm install
Expand All @@ -65,39 +66,50 @@ jobs:
paths:
- node_modules
- run: npm run lint
- run: npm run test
- run:
name: "Running Masterscript - deploy tc-project-service "
command: |
./awsconfiguration.sh $DEPLOY_ENV
source awsenvconf
./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-${APPNAME}-testvar
source buildenvvar
npm run test
rm -f buildenvvar
- run: npm run build
- persist_to_workspace:
root: .
paths:
- dist

deployProd:
<<: *python_env
environment:
DEPLOY_ENV: "PROD"
VAR_ENV: "prod"
LOGICAL_ENV: "prod"
APPNAME: "projects-api"
steps: *deploy_steps

deployDev:
<<: *python_env
environment:
DEPLOY_ENV: "DEV"
VAR_ENV: "dev"
steps: *deploy_steps

LOGICAL_ENV: "dev"
APPNAME: "projects-api"
steps: *deploy_steps

workflows:
version: 2
build:
jobs:
- test
- test:
context : org-global
- deployDev:
context : org-global
requires:
- test
filters:
branches:
only: ['dev', 'dev-sts', 'feature/looker-api-integration']
only: ['develop']
- deployProd:
context : org-global
requires:
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v8.2.1
v8.9.4
93 changes: 90 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Microservice to manage CRUD operations for all things Projects.
### Requirements

* [docker-compose](https://docs.docker.com/compose/install/) - We use docker-compose for running dependencies locally.
* Nodejs 8.2.1 - consider using [nvm](https://github.com/creationix/nvm) or equivalent to manage your node version
* Nodejs 8.9.4 - consider using [nvm](https://github.com/creationix/nvm) or equivalent to manage your node version
* Install [libpg](https://www.npmjs.com/package/pg-native)

### Steps to run locally
Expand Down Expand Up @@ -54,6 +54,7 @@ Microservice to manage CRUD operations for all things Projects.
```
Alternatively, you may update `config/local.js` and replace `dockerhost` with your docker IP address.<br>
You may try using command `docker-machine ip` to get your docker IP, but it works not for all systems.
Also, be sure to update `busApiUrl` if you are running `tc-bus-api` locally. (See below)

Explanation of configs:
- `config/mock.local.js` - Use local `mock-services` from docker to mock Identity and Member services instead of using deployed at Topcoder dev environment.
Expand Down Expand Up @@ -85,12 +86,66 @@ Microservice to manage CRUD operations for all things Projects.
The project service will be served on `http://localhost:8001`.

### Import sample metadata & projects

```bash
CONNECT_USER_TOKEN=<connect user token> npm run demo-data
```
This command will create sample metadata entries in the DB (duplicate what is currently in development environment).
To retrieve data from DEV env we have to provide a valid user token (`CONNECT_USER_TOKEN`). You may login to http://connect.topcoder-dev.com and find the Bearer token in the request headers using browser dev tools.

This command for importing data uses API to create demo data. Which has a few pecularities:
- data in DB would be for sure created
- data in ElasticSearch Index (ES) would be only created if services [project-processor-es](https://github.com/topcoder-platform/project-processor-es) and [tc-bus-api](https://github.com/topcoder-platform/tc-bus-api) are also started locally. If you don't start them, then imported data wouldn't be indexed in ES, and would be only added to DB. You may start them locally separately, or better use `local/full/docker-compose.yml` as described [next section](#local-deployment-with-other-topcoder-services) which would start them automatically.
- **NOTE** During data importing a lot of records has to be indexed in ES, so you have to wait about 5-10 minutes after `npm run demo-data` is finished until imported data is indexed in ES. You may watch logs of `project-processor-es` to see if its done or no.

### Local Deployment with other Topcoder Services.

* There exists an alternate `docker-compose.yml` file that can be used to spawn containers for the following services:

| Service | Name | Port |
|----------|:-----:|:----:|
| PostGreSQL DB | db | 5432 |
| ElasticSearch | esearch | 9200,9300 |
| RabbitMQ | queue | 5672, 15672 |
| Zookeeper | zookeeper | 2181 |
| Kafka | kafka | 9092 |
| [tc-bus-api](https://github.com/topcoder-platform/tc-bus-api) | tc-bus-api | 8002 |
| [project-processor-es](https://github.com/topcoder-platform/project-processor-es) | project-processor-es | 5000 |
| [tc-notifications-api](https://github.com/topcoder-platform/tc-notifications) | tc-notifications-api | 4000 |
| [tc-notifications-processor](https://github.com/topcoder-platform/tc-notifications) | tc-notifications-processor | 4001 |

* To have kafka create a list of desired topics on startup, there exists a file with the path `local/full/kafka-client/topics.txt`. Each line from the file will be added as a topic.
* To run these services simply run the following commands:

```bash
export AUTH0_CLIENT_ID=<insert required value here>
export AUTH0_CLIENT_SECRET=<insert required value here>
export AUTH0_URL=<insert required value here>
export AUTH0_AUDIENCE=<insert required value here>
export AUTH0_PROXY_SERVER_URL=<insert required value here>

cd local/full
docker-compose up -d
```

To retrieve data from DEV env we need to provide a valid user token. You may login to http://connect.topcoder-dev.com and find the Bearer token in the request headers using browser dev tools.
* The environment variables specified in the commands above will be passed onto the containers that have been configured to read them.
* The above command will start all containers in the background.
* To view the logs of any of the services use the following command, replacing "SERVICE_NAME" with the corresponding value under the "Name" column in the above table:

```bash
cd local/full
docker-compose logs -f SERVICE_NAME
```

* The containers have been configured such that all Topcoder services will wait until all the topics listed in `local/full/kafka-client/topics.txt` have been created. To monitor the progress of topic creation, you can view the logs of the `kafka-client` service, which will exit when all topics have been created.

* **WARNING**<br>
After all the containers are started, make sure that `project-processor-es` service started successfully, as sometimes it doesn't start successfully as Kafka wasn't yet properly started at that moment. So run `docker-compose logs -f project-processor-es` to see its logs, you should see 3 lines with text `Subscribed to project.action.` like:
```
project-processor-es_1 | 2019-12-18T11:10:12.849Z DEBUG no-kafka-client Subscribed to project.action.update:0 offset 0 leader 96e65c46c746:9092
project-processor-es_1 | 2019-12-18T11:10:12.851Z DEBUG no-kafka-client Subscribed to project.action.delete:0 offset 0 leader 96e65c46c746:9092
project-processor-es_1 | 2019-12-18T11:10:12.852Z DEBUG no-kafka-client Subscribed to project.action.create:0 offset 0 leader 96e65c46c746:9092
```
If you don't see such lines, restart `project-processor-es` service ONLY by running `docker-compose restart project-processor-es`.

### Run Connect App with Project Service locally

Expand All @@ -99,7 +154,9 @@ To be able to run [Connect App](https://github.com/appirio-tech/connect-app) wit

```js
PROJECTS_API_URL: 'http://localhost:8001'
TC_NOTIFICATION_URL: 'http://localhost:4000/v5/notifications' # if tc-notfication-api has been locally deployed
```

2. Bypass token validation in Project Service.

In `tc-project-service/node_modules/tc-core-library-js/lib/auth/verifier.js` add this to line 23:
Expand Down Expand Up @@ -142,3 +199,33 @@ You can paste **swagger.yaml** to [swagger editor](http://editor.swagger.io/) o

#### Deploying without docker
If you don't want to use docker to deploy to localhost. You can simply run `npm run start:dev` from root of project. This should start the server on default port `8001`.

### Kafka Commands

If you've used `docker-compose` with the file `local/full/docker-compose.yml` to spawn kafka & zookeeper, you can use the following commands to manipulate kafka topics and messages:
(Replace TOPIC_NAME with the name of the desired topic)

**Create Topic**

```bash
docker exec tc-projects-kafka /usr/bin/kafka-topics --create --zookeeper zookeeper:2181 --partitions 1 --replication-factor 1 --topic TOPIC_NAME
```

**List Topics**

```bash
docker exec -it tc-projects-kafka /usr/bin/kafka-topics --list --zookeeper zookeeper:2181
```

**Watch Topic**

```bash
docker exec -it tc-projects-kafka /usr/bin/kafka-console-consumer --bootstrap-server localhost:9092 --zookeeper zookeeper:2181 --topic TOPIC_NAME
```

**Post Message to Topic**

```bash
docker exec -it tc-projects-kafka /usr/bin/kafka-console-producer --topic TOPIC_NAME --broker-list localhost:9092
```
The message can be passed using `stdin`
7 changes: 5 additions & 2 deletions config/custom-environment-variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
"host": "PROJECTS_ES_URL",
"apiVersion": "2.3",
"indexName": "PROJECTS_ES_INDEX_NAME",
"docType": "projectV4",
"docType": "PROJECTS_ES_DOC_TYPE",
"timelineIndexName": "TIMELINES_ES_INDEX_NAME",
"timelineDocType": "TIMELINES_ES_DOC_TYPE"
"timelineDocType": "TIMELINES_ES_DOC_TYPE",
"metadataIndexName": "METADATA_ES_INDEX_NAME",
"metadataDocType": "METADATA_ES_DOC_TYPE"
},
"rabbitmqURL": "RABBITMQ_URL",
"pubsubQueueName": "PUBSUB_QUEUE_NAME",
Expand Down Expand Up @@ -50,6 +52,7 @@
"accountsAppUrl": "ACCOUNTS_APP_URL",
"inviteEmailSubject": "INVITE_EMAIL_SUBJECT",
"inviteEmailSectionTitle": "INVITE_EMAIL_SECTION_TITLE",
"pageSize": "PAGE_SIZE",
"SSO_REFCODES": "SSO_REFCODES",
"lookerConfig": {
"BASE_URL": "LOOKER_API_BASE_URL",
Expand Down
22 changes: 10 additions & 12 deletions config/default.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"apiVersion": "v4",
"apiVersion": "v5",
"AUTH_SECRET": "secret",
"logLevel": "info",
"version": "v4",
"version": "v5",
"captureLogs": "false",
"enableFileUpload": "true",
"logentriesToken": "",
Expand All @@ -19,11 +19,13 @@
"projectAttachmentPathSuffix": "attachments",
"elasticsearchConfig": {
"host": "",
"apiVersion": "2.3",
"apiVersion": "6.8",
"indexName": "projects",
"docType": "projectV4",
"docType": "doc",
"timelineIndexName": "timelines",
"timelineDocType": "timelineV4"
"timelineDocType": "doc",
"metadataIndexName": "metadata",
"metadataDocType": "doc"
},
"connectProjectUrl":"",
"dbConfig": {
Expand All @@ -44,13 +46,8 @@
"busApiToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoicHJvamVjdC1zZXJ2aWNlIiwiaWF0IjoxNTEyNzQ3MDgyLCJleHAiOjE1MjEzODcwODJ9.PHuNcFDaotGAL8RhQXQMdpL8yOKXxjB5DbBIodmt7RE",
"HEALTH_CHECK_URL": "_health",
"maxPhaseProductCount": 1,
"AUTH0_CLIENT_ID": "",
"AUTH0_CLIENT_SECRET": "",
"AUTH0_AUDIENCE": "",
"AUTH0_URL": "",
"TOKEN_CACHE_TIME": "",
"TOKEN_CACHE_TIME": "86000",
"whitelistedOriginsForUserIdAuth": "[\"https:\/\/topcoder-newauth.auth0.com\/\",\"https:\/\/api.topcoder-dev.com\"]",
"AUTH0_PROXY_SERVER_URL" : "",
"EMAIL_INVITE_FROM_NAME":"Topcoder",
"EMAIL_INVITE_FROM_EMAIL":"noreply@connect.topcoder.com",
"inviteEmailSubject": "You are invited to Topcoder",
Expand All @@ -59,8 +56,9 @@
"accountsAppUrl": "https://accounts.topcoder-dev.com",
"MAX_REVISION_NUMBER": 100,
"UNIQUE_GMAIL_VALIDATION": false,
"SSO_REFCODES": "[]",
"pageSize": 20,
"VALID_STATUSES_BEFORE_PAUSED": "[\"active\"]",
"SSO_REFCODES": "[]",
"lookerConfig": {
"BASE_URL": "",
"CLIENT_ID": "",
Expand Down
7 changes: 2 additions & 5 deletions config/m2m.local.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ if (process.env.NODE_ENV === 'test') {
config = require('./test.json');
} else {
config = {
busApiUrl: "http://localhost:8002/v5",
identityServiceEndpoint: "https://api.topcoder-dev.com/v3/",
authSecret: 'secret',
authDomain: 'topcoder-dev.com',
Expand All @@ -23,11 +24,7 @@ if (process.env.NODE_ENV === 'test') {
idleTimeout: 1000,
},
elasticsearchConfig: {
host: 'dockerhost:9200',
// target elasticsearch 2.3 version
apiVersion: '2.3',
indexName: 'projects',
docType: 'projectV4'
host: 'dockerhost:9200'
},
whitelistedOriginsForUserIdAuth: "[\"\"]",
};
Expand Down
7 changes: 2 additions & 5 deletions config/mock.local.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ if (process.env.NODE_ENV === 'test') {
config = require('./test.json');
} else {
config = {
busApiUrl: "http://localhost:8002/v5",
identityServiceEndpoint: "http://dockerhost:3001/",
authSecret: 'secret',
authDomain: 'topcoder-dev.com',
Expand All @@ -23,11 +24,7 @@ if (process.env.NODE_ENV === 'test') {
idleTimeout: 1000,
},
elasticsearchConfig: {
host: 'dockerhost:9200',
// target elasticsearch 2.3 version
apiVersion: '2.3',
indexName: 'projects',
docType: 'projectV4'
host: 'dockerhost:9200'
},
whitelistedOriginsForUserIdAuth: "[\"\"]",
};
Expand Down
Loading