-
Notifications
You must be signed in to change notification settings - Fork 12
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
major: ACNA-2584 - add Adobe App Builder State Store #134
Conversation
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.
Nice!
I've added a few inline comments already.
There is a lot of cp/paste from StateStore.js
into AdobeStateStore.js
but it would also be unnecessary work to support the StateStore.js
interface for the App Builder Storage State service as the CosmosDB implementation differs in the API, input validation, limits,..
Maybe we are better off ditching the CosmosDB support + generic interface altogether and focusing on supporting one implementation.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #134 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 6 6
Lines 173 166 -7
Branches 36 29 -7
=========================================
- Hits 173 166 -7 ☔ View full report in Codecov by Sentry. |
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.
lgtm!
Few esthetics nitpicks
@moritzraho @shazron What will be impact on support of BYO creds by not sticking to generic interface? Will it mean that the new state lib will not support BYO creds now? |
Moritz and I discussed this: since this is a major version update, we won't break existing users since if they want to do BYO creds for CosmosDB, they can use the previous major version. We can have a 2.x branch there if we need to patch for security updates but going forward we will only develop for 3.x (this update). |
@shazron Please tell me, is it possible to specify search criteria as get parameters? I haven't found any documentation on the state of the Adobe App Builder Store. |
Hey @shazron Please tell me where I can look at the documentation for Adobe State Store? I see that all requests go to the https://storage-state-amer.app-builder.adp.adobe.io domain or http://storage-state-amer.stg.app-builder.corp.adp.adobe.io, but I didn’t find any documentation about what other endpoints are provided? Regards, |
Hi @evgeniykapelko, thanks for your interest! |
this PR was merged, but reverted. New PR with the same changes at #135 |
This is a breaking change. The CosmosDB State Store has been removed, and we will be using our own State Store.
Note for
put
, the new restriction is we can only push strings, not any other types like objects.The change has been designed to be "drop in" for existing users, so they won't need to change their code except if they have been pushing non-string data to the state store, they will have to stringify their values now.
How Has This Been Tested?
Note that the e2e tests will only run in node-16, for node-18+ you will need this update in @adobe/aio-lib-core-networking: adobe/aio-lib-core-networking@87a2e7f
MERGING NOTES (DO NOT MERGE UNTIL COMPLETED)
lib/constants.js
Types of changes
Checklist: