Closed jpye-finch closed 1 year ago
@jpye-finch when you create a integration. We should show an alert that the "Client secret" will visible one-time only.
@naftis @Zangetsu101 @jpye-finch Apologies I know I said we would not do a Webhook type, but I think we should after some thought. @Zangetsu101 @naftis We should create a new scope "webhook". Then in the webhooks microservice in the transformBirthBundle and transformDeathBundle have a different case for "webhook" which just sends only the child / deceased data for now. Additionally, we should have some validation so that only 1 National ID client can be created. Users can make as many Record Search, Health Notification and Webhook clients as they like, but if there was more than 1 nationalId client, we sould have technical problems. Can you create tasks for this and split this ticket up so that Robin or a SeamHealth developer can help?
Bug: when client name is already used, should through error - ‘Client name already being used.’& NID dropdown should not show as there is only one of this type allowed
@SyedaAfrida We are showing a warning instead of just straight up hiding the NID option in the type dropdown and the create button is also disabled in this case. And duplicate names are fine for integrations
@anny320 this ticket is fixed and can be closed
Completed
As a System admin, I want to create a new client integration
Description
Acceptance criteria
GIVEN I am a system admin WHEN I click New client on the Integration page THEN open the new client model
GIVEN I am creating a new client WHEN I add a name already used THEN show the error ‘Client name already being used.’
GIVEN I am creating a new client WHEN I select Health Notification THEN show the explainer copy for Health Notification
GIVEN I am creating a new client WHEN I select National ID THEN show the explainer copy for National ID
GIVEN I have created a National ID client WHEN I select the Type select THEN the option for National ID should not exist as there is only one of this type allowed
GIVEN I am creating a new client WHEN I select Record Search THEN show the explainer copy for Record Search
GIVEN I am creating a new client WHEN I select Webhook THEN show the explainer copy for Webhook
GIVEN I have added a name and select a type WHEN I click create THEN [show the loading state]
GIVEN the client has been created THEN show the keys
GIVEN there was an error creating the client THEN show the error. ‘There was a problem creating the client [Name]. Please try again.’
Design
https://www.figma.com/file/O6PevbBv0lApmXWYotR8sf/OpenCRVS-Design-Specifications-v2?node-id=8478%3A44119
Copy
Dev-tasks
4141
4146
4142
4170
performedBy
could be a User or a System - 1