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

Add support for generic persistence interface -- alternative 1 #27

Merged
merged 21 commits into from Aug 26, 2021

Conversation

solid-yuriiprykhodko
Copy link
Collaborator

Resolves #23
Alternative to #26

Abstracts away only the key-value store.
The persistence key and also the hydrate and persist callbacks are kept in the HydratedSubject class, avoiding breaking changes.

@solid-yuriiprykhodko solid-yuriiprykhodko self-assigned this Aug 19, 2021
Copy link
Collaborator

@solid-software solid-software left a comment

Choose a reason for hiding this comment

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

Nicely done @solid-yuriiprykhodko! I've added a couple of comments - please review and let me know what you think. Great addition to the hydrated plugin.

lib/src/hydrated.dart Show resolved Hide resolved
lib/src/hydrated.dart Show resolved Hide resolved
lib/src/hydrated.dart Outdated Show resolved Hide resolved
lib/src/hydrated.dart Outdated Show resolved Hide resolved
lib/src/persistence/persistence_error.dart Outdated Show resolved Hide resolved
lib/src/persistence/persistence_error.dart Outdated Show resolved Hide resolved
@solid-yuriiprykhodko
Copy link
Collaborator Author

cc @solid-software
Added a few more unit-tests, and made some fixes to the implementation along the way.

Overall coverage rate:
  lines......: 94.7% (89 of 94 lines)

Coverage HTML report:
coverage.zip

Copy link
Collaborator

@solid-software solid-software left a comment

Choose a reason for hiding this comment

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

LGTM - thanks @solid-yuriiprykhodko !

@solid-software solid-software merged commit b31e6df into master Aug 26, 2021
@solid-software solid-software deleted the feature/generic_persistence_alternative branch August 26, 2021 12:53
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.

Consider supporting a generic persistence interface
3 participants