Skip to content

Minor Release 3.0.1 #588

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 17 commits into from
Nov 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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: 0 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ jobs:
- POSTGRES_USER: circle_test
- POSTGRES_DB: circle_test
- image: elasticsearch:2.3
- image: rabbitmq:3-management
environment:
DEPLOY_ENV: "DEV"
LOGICAL_ENV: "dev"
Expand Down
3 changes: 0 additions & 3 deletions .ebextensions/01-environment-variables.config
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ option_settings:
- namespace: aws:elasticbeanstalk:application:environment
option_name: DB_MASTER_URL
value: TBD
- namespace: aws:elasticbeanstalk:application:environment
option_name: RABBITMQ_URL
value: TBD
- namespace: aws:elasticbeanstalk:application:environment
option_name: PROJECTS_ES_URL
value: TBD
Expand Down
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"trailingComma": "all"
}
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Microservice to manage CRUD operations for all things Projects.
- [Steps to run locally](#steps-to-run-locally)
- [Run Connect App with Project Service locally](#run-connect-app-with-project-service-locally)
- [Import and Export data](#import-and-export-data)
- [📤 Export data](#%f0%9f%93%a4-export-data)
- [📥 Import data](#%f0%9f%93%a5-import-data)
- [📤 Export data](#-export-data)
- [📥 Import data](#-import-data)
- [Import metadata from api.topcoder-dev.com (deprecated)](#import-metadata-from-apitopcoder-devcom-deprecated)
- [Run via Docker](#run-via-docker)
- [NPM Commands](#npm-commands)
Expand Down Expand Up @@ -54,7 +54,6 @@ Local setup should work good on **Linux**, **macOS** and **Windows**.
# Locally deployed services (via docker-compose)
PROJECTS_ES_URL=dockerhost:9200
DB_MASTER_URL=postgres://coder:mysecretpassword@dockerhost:5432/projectsdb
RABBITMQ_URL=amqp://dockerhost:5672
BUS_API_URL=http://dockerhost:8002/v5

# Locally we usually run in Development mode
Expand Down Expand Up @@ -110,7 +109,6 @@ Local setup should work good on **Linux**, **macOS** and **Windows**.
|----------|:-----:|:----:|
| PostgreSQL | db | 5432 |
| Elasticsearch | esearch | 9200 |
| RabbitMQ | queue | 5672, 15672 |
| Mock Service (not in use) | jsonserver | 3001 |
| Zookeeper | zookeeper | 2181 |
| Kafka | kafka | 9092 |
Expand Down Expand Up @@ -148,7 +146,6 @@ Local setup should work good on **Linux**, **macOS** and **Windows**.
|----------|:-----:|:----:|
| PostgreSQL | db | 5432 |
| Elasticsearch | esearch | 9200 |
| RabbitMQ | queue | 5672, 15672 |
| Mock Service (not in use) | jsonserver | 3001 |

</details>
Expand Down
1 change: 0 additions & 1 deletion config/custom-environment-variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"metadataDocType": "METADATA_ES_DOC_TYPE",
"metadataDocDefaultId": "METADATA_ES_DOC_DEFAULT_ID"
},
"rabbitmqURL": "RABBITMQ_URL",
"pubsubQueueName": "PUBSUB_QUEUE_NAME",
"pubsubExchangeName": "PUBSUB_EXCHANGE_NAME",
"directProjectServiceEndpoint": "DIRECT_PROJECT_SERVICE_ENDPOINT",
Expand Down
1 change: 0 additions & 1 deletion config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"captureLogs": "false",
"enableFileUpload": "true",
"logentriesToken": "",
"rabbitmqURL": "",
"pubsubQueueName": "project.service",
"pubsubExchangeName": "projects",
"fileServiceEndpoint": "",
Expand Down
3 changes: 2 additions & 1 deletion config/development.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"connectProjectsUrl": "https://connect.topcoder-dev.com/projects/",
"fileServiceEndpoint": "https://api.topcoder-dev.com/v3/files/",
"connectProjectsUrl": "https://connect.topcoder-dev.com/projects/",
"memberServiceEndpoint": "https://api.topcoder-dev.com/v3/members"
"memberServiceEndpoint": "https://api.topcoder-dev.com/v3/members",
"identityServiceEndpoint": "https://api.topcoder-dev.com/v3/"
}
1 change: 0 additions & 1 deletion config/m2m.local.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ if (process.env.NODE_ENV === 'test') {
logLevel: 'debug',
captureLogs: 'false',
logentriesToken: '',
rabbitmqURL: 'amqp://dockerhost:5672',
fileServiceEndpoint: 'https://api.topcoder-dev.com/v3/files/',
directProjectServiceEndpoint: 'https://api.topcoder-dev.com/v3/direct',
connectProjectsUrl: 'https://connect.topcoder-dev.com/projects/',
Expand Down
1 change: 0 additions & 1 deletion config/mock.local.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ if (process.env.NODE_ENV === 'test') {
logLevel: 'debug',
captureLogs: 'false',
logentriesToken: '',
rabbitmqURL: 'amqp://dockerhost:5672',
fileServiceEndpoint: 'https://api.topcoder-dev.com/v3/files/',
directProjectServiceEndpoint: 'https://api.topcoder-dev.com/v3/direct',
connectProjectsUrl: 'https://connect.topcoder-dev.com/projects/',
Expand Down
1 change: 0 additions & 1 deletion config/test.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"metadataIndexName": "metadata_test",
"metadataDocType": "doc"
},
"rabbitmqUrl": "amqp://localhost:5672",
"connectProjectsUrl": "https://local.topcoder-dev.com/projects/",
"dbConfig": {
"masterUrl": "postgres://coder:mysecretpassword@localhost:5432/projectsdb_test",
Expand Down
7 changes: 1 addition & 6 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,6 @@ make_task_def(){
"name": "PROJECTS_ES_INDEX_NAME",
"value": "%s"
},
{
"name": "RABBITMQ_URL",
"value": "%s"
},
{
"name": "DIRECT_PROJECT_SERVICE_ENDPOINT",
"value": "%s"
Expand Down Expand Up @@ -250,7 +246,6 @@ make_task_def(){
LOG_LEVEL=$(eval "echo \$${ENV}_LOG_LEVEL")
PROJECTS_ES_URL=$(eval "echo \$${ENV}_PROJECTS_ES_URL")
PROJECTS_ES_INDEX_NAME=$(eval "echo \$${ENV}_PROJECTS_ES_INDEX_NAME")
RABBITMQ_URL=$(eval "echo \$${ENV}_RABBITMQ_URL")
DIRECT_PROJECT_SERVICE_ENDPOINT=$(eval "echo \$${ENV}_DIRECT_PROJECT_SERVICE_ENDPOINT")
FILE_SERVICE_ENDPOINT=$(eval "echo \$${ENV}_FILE_SERVICE_ENDPOINT")
CONNECT_PROJECTS_URL=$(eval "echo \$${ENV}_CONNECT_PROJECTS_URL")
Expand Down Expand Up @@ -283,7 +278,7 @@ make_task_def(){
INVITE_EMAIL_SUBJECT=$(eval "echo \$${ENV}_INVITE_EMAIL_SUBJECT")
INVITE_EMAIL_SECTION_TITLE=$(eval "echo \$${ENV}_INVITE_EMAIL_SECTION_TITLE")

task_def=$(printf "$task_template" $1 $AWS_ACCOUNT_ID $AWS_ACCOUNT_ID $AWS_ECS_CONTAINER_NAME $AWS_ACCOUNT_ID $AWS_REGION $AWS_REPOSITORY $CIRCLE_SHA1 $2 $3 $4 $NODE_ENV $ENABLE_FILE_UPLOAD $LOG_LEVEL $CAPTURE_LOGS $LOGENTRIES_TOKEN $API_VERSION $AWS_REGION $AUTH_DOMAIN $AUTH_SECRET $VALID_ISSUERS $DB_MASTER_URL $MEMBER_SERVICE_ENDPOINT $IDENTITY_SERVICE_ENDPOINT $BUS_API_URL $MESSAGE_SERVICE_URL $SYSTEM_USER_CLIENT_ID $SYSTEM_USER_CLIENT_SECRET $PROJECTS_ES_URL $PROJECTS_ES_INDEX_NAME $RABBITMQ_URL $DIRECT_PROJECT_SERVICE_ENDPOINT $FILE_SERVICE_ENDPOINT $CONNECT_PROJECTS_URL $CONNECT_URL $ACCOUNTS_APP_URL $SEGMENT_ANALYTICS_KEY "$AUTH0_URL" "$AUTH0_AUDIENCE" $AUTH0_CLIENT_ID "$AUTH0_CLIENT_SECRET" $TOKEN_CACHE_TIME "$KAFKA_CLIENT_CERT" "$KAFKA_CLIENT_CERT_KEY" $KAFKA_GROUP_ID $KAFKA_URL "$AUTH0_PROXY_SERVER_URL" "$EMAIL_INVITE_FROM_NAME" "$EMAIL_INVITE_FROM_EMAIL" "$INVITE_EMAIL_SUBJECT" "$INVITE_EMAIL_SECTION_TITLE" $PORT $PORT $AWS_ECS_CLUSTER $AWS_REGION $NODE_ENV)
task_def=$(printf "$task_template" $1 $AWS_ACCOUNT_ID $AWS_ACCOUNT_ID $AWS_ECS_CONTAINER_NAME $AWS_ACCOUNT_ID $AWS_REGION $AWS_REPOSITORY $CIRCLE_SHA1 $2 $3 $4 $NODE_ENV $ENABLE_FILE_UPLOAD $LOG_LEVEL $CAPTURE_LOGS $LOGENTRIES_TOKEN $API_VERSION $AWS_REGION $AUTH_DOMAIN $AUTH_SECRET $VALID_ISSUERS $DB_MASTER_URL $MEMBER_SERVICE_ENDPOINT $IDENTITY_SERVICE_ENDPOINT $BUS_API_URL $MESSAGE_SERVICE_URL $SYSTEM_USER_CLIENT_ID $SYSTEM_USER_CLIENT_SECRET $PROJECTS_ES_URL $PROJECTS_ES_INDEX_NAME $DIRECT_PROJECT_SERVICE_ENDPOINT $FILE_SERVICE_ENDPOINT $CONNECT_PROJECTS_URL $CONNECT_URL $ACCOUNTS_APP_URL $SEGMENT_ANALYTICS_KEY "$AUTH0_URL" "$AUTH0_AUDIENCE" $AUTH0_CLIENT_ID "$AUTH0_CLIENT_SECRET" $TOKEN_CACHE_TIME "$KAFKA_CLIENT_CERT" "$KAFKA_CLIENT_CERT_KEY" $KAFKA_GROUP_ID $KAFKA_URL "$AUTH0_PROXY_SERVER_URL" "$EMAIL_INVITE_FROM_NAME" "$EMAIL_INVITE_FROM_EMAIL" "$INVITE_EMAIL_SUBJECT" "$INVITE_EMAIL_SECTION_TITLE" $PORT $PORT $AWS_ECS_CLUSTER $AWS_REGION $NODE_ENV)
}

push_ecr_image(){
Expand Down
Loading