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
+4
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,9 @@ The following parameters can be set in config files or in env variables:
24
24
- UBAHN_UPDATE_TOPIC: the update ubahn entity Kafka message topic, default value is 'u-bahn.action.update'
25
25
- UBAHN_DELETE_TOPIC: the delete ubahn entity Kafka message topic, default value is 'u-bahn.action.delete'
26
26
- UBAHN_AGGREGATE_TOPIC: the ubahn entity aggregate topic, that contains create, update and delete topics. Default value is 'u-bahn.action.aggregate'
27
+
- GROUPS_MEMBER_ADD_TOPIC: the add groups member Kafka message topic, default value is 'groups.notification.member.add'
28
+
- GROUPS_MEMBER_DELETE_TOPIC: the delete groups member Kafka message topic, default value is 'groups.notification.member.delete'
29
+
- GROUPS_MEMBERSHIP_TYPE: the groups membership type that should be processed, default value is 'user'
27
30
- ES.HOST: Elasticsearch host, default value is 'localhost:9200'
28
31
- ES.AWS_REGION: The Amazon region to use when using AWS Elasticsearch service, default value is 'us-east-1'
29
32
- ES.API_VERSION: Elasticsearch API version, default value is '7.4'
@@ -49,6 +52,7 @@ The following parameters can be set in config files or in env variables:
49
52
- ES.USER_ROLE_PROPERTY_NAME: the user property name of role, default value is 'roles',
50
53
- ES.USER_SKILL_PROPERTY_NAME: the user property name of skill, default value is 'skills'
51
54
- ES.ORGANIZATION_SKILLPROVIDER_PROPERTY_NAME: the org property name of org skill providers, default value is 'skillProviders'
55
+
- ES.USER_GROUP_PROPERTY_NAME: the user property name of group, default value is 'groups'
52
56
53
57
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
`{"topic":"groups.notification.member.delete","originator":"u-bahn-api","timestamp":"2019-07-08T00:00:00.000Z","mime-type":"application/json","payload":{"groupId":"036cc9c1-189a-4cf6-853b-0f5bc9b4ce75","name":".NET Taas Project","oldId":"20000335","memberId":"00000000","universalUID":"391a3656-9a01-47d4-8c6d-64b68c44f212"}}`
243
+
13. Watch the app console, It will show message successfully handled.
244
+
14. Run Command `npm run view-data user 391a3656-9a01-47d4-8c6d-64b68c44f212` to verify the elastic data
245
+
246
+
15. Repeat again and you will see error message in app console indicate not found error.
247
+
write message:
248
+
`{"topic":"groups.notification.member.delete","originator":"u-bahn-api","timestamp":"2019-07-08T00:00:00.000Z","mime-type":"application/json","payload":{"groupId":"036cc9c1-189a-4cf6-853b-0f5bc9b4ce75","name":".NET Taas Project","oldId":"20000335","memberId":"00000000","universalUID":"391a3656-9a01-47d4-8c6d-64b68c44f212"}}`
249
+
250
+
16. start kafka-console-producer to write messages to `u-bahn.action.delete`
0 commit comments