Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 9baf599

Browse files
author
sachin-maheshwari
authored
Merge pull request #40 from topcoder-platform/develop
Shapeup#4 CQRS standards update
2 parents e526503 + 51d0a68 commit 9baf599

File tree

20 files changed

+34
-4445
lines changed

20 files changed

+34
-4445
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ workflows:
7070
branches:
7171
only:
7272
- develop
73-
- feature/shapeup-cqrs-update
73+
- feature/shapeup-cqrs-update2
7474

7575
# Production builds are exectuted only on tagged commits to the
7676
# master branch.

README.md

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -20,70 +20,22 @@ The following parameters can be set in config files or in env variables:
2020
if not provided, then SSL connection is not used, direct insecure connection is used;
2121
if provided, it can be either path to private key file or private key content
2222
- KAFKA_GROUP_ID: the Kafka group id, default value is 'ubahn-processor-es'
23-
- UBAHN_CREATE_TOPIC: the create ubahn entity Kafka message topic, default value is 'u-bahn.action.create'
24-
- UBAHN_UPDATE_TOPIC: the update ubahn entity Kafka message topic, default value is 'u-bahn.action.update'
25-
- UBAHN_DELETE_TOPIC: the delete ubahn entity Kafka message topic, default value is 'u-bahn.action.delete'
26-
- UBAHN_AGGREGATE_TOPIC: the ubahn entity aggregate topic, that contains create, update and delete topics. Default value is 'u-bahn.action.aggregate'
2723
- GROUPS_MEMBER_ADD_TOPIC: the add groups member Kafka message topic, default value is 'groups.notification.member.add'
2824
- GROUPS_MEMBER_DELETE_TOPIC: the delete groups member Kafka message topic, default value is 'groups.notification.member.delete'
2925
- GROUPS_MEMBERSHIP_TYPE: the groups membership type that should be processed, default value is 'user'
3026
- ES_HOST: Elasticsearch host, default value is 'localhost:9200'
3127
- ES.AWS_REGION: The Amazon region to use when using AWS Elasticsearch service, default value is 'us-east-1'
32-
- ES.ACHIEVEMENT_PROVIDER_INDEX: Elasticsearch index name for achievement provider, default value is 'achievement_provider'
33-
- ES.ACHIEVEMENT_PROVIDER_TYPE: Elasticsearch index type for achievement provider, default value is '_doc'
34-
- ES.ATTRIBUTE_INDEX: Elasticsearch index name for attribute, default value is 'attribute'
35-
- ES.ATTRIBUTE_TYPE: Elasticsearch index type for attribute, default value is '_doc'
36-
- ES.ATTRIBUTE_GROUP_INDEX: Elasticsearch index name for attribute group, default value is 'attribute_group'
37-
- ES.ATTRIBUTE_GROUP_TYPE: Elasticsearch index type for attribute group, default value is '_doc'
38-
- ES.ORGANIZATION_INDEX: Elasticsearch index name for organization, default value is 'organization'
39-
- ES.ORGANIZATION_TYPE: Elasticsearch index type for organization, default value is '_doc'
40-
- ES.ROLE_INDEX: Elasticsearch index name for role, default value is 'role'
41-
- ES.ROLE_TYPE: Elasticsearch index type for role, default value is '_doc'
42-
- ES.SKILL_INDEX: Elasticsearch index name for skill, default value is 'skill'
43-
- ES.SKILL_TYPE: Elasticsearch index type for skill, default value is '_doc'
44-
- ES.SKILL_PROVIDER_INDEX: Elasticsearch index name for skill provider, default value is 'skill_provider'
45-
- ES.SKILL_PROVIDER_TYPE: Elasticsearch index type for skill provider, default value is '_doc'
46-
- ES.USER_INDEX: Elasticsearch index name for user, default value is 'user'
47-
- ES.USER_TYPE: Elasticsearch index type for user, default value is '_doc'
48-
- ES.USER_ACHIEVEMENT_PROPERTY_NAME: the user property name of achievement, default value is 'achievements',
49-
- ES.USER_EXTERNALPROFILE_PROPERTY_NAME: the user property name of externalProfile, default value is 'externalProfiles',
50-
- ES.USER_ATTRIBUTE_PROPERTY_NAME: the user property name of attribute, default value is 'attributes',
51-
- ES.USER_ROLE_PROPERTY_NAME: the user property name of role, default value is 'roles',
52-
- ES.USER_SKILL_PROPERTY_NAME: the user property name of skill, default value is 'skills'
53-
- ES.ORGANIZATION_SKILLPROVIDER_PROPERTY_NAME: the org property name of org skill providers, default value is 'skillProviders'
5428
- ES.USER_GROUP_PROPERTY_NAME: the user property name of group, default value is 'groups'
55-
- ATTRIBUTE_GROUP_PIPELINE_ID: The pipeline id for enrichment with attribute group. Default is `attributegroup-pipeline`
56-
- SKILL_PROVIDER_PIPELINE_ID: The pipeline id for enrichment with skill provider. Default is `skillprovider-pipeline`
5729
- USER_PIPELINE_ID: The pipeline id for enrichment of user details. Default is `user-pipeline`
58-
- ATTRIBUTE_GROUP_ENRICH_POLICYNAME: The enrich policy for attribute group. Default is `attributegroup-policy`
59-
- SKILL_PROVIDER_ENRICH_POLICYNAME: The enrich policy for skill provider. Default is `skillprovider-policy`
60-
- ROLE_ENRICH_POLICYNAME: The enrich policy for role. Default is `role-policy`
61-
- ACHIEVEMENT_PROVIDER_ENRICH_POLICYNAME: The enrich policy for achievement provider. Default is `achievementprovider-policy`
62-
- SKILL_ENRICH_POLICYNAME: The enrich policy for skill. Default is `skill-policy`
63-
- ATTRIBUTE_ENRICH_POLICYNAME: The enrich policy for skill. Default is `attribute-policy`
6430
- 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
6531
- ELASTICCLOUD_USERNAME: The elastic cloud username for basic authentication. Provide this only if your elasticsearch instance is hosted on elastic cloud
6632
- ELASTICCLOUD_PASSWORD: The elastic cloud password for basic authentication. Provide this only if your elasticsearch instance is hosted on elastic cloud
67-
- AUTH0_URL: The auth0 url, Default is 'https://topcoder-dev.auth0.com/oauth/token'
68-
- AUTH0_AUDIENCE: The auth0 audience for accessing ubahn api(s), Default is 'https://m2m.topcoder-dev.com/'
69-
- AUTH0_CLIENT_ID: The auth0 client id
70-
- AUTH0_CLIENT_SECRET: The auth0 client secret
71-
- AUTH0_PROXY_SERVER_URL: The auth0 proxy server url
72-
- TOKEN_CACHE_TIME: The token cache time
73-
- TOPCODER_GROUP_API: The topcoder groups api, Default is 'https://api.topcoder-dev.com/v5/groups'
7433

