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
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# Identity - Data Processor
2
2
3
+
Creates user in u-bahn when they sign up on Topcoder. Also updates their availability status in u-bahn based on their account activation status in Topcoder
4
+
3
5
## Dependencies
4
6
5
7
- Nodejs(v12+)
@@ -33,6 +35,7 @@ The following parameters can be set in config files or in env variables:
33
35
- ATTRIBUTE_GROUP_NAME: The attribute group name
34
36
- SKILL_PROVIDER_NAME: The skill provider name. Not in use anymore. Retained for any future use
35
37
- ORGANIZATION_NAME: The organization name
38
+
- MEMBER_PROFILE_URL_PREFIX: The member's profile url prefix. Defaults to `'https://www.topcoder.com/members/'` - don't forget the `/` at the end
36
39
37
40
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
5. Watch the app console. It will show message successfully handled. The log should look like:
15
+
```
16
+
info: user: theuserhandle created
17
+
debug: Sleeping for 1000 ms
18
+
info: external profile: 36ed815b-3da1-49f1-a043-aaed0a4e81ad created
19
+
debug: Sleeping for 1000 ms
20
+
info: user attribute: isAvailable created
21
+
debug: Sleeping for 1000 ms
22
+
info: user attribute: company created
23
+
debug: Sleeping for 1000 ms
24
+
info: user attribute: title created
25
+
debug: Sleeping for 1000 ms
26
+
info: user attribute: location created
27
+
debug: Sleeping for 1000 ms
28
+
info: user attribute: email created
29
+
debug: EXIT handle
30
+
debug: Successfully processed message
31
+
debug: Commiting offset after processing message
32
+
```
33
+
6. Now, write the following message: `{"topic":"identity.notification.create","originator":"identity-service","timestamp":"2019-07-08T00:00:00.000Z","mime-type":"application/json","payload":{"id":"10000001","modifiedBy":null,"modifiedAt":"2021-04-07T15:02:18.72Z","createdBy":null,"createdAt":"2021-04-07T15:02:18.72Z","handle":"theuserhandle","email":"[email protected]","firstName":"User","lastName":"Member","credential":{"activationCode":"ABCDEFGHIJK","resetToken":null,"hasPassword":true},"profiles":null,"status":"A","country":null,"regSource":null,"utmSource":null,"utmMedium":null,"utmCampaign":null,"roles":null,"ssoLogin":false,"active":true,"profile":null,"emailActive":true}}`
34
+
7. Watch the app console. It will show message successfully handled. The log should look like:
0 commit comments