Skip to content

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

Draft
EmilianoSanchez wants to merge 10 commits into
developmentfrom
refactor_storage_emits_ready_from_cache
Draft

Refactor: add init method and onReadyFromCacheCb param to storage factory [WIP]#352
EmilianoSanchez wants to merge 10 commits into
developmentfrom
refactor_storage_emits_ready_from_cache

Conversation

@EmilianoSanchez

@EmilianoSanchez EmilianoSanchez commented Oct 1, 2024

Copy link
Copy Markdown
Contributor

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 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

1 participant