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

Reuse StorageController for LDS #984

Merged
merged 4 commits into from
Nov 6, 2019
Merged

Reuse StorageController for LDS #984

merged 4 commits into from
Nov 6, 2019

Conversation

dplewis
Copy link
Member

@dplewis dplewis commented Nov 5, 2019

Can be useful for #967

  • Reduces the number of test and files.

Let me know if changes are needed.

Some of the promises could be written better.

Let me know if changes are needed.

Some of the promises could be written better.
@codecov
Copy link

codecov bot commented Nov 5, 2019

Codecov Report

Merging #984 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #984      +/-   ##
==========================================
+ Coverage   91.86%   91.87%   +0.01%     
==========================================
  Files          54       53       -1     
  Lines        5086     5073      -13     
  Branches     1147     1144       -3     
==========================================
- Hits         4672     4661      -11     
+ Misses        414      412       -2
Impacted Files Coverage Δ
src/CoreManager.js 100% <ø> (ø) ⬆️
src/StorageController.default.js 100% <100%> (ø) ⬆️
src/Storage.js 95.31% <100%> (+0.86%) ⬆️
src/LocalDatastore.js 99.13% <100%> (+0.83%) ⬆️
src/StorageController.react-native.js 100% <100%> (ø) ⬆️
src/LocalDatastoreController.react-native.js 100% <100%> (ø) ⬆️
src/StorageController.browser.js 100% <100%> (ø) ⬆️
src/LocalDatastoreController.js 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d42cd14...7620752. Read the comment docs.

@dplewis dplewis requested a review from acinader November 5, 2019 23:19
Copy link
Contributor

@acinader acinader left a comment

Choose a reason for hiding this comment

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

looks good to me!

see notes.

@dplewis dplewis requested a review from acinader November 6, 2019 01:13
Copy link
Contributor

@acinader acinader left a comment

Choose a reason for hiding this comment

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

lgtm

@dplewis dplewis merged commit fe5e21a into master Nov 6, 2019
@dplewis dplewis deleted the lds-storage branch November 6, 2019 01:26
@Brokray
Copy link

Brokray commented Jun 18, 2020

Hello @dplewis,

I just saw you added getAllKeys as a required method for a StorageController, could you explain me why so? Is that intended?

It seems to me that in the definition type of a StorageController there is no getAllKeys method expected.
Which statement should we believe?

Here you can find the change I am talking about.

@dplewis
Copy link
Member Author

dplewis commented Jun 18, 2020

That is intended for dumping the LocalDatastore.

If the definition type is missing can you add it?

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.

3 participants