-
Notifications
You must be signed in to change notification settings - Fork 3
feat(js): add sticky assignment support through remote resolver fallback #48
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
Conversation
openfeature-provider/js/examples/FileBackedMaterializationRepo.ts
Outdated
Show resolved
Hide resolved
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.
There is still a lot of references to MaterializationRepository etc? Basically I don't expect any changes to public API at this point?
When it comes to tests I think we should focus on a few tests that verify the fallback works. Since this PR was opened there has been a lot of new network tests added that with test-helpers that mock the whole network. Should come in handy for this!
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.
There was some updates while I was reviewing so some comment might be outdated.
|
||
--- | ||
|
||
## Sticky Assignments |
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.
I think the docs are good, but could do a little more to explain that currently it comes with a drastic latency penalty? Like a styled info box.
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.
fixed
- Add sticky resolve support for materialized assignments - Implement RemoteResolverFallback as default strategy - Simplify public API to accept MaterializationRepository - Add router configuration for flags resolve endpoint 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> refactor: remove references to materialization repo test: changed tests
test: run e2e tests during make test ci: pass the environment vars into docker
feat: add e2e test support in Docker builds - Add all-e2e target that runs e2e tests with credentials - Default docker build skips e2e tests (no credentials needed) - CI runs all-e2e target with GitHub secrets - E2E tests skip gracefully when credentials not provided 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
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!
Summary
Adds sticky assignment support to the JavaScript OpenFeature provider using remote resolver fallback.
How it works
Key changes
ResolveWithStickyRequest
support in provider🤖 Generated with Claude Code