Service - User Contact Manager
Revision as of 02:46, 10 November 2020 by Sven the Barbarian (talk | contribs) (→Creating a new notification group)
Overview
Manages contact methods available to users. Records each users contacts.
Repository
... (not yet configured)
DynamoDB tables
Standard Config Table Per Service
Configuration tags
- configKey = method, configTag = {methodTag}
- configValue example
{
// .. other method level configuration options, eg which locations the method is available in
"endpoint": {
"endpoint": {eg: Lambda function name}
"service_type": {eg: "Lambda"} //service type tag, at the moment only "Lambda"
}
}
UserContacts
Fields
- userId
- (partition key)
- userContactId
- (sort key)
- comes from {methodTag}_{hash of contactName}
- userContactName is set by the method handler service
Creating a new user contact
- This service presents a list of available contact methods
- User choses one and and is directed to that contact method handler to create the actual entry
- Once the user contact is created in the handler service a message gets sent to this service which creates it's own UserContacts record
Creating a new notification group
- This service presents a list of the users contacts
- User choses one and is directed to Notification Manager service
- For the endpoint given to Notification Manager try having notifications go directly to the contact method handler, another option would be to pass back through this service
- Notification Manager completes the flow, creating a notification group and associated notification records
Location specific contact methods
- Could add ways of restricting the available contact methods to ones the user is likely to want
- eg: by location (eg country)
- but have a way that the user can choose any method
Notes
- If method handler changes the contactName, a message will be sent to User Contact Manager to update its record, contactName is part of the sort key, not sure if it can be updated, if not need to copy the record to a new record with the updated contactName
- If method handler disables a contact, disable here and send message to Notification Manager service which will disable notifications and tell Activity Switchboard service to remove all associated triggers
Ideas
...