Skip to content

Conversation

@EmilianoSanchez
Copy link
Contributor

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

@EmilianoSanchezEmilianoSanchez marked this pull request as ready for review October 9, 2024 13:57
@EmilianoSanchezEmilianoSanchez requested a review from a team as a code ownerOctober 9, 2024 13:57
@EmilianoSanchezEmilianoSanchez changed the base branch from SDKS-8407_baseline to init_function_for_side_effectsOctober 18, 2024 14:57
@EmilianoSanchezEmilianoSanchez changed the title Refactor: add onReadyFromCacheCb to storage factory params for code cleanupRefactor: 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_baselineOctober 18, 2024 15:04
@EmilianoSanchezEmilianoSanchez marked this pull request as draft October 18, 2024 15:11
@EmilianoSanchezEmilianoSanchez changed the base branch from SDKS-8407_baseline to breaking_changes_baselineOctober 18, 2024 19:30
Base automatically changed from breaking_changes_baseline to SDKS-8407_baselineNovember 1, 2024 20:46
Base automatically changed from SDKS-8407_baseline to developmentNovember 2, 2024 00:30
Sign up for freeto 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

@EmilianoSanchez