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

Refactor: add init method and onReadyFromCacheCb param to storage factory [WIP] #352

Draft
wants to merge 6 commits into
base: development
Choose a base branch
from

Conversation

EmilianoSanchez
Copy link
Contributor

@EmilianoSanchez EmilianoSanchez commented Oct 1, 2024

JavaScript commons library

What did you accomplish?

  • Added init storage method to support lazy initialization of Pluggable and Redis storages.
  • Added onReadyFromCacheCb to storage factory params to handle the emittion of the SDK_SPLITS_CACHE_LOADED (and SDK_READY_FROM_CACHE) event in a single place, making possible to remove some redundant code.

How do we test the changes introduced in this PR?

Extra Notes

  • [TODO] Implement InRedisStorage::init
  • [TODO] Unit tests

@EmilianoSanchez EmilianoSanchez marked this pull request as ready for review October 9, 2024 13:57
@EmilianoSanchez EmilianoSanchez requested a review from a team as a code owner October 9, 2024 13:57
@EmilianoSanchez EmilianoSanchez changed the base branch from SDKS-8407_baseline to init_function_for_side_effects October 18, 2024 14:57
@EmilianoSanchez EmilianoSanchez changed the title Refactor: add onReadyFromCacheCb to storage factory params for code cleanup Refactor: add init method and onReadyFromCacheCb param to storage factory [WIP] Oct 18, 2024
Base automatically changed from init_function_for_side_effects to SDKS-8407_baseline October 18, 2024 15:04
@EmilianoSanchez EmilianoSanchez marked this pull request as draft October 18, 2024 15:11
@EmilianoSanchez EmilianoSanchez changed the base branch from SDKS-8407_baseline to breaking_changes_baseline October 18, 2024 19:30
Base automatically changed from breaking_changes_baseline to SDKS-8407_baseline November 1, 2024 20:46
Base automatically changed from SDKS-8407_baseline to development November 2, 2024 00:30
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.

1 participant