feat: added local persistence to ofrep-web provider#1508
feat: added local persistence to ofrep-web provider#1508jsalaber wants to merge 8 commits intoopen-feature:mainfrom
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces persistent local caching for the OFREP Web provider using localStorage, including a new Storage utility that hashes targeting keys for privacy. The provider now supports cache-first initialization and context changes, with options to disable this behavior. Feedback points out a missing import for GeneralError that would cause a runtime error, and recommends a stale-while-revalidate approach to ensure cached data is eventually refreshed from the network. Other suggestions include hardening localStorage and JSON parsing logic against exceptions, and ensuring the correct context is used when clearing the cache after evaluation failures.
9befa19 to
347de53
Compare
0443d45 to
4f9c6fe
Compare
4f9c6fe to
faf981c
Compare
Signed-off-by: Salaber <jason.salaber@dynatrace.com>
Signed-off-by: Salaber <jason.salaber@dynatrace.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Signed-off-by: Salaber <jason.salaber@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com> Signed-off-by: Salaber <jason.salaber@dynatrace.com>
c58734a to
7c9f570
Compare
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Signed-off-by: Salaber <jason.salaber@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com> Signed-off-by: Salaber <jason.salaber@dynatrace.com>
…o prefix local storage keys Signed-off-by: Salaber <jason.salaber@dynatrace.com>
ab29e37 to
9a7215a
Compare
beeme1mr
left a comment
There was a problem hiding this comment.
The ADR referenced in the PR has been closed. There's a new one but it hasn't been merged yet. Let's old off merging this until that ADR has been accepted.
This PR
ofrep-webproviderCACHEDwhen using cached valuesdisableLocalCacheoption to disable local cacheRelated Issues
Implements this ADR: open-feature/protocol#64