You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 13, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
-59Lines changed: 0 additions & 59 deletions
Original file line number
Diff line number
Diff line change
@@ -20,70 +20,22 @@ The following parameters can be set in config files or in env variables:
20
20
if not provided, then SSL connection is not used, direct insecure connection is used;
21
21
if provided, it can be either path to private key file or private key content
22
22
- 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'
27
23
- GROUPS_MEMBER_ADD_TOPIC: the add groups member Kafka message topic, default value is 'groups.notification.member.add'
28
24
- GROUPS_MEMBER_DELETE_TOPIC: the delete groups member Kafka message topic, default value is 'groups.notification.member.delete'
29
25
- GROUPS_MEMBERSHIP_TYPE: the groups membership type that should be processed, default value is 'user'
30
26
- ES_HOST: Elasticsearch host, default value is 'localhost:9200'
31
27
- 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'
54
28
- 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`
57
29
- 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`
64
30
- 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
65
31
- ELASTICCLOUD_USERNAME: The elastic cloud username for basic authentication. Provide this only if your elasticsearch instance is hosted on elastic cloud
66
32
- 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'
74
33
75
34
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
76
35
77
36
Configuration for the tests is at `config/test.js`, only add such new configurations different from `config/default.js`
78
37
79
38
- 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
87
39
- ES.USER_INDEX: Elasticsearch index name for user in testing environment
88
40
89
41
## Local Kafka and ElasticSearch setup
@@ -150,14 +102,3 @@ To run the UBahn ES Processor using docker, follow the below steps
150
102
```
151
103
152
104
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.
0 commit comments