Skip to content
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.

add DynamoDB context store implementation #37

Merged
merged 1 commit into from
Jun 25, 2019
Merged

add DynamoDB context store implementation #37

merged 1 commit into from
Jun 25, 2019

Conversation

rossiam
Copy link
Contributor

@rossiam rossiam commented Jun 19, 2019

Added an implementation of the new context store using DynamoDB.

@rossiam rossiam requested a review from erodewald June 19, 2019 16:14

@Override
public void add(DefaultInstalledAppContext context) {
Table table = dynamoDB.getTable("InstalledAppContext");
Copy link
Member

Choose a reason for hiding this comment

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

It wasn't in the requirements, but I think that this plugin should name tables and keys in the exact same manner as the NodeSDK to make the data compatible regardless of the SDK language.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I changed this. :-(

I didn't include the client id and secret and wrote the following two issues to remove them from the NodeJS context store implementations:

SmartThingsCommunity/dynamodb-context-store-nodejs#1
SmartThingsCommunity/firestore-context-store-nodejs#10

I'm also still including token expirations and scope which are not included in the NodeSDK version.

smartapp-core/README.md Show resolved Hide resolved
@rossiam rossiam requested a review from erodewald June 25, 2019 15:10
@rossiam rossiam merged commit 1c235ca into SmartThingsCommunity:master Jun 25, 2019
@rossiam rossiam deleted the dynamodb_context_store branch June 25, 2019 19:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants