-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(idempotency): Add persistence layer and DynamoDB implementation #1110
Merged
Merged
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
51104f6
feat: initial idempotency classes
vgphoenixcampos d54e22e
feat: refactor persistence layer classes into their own folder
vgphoenixcampos 6ea753e
feat: rename idempotency config to differentiate from idempotency opt…
vgphoenixcampos c5f2144
feat: added type for a generic function
vgphoenixcampos ab254c6
feat: remove idempotency configuration for this FR
vgphoenixcampos 8677376
feat: refactored type of function to accept any combo of parameters
vgphoenixcampos b955ac4
feat: adding PersistenceLayer
jeffrey-baker-vg c8776d2
feat: PersistenceLayer unit tests for saveInProgress
jeffrey-baker-vg f258d55
feat: added saveSuccess
jeffrey-baker-vg edc9b33
feat: added getRecord
jeffrey-baker-vg dfc72c0
feat: added delete record
jeffrey-baker-vg 4d63218
feat: branch coverage and cleaning up imports
jeffrey-baker-vg d92efb1
feat: added more tests
jeffrey-baker-vg 5258d10
feat: deleted unused methods
jeffrey-baker-vg 5d82215
feat: added comments
jeffrey-baker-vg 95004c2
feat: implement get command for dynamo persistence layer
KevenFuentes9 c5a9335
feat: implement get command for dynamo persistence layer
KevenFuentes9 3d1f52c
feat: allow for data attr to be passed and return in persistence laye…
KevenFuentes9 0a6e839
feat: added implementation for delete, update, put
vgphoenixcampos b9ae754
feat: create condition on put for not in progress status
vgphoenixcampos 2cd4390
feat: use inprogress enum for status
vgphoenixcampos 01bcc99
feat: added error when unable to get record for idempotency key
vgphoenixcampos c1a6c60
feat: added error for conditional write of an existing record
vgphoenixcampos 1011002
feat: tests added for put record on dynamo persistence layer
vgphoenixcampos adcfab3
feat: implemented the idempotency record functions for status, expiry…
KevenFuentes9 9f0535e
test: check if the status is expired
KevenFuentes9 9bf7885
test: idempotency record is not expired and status maintained
KevenFuentes9 ffb2c22
feat: added tests for get record
vgphoenixcampos ec31dbb
feat: add aws-sdk-client-mock jest assertion library
vgphoenixcampos 48dfdec
feat: add unit tests for update record and delete record
vgphoenixcampos f666dfa
feat: remove optional chaining from item made unnecessary with error …
vgphoenixcampos 0945801
feat: remove unused block
vgphoenixcampos e161521
feat: refactored mock child class to be shared amongst dynamo persist…
vgphoenixcampos 9efeae0
test: add path to get the response data from the data record
KevenFuentes9 0fea9f3
feat: added branch to handle conditional check failure
vgphoenixcampos b4165bd
feat: add configuration option to dynamo client creation to remove un…
vgphoenixcampos d1dad17
feat: change how time is measured to seconds
vgphoenixcampos b9afc2a
feat: change type of the response/result to a record
vgphoenixcampos 0ec8301
feat:updated imports
jeffrey-baker-vg 8e97a61
refactor: create constructor object for dynamo persistence layer
vgphoenixcampos afb9523
fix: remove temp eslint disable
vgphoenixcampos 8a031ca
fix: adjust verbiage on test blocks
vgphoenixcampos f476e21
style: put constructor parameters onto one line for readability
vgphoenixcampos a044fa6
fix: update dynamo persistence layer tests to use new construtor opt…
vgphoenixcampos cefae2d
Merge branch 'main' of github.com:jeffrey-baker-vg/aws-lambda-powerto…
vgphoenixcampos dd979a8
fix: remove unneeded eslint ignore from persistence layer
vgphoenixcampos b290d19
style: put parameters for dynamo client command object onto one line …
vgphoenixcampos f76c720
fix: move lib-dynamo dep under the correct package
vgphoenixcampos b4931bf
refactor: change idempotency record to use options object in contructor
vgphoenixcampos 9b4787a
feat: add consistent read to dynamo persistence layer
vgphoenixcampos 08598f9
fix: revert changes to layer-publisher package-lock
vgphoenixcampos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat: added implementation for delete, update, put
- Loading branch information
commit 0a6e83982f08231a3861fbe5010196cf86f0f0c4
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we break this into multiple lines for readability?