7534
There is a `/health` endpoint that checks for the health of the app. This sets up an expressjs server and listens on the environment variable `PORT`. It's not part of the configuration file and needs to be passed as an environment variable
7635

7736
Configuration for the tests is at `config/test.js`, only add such new configurations different from `config/default.js`
7837

7938
- WAIT_TIME: wait time used in test, default is 1500 or 1.5 second
80-
- ES.ACHIEVEMENT_PROVIDER_INDEX: Elasticsearch index name for achievement provider in testing environment
81-
- ES.ATTRIBUTE_INDEX: Elasticsearch index name for attribute in testing environment
82-
- ES.ATTRIBUTE_GROUP_INDEX: Elasticsearch index name for attribute group in testing environment
83-
- ES.ORGANIZATION_INDEX: Elasticsearch index name for organization in testing environment
84-
- ES.ROLE_INDEX: Elasticsearch index name for role in testing environment
85-
- ES.SKILL_INDEX: Elasticsearch index name for skill in testing environment
86-
- ES.SKILL_PROVIDER_INDEX: Elasticsearch index name for skill provider in testing environment
8739
- ES.USER_INDEX: Elasticsearch index name for user in testing environment
8840

8941
## Local Kafka and ElasticSearch setup
@@ -150,14 +102,3 @@ To run the UBahn ES Processor using docker, follow the below steps
150102
```
151103

152104
5. When you are running the application for the first time, It will take some time initially to download the image and install the dependencies
153-
154-
## Unit Tests and E2E Tests
155-
156-
- Run `npm run test` to execute unit tests.
157-
- Run `npm run test:cov` to execute unit tests and generate coverage report.
158-
- RUN `npm run e2e` to execute e2e tests.
159-
- RUN `npm run e2e:cov` to execute e2e tests and generate coverage report.
160-
161-
## Verification
162-
163-
see [VERIFICATION.md](VERIFICATION.md)

0 commit comments

Comments
 (0)