Skip to content

Аdded limit-adjustment action to the action map for topic naming, and message for initial limit - #238

Merged
vgenev merged 9 commits into
mojaloop:masterfrom
vgenev:feature/566-ext
Feb 6, 2019
Merged

vgenev merged 9 commits into
mojaloop:masterfrom
vgenev:feature/566-ext

Conversation

@vgenev

@vgenev vgenev commented Jan 28, 2019

Copy link
Copy Markdown
Contributor

No description provided.

@vgenev vgenev self-assigned this Jan 28, 2019
@vgenev
vgenev requested review from bothadeon and rmothilal January 28, 2019 11:51
@vgenev
vgenev requested a review from ggrg February 5, 2019 13:41
@vgenev vgenev changed the title added limit-adjustment action to the action map for topic nameing added limit-adjustment action to the action map for topic nameing, and message for initial limit Feb 5, 2019
@vgenev vgenev changed the title added limit-adjustment action to the action map for topic nameing, and message for initial limit Аdded limit-adjustment action to the action map for topic naming, and message for initial limit Feb 5, 2019
Comment thread src/domain/participant/index.js Outdated
limitAndInitialPosition.initialPosition = Config.PARTICIPANT_INITIAL_POSTITION
}
let payload = Object.assign({}, limitAndInitialPositionObj, {name: participantName})
await Utility.produceGeneralMessage(TransferEventType.NOTIFICATION, 'limit-adjustment', createLimitAdjustmentMessageProtocol(payload), Utility.ENUMS.STATE.SUCCESS)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add enum and refer to it instead of using a string within the code here and also on the following lines: 460, 467. I would go with either limitEventAction.LIMIT_ADJUSTMENT or eventAction.LIMIT_ADJUSTMENT.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

id: Uuid(),
from: payload.name,
to: 'SYSTEM',
to: Config.HUB_NAME,

@ggrg ggrg Feb 5, 2019 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we have config Config.HUB_PARTICIPANT.NAME in central-settlement, probably it's good idea to unify it. More info.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is due to the use of RC module. I can delete the RC values in central-settlement and it will be the same on all places, including CEP.

@ggrg

ggrg commented Feb 6, 2019

Copy link
Copy Markdown
Member

@vgenev, please commit your changes, if you're done.

@ggrg ggrg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@vgenev
vgenev merged commit c2d6502 into mojaloop:master Feb 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants