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

Migrating action creators to Redux saga #77

Merged
merged 37 commits into from
May 23, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
9428836
WiP
n1k0 May 20, 2016
2f6f6b5
First use of sagas. Champagne.
n1k0 May 20, 2016
6ae8bd5
Session setup flow migrated to saga.
n1k0 May 21, 2016
e48e4fd
Redux sagas are awesome.
n1k0 May 21, 2016
45ed59c
Simple actions, constant naming consistency.
n1k0 May 21, 2016
3636c3f
Let's use actual constants.
n1k0 May 21, 2016
7513b3a
Moved client to its own module.
n1k0 May 21, 2016
4c1bd40
Moved session sagas to their own module.
n1k0 May 21, 2016
14555ee
Bucket sagas.
n1k0 May 21, 2016
0960447
Added session saga listBuckets tests.
n1k0 May 21, 2016
7b6f3dc
Migrated bucket client actions to saga.
n1k0 May 22, 2016
a676b55
Collection crud complete.
n1k0 May 22, 2016
06c1e58
Collection sagas.
n1k0 May 22, 2016
fff2751
Record sagas
n1k0 May 22, 2016
bc861c2
Record update to saga
n1k0 May 22, 2016
a9e4edf
Bulk create records saga
n1k0 May 22, 2016
a80ab46
Extracted client from the sagas directory.
n1k0 May 22, 2016
ff3ae6f
Reorganized actions.
n1k0 May 22, 2016
64d4221
Discarded obsolete actions.
n1k0 May 22, 2016
3578a6b
Collection busy action.
n1k0 May 22, 2016
0a5607a
Removed obsolete resolve logic.
n1k0 May 22, 2016
7273790
Fixed tests.
n1k0 May 22, 2016
226582e
Better session tests.
n1k0 May 22, 2016
2821a40
Dropped time information from notifications.
n1k0 May 22, 2016
727414d
Actions API polishing.
n1k0 May 22, 2016
f09571a
Ensure sane coll properties default.
n1k0 May 22, 2016
fef5237
Complete session saga tests.
n1k0 May 22, 2016
3b45a24
Ensure spinners keep working.
n1k0 May 22, 2016
ba68e39
Dispatch listRecords actions instead of blocking.
n1k0 May 22, 2016
f39b8e7
Busy collection indicators.
n1k0 May 22, 2016
fd94fdd
Bucket saga tests.
n1k0 May 22, 2016
28d81b5
Collection saga tests.
n1k0 May 23, 2016
14bf796
Added missing test file, eslint rules.
n1k0 May 23, 2016
7bb0cae
package.json spring cleaning.
n1k0 May 23, 2016
c180b2b
Do no assume the default_bucket plugin is installed.
n1k0 May 23, 2016
1ff3b66
Do no assume the default_bucket plugin is installed, bis.
n1k0 May 23, 2016
3ec0781
Do no assume the default_bucket plugin is installed, ter.
n1k0 May 23, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"presets": ["react", "es2015"],
"plugins": [
"babel-plugin-transform-runtime",
"transform-object-rest-spread",
"transform-class-properties"
],
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sudo: false
language:
- node_js
node_js:
- "4"
- "6"
env:
- ACTION=test
- ACTION="run lint"
Expand Down
11 changes: 3 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@
"dependencies": {
"btoa": "^1.1.2",
"codemirror": "^5.13.2",
"diff": "^2.2.2",
"express": "^4.13.3",
"extract-text-webpack-plugin": "^1.0.1",
"history": "^1.17.0",
"json-stable-stringify": "^1.0.1",
"kinto-client": "^0.6.0",
"node-fs-extra": "^0.8.1",
"react": "^15.0.1",
Expand All @@ -39,8 +37,8 @@
"react-redux": "^4.0.0",
"react-router": "^1.0.0",
"redux": "^3.0.4",
"redux-saga": "^0.10.4",
"redux-simple-router": "0.0.10",
"redux-thunk": "^2.0.1",
"webpack": "^1.10.5",
"yargs": "^4.4.0"
},
Expand All @@ -52,27 +50,24 @@
"babel-plugin-react-transform": "^2.0.2",
"babel-plugin-transform-class-properties": "^6.6.0",
"babel-plugin-transform-object-rest-spread": "^6.6.5",
"babel-plugin-transform-runtime": "^6.9.0",
"babel-preset-es2015": "^6.6.0",
"babel-preset-react": "^6.5.0",
"bootstrap": "^3.3.6",
"btoa": "^1.1.2",
"chai": "^3.3.0",
"css-loader": "^0.23.1",
"eslint": "^2.7.0",
"eslint-plugin-react": "^4.2.3",
"fake-indexeddb": "1.0.3",
"file-loader": "^0.8.5",
"gh-pages": "^0.11.0",
"html": "0.0.10",
"jsdom": "^8.3.0",
"json-loader": "^0.5.4",
"mocha": "^2.3.0",
"mocha": "^2.5.1",
"react-addons-test-utils": "^15.0.1",
"react-transform-catch-errors": "^1.0.0",
"react-transform-hmr": "^1.0.1",
"redbox-react": "^1.2.3",
"redux-mock-store": "^1.0.2",
"rewire": "^2.5.1",
"rimraf": "^2.4.4",
"sinon": "^1.17.2",
"style-loader": "^0.13.1",
Expand Down
24 changes: 24 additions & 0 deletions scripts/actions/bucket.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import {
COLLECTION_LOAD_REQUEST,
COLLECTION_CREATE_REQUEST,
COLLECTION_UPDATE_REQUEST,
COLLECTION_DELETE_REQUEST,
} from "../constants";



export function loadCollection(bid, cid) {
return {type: COLLECTION_LOAD_REQUEST, bid, cid};
}

export function createCollection(bid, collectionData) {
return {type: COLLECTION_CREATE_REQUEST, bid, collectionData};
}

export function updateCollection(bid, cid, collectionData) {
return {type: COLLECTION_UPDATE_REQUEST, bid, cid, collectionData};
}

export function deleteCollection(bid, cid) {
return {type: COLLECTION_DELETE_REQUEST, bid, cid};
}
207 changes: 0 additions & 207 deletions scripts/actions/client.js

This file was deleted.

Loading