Skip to content
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(server): add in memory provider #585

Merged

Conversation

luizgribeiro
Copy link
Contributor

This PR

Implements the following features for inMemoryProvider:

  • default value for flags
  • reason for flag evaluation
  • Context based evaluation

Related Issues

It's part of #565

Follow-up Tasks

  • Update docs

How to test

Unit tests were also implemented to assure that it is working

@luizgribeiro luizgribeiro requested a review from a team as a code owner October 9, 2023 23:17
@luizgribeiro luizgribeiro changed the title feat: add in memory provider (server) feat!: add in memory provider (server) Oct 9, 2023
@toddbaert
Copy link
Member

toddbaert commented Oct 10, 2023

Hey @luizgribeiro I think the only thing we need here is the provider code. You can remove the CHANGELOG.md, README.md, and all the other files (like the tsconfig, etc). Basically just add the actual provider files into /packages/server and we should be good. You can also add some of the doc from README.md to the server README.md.

There's also a couple lint errors, and some imports are broken (you will need to use relative imports for the stuff from the server package, or import from @openfeature/shared for things common to both the web/server SDKs).

Lastly - a question - is this actually a breaking change? I don't think so 🤔

@toddbaert toddbaert changed the title feat!: add in memory provider (server) feat: add in memory provider (server) Oct 10, 2023
@beeme1mr beeme1mr changed the title feat: add in memory provider (server) feat(server): add in memory provider Oct 10, 2023
Copy link

@Kavindu-Dodan Kavindu-Dodan left a comment

Choose a reason for hiding this comment

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

Approving the overal completeness of the implementation. Please check language specific reviews prior to merging.

@toddbaert toddbaert merged commit 5e044ef into open-feature:main Oct 11, 2023
toddbaert pushed a commit that referenced this pull request Oct 11, 2023
🤖 I have created a release *beep* *boop*
---


##
[1.6.0](js-sdk-v1.5.0...js-sdk-v1.6.0)
(2023-10-11)


### Features

* **server:** add in memory provider
([#585](#585))
([5e044ef](5e044ef))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants