Skip to content

[WIP] [Pluggable storage] wrapper adapter - #19

Merged
EmilianoSanchez merged 18 commits into
pluggable_storage_baselinefrom
pluggable_storage_wrapper_adapter
Apr 30, 2021
Merged

[WIP] [Pluggable storage] wrapper adapter#19
EmilianoSanchez merged 18 commits into
pluggable_storage_baselinefrom
pluggable_storage_wrapper_adapter

Conversation

@EmilianoSanchez

Copy link
Copy Markdown
Contributor

Javascript commons library

What did you accomplish?

  • Added a Wrapper Adapter (similar to RedisAdapter), to:

    • handle exceptions on custom wrapper calls.
    • sanitize the return values.
  • Added Wrapper mock in memory for testing.

How do we test the changes introduced in this PR?

  • Added unit tests for the wrapper adapter.

Extra Notes

Comment thread src/storages/pluggable/constants.ts Outdated
@@ -0,0 +1 @@
export const logPrefix = 'storage:pluggable:';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggestion that I'm not sure if we are following everywhere: an usual convention for managing constants is to write them UPPER_CASE (and snake_case)

@EmilianoSanchez EmilianoSanchez changed the title [Pluggable storage] Wrapper Adapter [WIP] [Pluggable storage] wrapper adapter Apr 27, 2021
@EmilianoSanchez
EmilianoSanchez merged commit 634d694 into pluggable_storage_baseline Apr 30, 2021
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.

2 participants