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

Preloaded store #90

Merged
merged 4 commits into from
Dec 13, 2017
Merged

Preloaded store #90

merged 4 commits into from
Dec 13, 2017

Conversation

godu
Copy link
Contributor

@godu godu commented Dec 13, 2017

No description provided.

@coveralls
Copy link

coveralls commented Dec 13, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling 086af9c on preloaded-store into ca9f86f on master.

@godu
Copy link
Contributor Author

godu commented Dec 13, 2017

@godu godu requested review from dawee and jfmengels December 13, 2017 16:41
@coveralls
Copy link

coveralls commented Dec 13, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling 2e87b47 on preloaded-store into ca9f86f on master.


createSave(pathFS)(fetch$)
.toPromise()
.then(() => process.stdout.write('The end.\n'))
Copy link
Contributor

Choose a reason for hiding this comment

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

Par curiosité, pourquoi process.stdout.write plutôt que console.log ?

Copy link

Choose a reason for hiding this comment

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

Pour feinter le linter je dirais ^^.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

console.log c'est utilisé pour debugger. Là, je fais un CLI et c'est avec STDOUT que je veux travailler. J'ai assez subtil et discutable.

@@ -22,3 +23,16 @@ test("shouldn't throw error if file doesn't exist", async t => {
.toPromise();
t.deepEqual(events, []);
});

test("should load preloadedStore if fallback doesn't exists", async t => {
Copy link
Contributor

Choose a reason for hiding this comment

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

exists --> exist

Copy link
Contributor

Choose a reason for hiding this comment

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

Rajoute peut-être un test dans le cas où preloadedStore est undefined/null ?

@coveralls
Copy link

coveralls commented Dec 13, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling 6d577c3 on preloaded-store into ca9f86f on master.

Write ETCD folder in `preloadedStore` format.

```Shell
$ squirrel-dump --hosts localhost:2379 /etcd-folder ./dump.json
Copy link

Choose a reason for hiding this comment

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

Et du coup cette commande va aller dans un cron en prod ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

elle va aller dans la phase de build du mooc.

Copy link

Choose a reason for hiding this comment

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

Ok

@godu godu merged commit fe7337b into master Dec 13, 2017
@godu godu deleted the preloaded-store branch December 13, 2017 17:04
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.

None yet

4 participants