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
Reduces complexity, improves readability - Enables future changes to be made more easily
Description
Currently the DynamoDB stream adapter for the Total Occurrence lambda has logic to determine whether an item is an occurrence or a total. This duplicates checks that occur in the Domain and ultimately makes the adapter much harder to test and read.
Updating the adapter to simply just map the DynamoDB stream record to a flat TS type that is provided to the domain would improve the readability of this lambda's code dramatically.
Acceptance Criteria
AC01
Update the DynamoDB stream adapter for the total occurrence lambda to only map from stream event to a TS type
Both total and occurrence items should map to the same type
The domain should then differentiate between the two, rather than the adapter performing this task
AC02
The behavior of the lambda should otherwise be unchanged.
The text was updated successfully, but these errors were encountered:
Value Added
Reduces complexity, improves readability - Enables future changes to be made more easily
Description
Currently the DynamoDB stream adapter for the Total Occurrence lambda has logic to determine whether an item is an occurrence or a total. This duplicates checks that occur in the Domain and ultimately makes the adapter much harder to test and read.
Updating the adapter to simply just map the DynamoDB stream record to a flat TS type that is provided to the domain would improve the readability of this lambda's code dramatically.
Acceptance Criteria
AC01
AC02
The text was updated successfully, but these errors were encountered: