Skip to content

Commit

Permalink
Release/v9.3.1 snapshot (#193)
Browse files Browse the repository at this point in the history
* added actions for separate position topics
  • Loading branch information
vgenev committed Mar 4, 2020
1 parent 3983b4f commit 0160aad
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mojaloop/central-services-shared",
"version": "9.3.0",
"version": "9.3.1-snapshot",
"description": "Shared code for central services",
"main": "src/index.js",
"scripts": {
Expand Down Expand Up @@ -54,7 +54,8 @@
"immutable": "3.8.2",
"lodash": "4.17.15",
"mustache": "4.0.0",
"raw-body": "2.4.1"
"raw-body": "2.4.1",
"winston": "^3.2.1"
},
"devDependencies": {
"@hapi/hapi": "19.1.1",
Expand Down
2 changes: 2 additions & 0 deletions src/enums/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ const Event = {
LIMIT_ADJUSTMENT: 'limit-adjustment',
LOOKUP: 'lookup',
POSITION: 'position',
POSITION_PREPARE: 'position-prepare',
POSITION_FULFIL: 'position-fulfil',
PREPARE: 'prepare',
PREPARE_DUPLICATE: 'prepare-duplicate',
PROCESSING: 'processing',
Expand Down
16 changes: 12 additions & 4 deletions src/enums/kafka.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@ const TopicMap = {
position: {
'bulk-commit': {
functionality: transferEventType.TRANSFER,
action: transferEventAction.POSITION
action: transferEventAction.POSITION_FULFIL
},
'bulk-prepare': {
functionality: transferEventType.TRANSFER,
action: transferEventAction.POSITION
action: transferEventAction.POSITION_PREPARE
},
'bulk-timeout-received': {
functionality: transferEventType.TRANSFER,
Expand All @@ -158,11 +158,19 @@ const TopicMap = {
},
prepare: {
functionality: transferEventType.TRANSFER,
action: transferEventAction.POSITION
action: transferEventAction.POSITION_PREPARE
},
commit: {
functionality: transferEventType.TRANSFER,
action: transferEventAction.POSITION
action: transferEventAction.POSITION_FULFIL
},
'position-prepare': {
functionality: transferEventType.TRANSFER,
action: transferEventAction.POSITION_PREPARE
},
'position-fulfil': {
functionality: transferEventType.TRANSFER,
action: transferEventAction.POSITION_FULFIL
},
'timeout-reserved': {
functionality: transferEventType.TRANSFER,
Expand Down

0 comments on commit 0160aad

Please sign in to comment.