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 CRUD functionality to eventespresso/core wp.data store. #780

Closed
wants to merge 94 commits into from
Closed
Show file tree
Hide file tree
Changes from 90 commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
bf34a46
initial commit for creating pull
nerrad Nov 13, 2018
8834468
dispatch resolution for `getEntityById` when new entities are added f…
nerrad Nov 14, 2018
b85c065
latest work
nerrad Nov 18, 2018
8808625
yet more updates
nerrad Nov 24, 2018
1086e75
rename and update
nerrad Nov 24, 2018
6e4129a
more updates to files
nerrad Nov 26, 2018
fb13649
use constants for reducer key
nerrad Nov 27, 2018
f25ab92
more updates
nerrad Dec 4, 2018
beabf8c
update for model specific selectors, actions, resolvers
nerrad Dec 4, 2018
cd80bbd
adding tests and related fixes
nerrad Dec 10, 2018
c07c75c
more tests and fixes from doing tests
nerrad Dec 12, 2018
f88fc18
fix tests to ensure we’re using deepfreeze for state no change tests
nerrad Dec 13, 2018
2502b5e
started work on converting over to using immutablejs for internal state
nerrad Dec 14, 2018
84b2182
finish of dirty-relations reduecer conversion to use immutable
nerrad Dec 16, 2018
4620877
add helper and test for getting an array of ids from an Array of Base…
nerrad Dec 16, 2018
85a236b
update actions and tests for immutable refactor
nerrad Dec 16, 2018
d034a21
convert mockStateForTests to an Immutable object
nerrad Dec 17, 2018
288881c
convert reducers/dirty-entities (and testst) to use Immutable
nerrad Dec 17, 2018
8e5771b
update entity reducers and add tests
nerrad Dec 17, 2018
e4f582e
add @test/fixtures to phpstorm webpack config
nerrad Dec 20, 2018
b83de3c
add missing comma
nerrad Dec 20, 2018
7a7b15e
add some new helpers and corresponding tests
nerrad Dec 20, 2018
63b103b
add fixtures ufor new model entities
nerrad Dec 20, 2018
fed3653
convert from List to Set for mockStateForTests
nerrad Dec 20, 2018
b43d959
convert from List to Set for state
nerrad Dec 20, 2018
d97bf8b
fix reducers/relations and tests
nerrad Dec 20, 2018
b0aa96e
update resolvers/entities and add tests
nerrad Dec 21, 2018
1341498
update relation resolver and tests
nerrad Dec 21, 2018
ae0d740
install rememo
nerrad Dec 23, 2018
d5d1030
update entity selectors to use rememo and add tests
nerrad Dec 23, 2018
0959ae6
use correct method for query type
nerrad Dec 27, 2018
8744796
update core selectors and add tests
nerrad Dec 27, 2018
483fc69
add helper method and tests for getting primary key query string
nerrad Jan 1, 2019
e1c940c
add assertion method for given path in immutable object
nerrad Jan 1, 2019
e01e9ca
remove obsolete files
nerrad Jan 1, 2019
9f066c2
update lists store and tests for using immutable state.
nerrad Jan 1, 2019
d2b252d
add constants for action types
nerrad Jan 1, 2019
2710b00
fix jsdocs
nerrad Jan 2, 2019
67f5718
fix eventespress/core state to account for plain object root
nerrad Jan 2, 2019
8862057
tweak schema data to use imutable and update tests
nerrad Jan 4, 2019
7367c71
add clear method to `getEntitiesByIds` so it clears the dependent cac…
nerrad Jan 4, 2019
60bfca8
improve jsdocs
nerrad Jan 4, 2019
f2f3168
update schema and tests for using immutable in state
nerrad Jan 7, 2019
91567e3
various fixes to existing blocks and code after user testing
nerrad Jan 8, 2019
a783249
updated build files
nerrad Jan 8, 2019
5d4d198
fix default for arg
nerrad Jan 8, 2019
f7fadb1
fix jsdoc
nerrad Jan 8, 2019
dfef642
add checklists
nerrad Jan 8, 2019
286c0b9
all kinds of linting fixes
nerrad Jan 8, 2019
7d67e78
testing migration on travis.com
nerrad Jan 9, 2019
a63d9b5
install `@wordpress/url` as a dev library
nerrad Jan 10, 2019
4d8c1dc
alias `@wordpress/url` imports
nerrad Jan 10, 2019
bb91fc9
add middleware for apply caps context to ee endpoint requests
nerrad Jan 10, 2019
e823106
ensure reducer only executes on the appropriate action/state
nerrad Jan 10, 2019
6d2f17e
update build files
nerrad Jan 10, 2019
724e956
remove dirty relations index actions and reducers
nerrad Jan 10, 2019
6e686d7
update build files
nerrad Jan 10, 2019
ccab6cc
implement reverse lookup for relations selector
nerrad Jan 10, 2019
7572c35
update package-lock.json
nerrad Jan 11, 2019
bf2b5d5
some fixes fir dirty-relations and test improvements
nerrad Jan 11, 2019
f704ad9
update build dev files
nerrad Jan 11, 2019
b5c804b
fix factory and schema selectors so they account for there being an e…
nerrad Jan 11, 2019
02a857e
more fixes to relations reducers
nerrad Jan 11, 2019
95b08fb
update checklist for eventespresso/core store
nerrad Jan 11, 2019
b4f2d30
some more fixes to relations and entity removals
nerrad Jan 12, 2019
9d39992
various improvements and modifications resulting from testing
nerrad Jan 16, 2019
545a0a4
update build files
nerrad Jan 16, 2019
4610b75
remove unused imports
nerrad Jan 16, 2019
a8661f3
remove no longer valid action reference
nerrad Jan 18, 2019
3b61394
update build files
nerrad Jan 20, 2019
619b6d6
fallback to use cuid if `attendee.id` not present
nerrad Jan 20, 2019
26def9c
fix and improve warning accompanying early bails
nerrad Jan 20, 2019
3c183d3
simplify code
nerrad Jan 20, 2019
d481589
woops make sure removeDirtyRelations is actually uh removing.
nerrad Jan 20, 2019
a3476cc
fix code style issue
nerrad Jan 20, 2019
77ce9bf
fix jsdocs
nerrad Jan 20, 2019
48a0d3b
improve function name
nerrad Jan 20, 2019
564064f
make code more DRY
nerrad Jan 20, 2019
93930b6
use ternaries
nerrad Jan 20, 2019
794d704
account for Immutable.Set.filter returning new instance.
nerrad Jan 20, 2019
ee19b93
fix formatting
nerrad Jan 20, 2019
747f95b
condenxe code
nerrad Jan 20, 2019
4afc1bf
improve indenting (code style)
nerrad Jan 20, 2019
6f787ee
switch usage of `shift()` to `pop()`
nerrad Jan 20, 2019
a890483
woops fix introduced bug.
nerrad Jan 20, 2019
9ef9123
fix test expectations from using pop instead of shift
nerrad Jan 20, 2019
6d9a1b0
update build files
nerrad Jan 20, 2019
5362800
use pop() instead of shift()
nerrad Jan 21, 2019
e9d21cb
update build files
nerrad Jan 21, 2019
9d71738
just use index for the key
nerrad Jan 21, 2019
3324fc5
Merge branch 'master' into FET/add-crud-to-stores
joshfeck Jan 23, 2019
9e4c752
Merge branch 'master' into FET/add-crud-to-stores
nerrad Jan 24, 2019
dcf00eb
update build files
nerrad Jan 24, 2019
8b81735
Merge branch 'master' into FET/add-crud-to-stores
nerrad Jan 24, 2019
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 .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ node_modules
acceptance_tests
admin_pages
caffeinated
/bin/
/core/
docs
languages
Expand Down
20 changes: 8 additions & 12 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,27 @@ module.exports = {
root: true,
extends: [
'./eslint/config.js',
'plugin:jest/recommended',
],
'plugins': [
'wordpress',
'jest',
],
env: {
'jest/globals': true,
},
globals: {
wpApiSettings: true,
eejsdata: true
},
overrides: [
{
files: [ 'test/e2e/**/*.js' ],
globals: {
page: true,
browser: true,
wp:true,
eejsdata:true,
},
env: {
browser:true,
}
},
{
files: [ '*.js' ],
rules: {
"react/react-in-jsx-scope": "off",
},
globals: {
eejsdata:true
}
}
],
Expand Down
16 changes: 8 additions & 8 deletions assets/dist/build-manifest.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"components.css": "ee-components.997177945b17ee98a639.dist.css",
"components.js": "ee-components.622f86c8649619cbcbcb.dist.js",
"data-stores.js": "ee-data-stores.dc634000795c4ba9a507.dist.js",
"components.js": "ee-components.7d6c99591998d2eae4c0.dist.js",
"data-stores.js": "ee-data-stores.38025e8fe5dca4880a7d.dist.js",
"editor-hocs.js": "ee-editor-hocs.15a813aac7a51b5473cb.dist.js",
"eejs.js": "ee-eejs.42c92b6e2c9ea03b7fcb.dist.js",
"eejs.js": "ee-eejs.defbee9cd9254214d65c.dist.js",
"eventespresso-core-blocks-frontend.css": "ee-eventespresso-core-blocks-frontend.f0ea9ad96d720bc8dc9b.dist.css",
"eventespresso-core-blocks-frontend.js": "ee-eventespresso-core-blocks-frontend.13657777682763d13692.dist.js",
"eventespresso-core-blocks.css": "ee-eventespresso-core-blocks.f0ea9ad96d720bc8dc9b.dist.css",
"eventespresso-core-blocks.js": "ee-eventespresso-core-blocks.2efdf416c01381fd6f47.dist.js",
"helpers.js": "ee-helpers.aa14a7d4abec4efb1036.dist.js",
"hocs.js": "ee-hocs.97a8ee6842846da19735.dist.js",
"eventespresso-core-blocks.js": "ee-eventespresso-core-blocks.563eaaba6c869ad0ea4b.dist.js",
"helpers.js": "ee-helpers.68fc060c389a6c79fa44.dist.js",
"hocs.js": "ee-hocs.b54a839e586bd01edf37.dist.js",
"manifest.js": "ee-manifest.45b8faa573682047153a.dist.js",
"model.js": "ee-model.7f810d358d08f82e088b.dist.js",
"model.js": "ee-model.b08f7f3ee436d1dbb468.dist.js",
"validators.js": "ee-validators.400994f2dc2c8922b864.dist.js",
"valueObjects.js": "ee-valueObjects.33103ace62bfb5a26030.dist.js",
"vendor.js": "ee-vendor.bd38b3513999b11ec414.dist.js",
"wp-plugins-page.css": "ee-wp-plugins-page.0aa86e25ceb666993965.dist.css",
"wp-plugins-page.js": "ee-wp-plugins-page.6711248a012a5dfbff0b.dist.js"
"wp-plugins-page.js": "ee-wp-plugins-page.affe522f72bae3a5e5df.dist.js"
}

Large diffs are not rendered by default.

51,056 changes: 51,056 additions & 0 deletions assets/dist/ee-data-stores.38025e8fe5dca4880a7d.dist.js

Large diffs are not rendered by default.

Loading