Commit graph

278 commits

Author SHA1 Message Date
SachaG
0c99b9a7ac v1.12.5 2018-09-12 12:01:10 +09:00
SachaG
5fc0e30f40 Fix ESLint 2018-09-12 11:59:00 +09:00
SachaG
85c57c4beb Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel 2018-09-12 10:32:53 +09:00
SachaG
8e325122c6 v1.12.4 2018-09-12 10:32:45 +09:00
SachaG
bafe350407 withList -> withMulti; add fallback prop for Avatar component 2018-09-12 10:31:36 +09:00
Sacha Greif
27aaf06865
Merge pull request #2063 from lbke/bugfix/withAccess-guests
Allow "guests" in withAccess
2018-09-12 10:16:40 +09:00
Eric Burel
c4945ddc2f allow guests in withAccess 2018-09-11 18:08:29 +02:00
Erik Dakoda
b8ed1cdc06 - Fixed bug in single resolver 2018-09-10 06:48:14 -04:00
Erik Dakoda
d5b677e28d - Added collection.options.singleResolverName and .multiResolverName to stay DRY
- In withMulti, fixed how loadMoreInc passes variables to fetchMore
- Added the "allowNull" option to single resolver to return null instead of throwing a MissingDocumentError
- Added extended SimpleSchema options to support "unique" field property (field can be used as part of a selectorUnique when querying for data)
- When generating schema, populate fields.selector and fields.selectorUnique
2018-09-10 06:16:00 -04:00
Eric Burel
7dcd8fc6ac cleanup quotes and added rule to eslint 2018-09-05 19:40:19 +02:00
Eric Burel
17f96712ff cleaned up the options management in hocs
Will fix issues when not specifying a fragmentName in withDelete
2018-09-05 16:53:51 +02:00
ochicf
f67e996168 fix: avoid adding multiple times the same document 2018-09-04 11:22:11 +02:00
SachaG
2482bae51b v1.12.3 2018-08-31 22:51:49 +09:00
SachaG
6e9d7e9412 v1.12.2 2018-08-31 07:07:27 +09:00
SachaG
32fef20cd4 v1.12.1 2018-08-30 20:02:55 +09:00
SachaG
3ca76c198c Preserve withSingle backwards-compatibility 2018-08-30 20:02:09 +09:00
SachaG
0f4f77a058 v1.12.0 2018-08-30 07:51:28 +09:00
SachaG
a388e1663f Renaming 2018-08-29 20:36:36 +09:00
SachaG
5d1a7d2c37 Replace documentId/slug with selector in single resolver 2018-08-29 20:36:30 +09:00
ochicf
eb544faa07 register callbacks only for the created mutations 2018-08-10 11:51:43 +02:00
ochicf
b31ff85b8c merge mutation and resolver options
This makes possible to only specify a subset of options.

As an example, imagine we want to pass a customized `updateCheck` function to `getDefaultMutations`. Before this commit options weren't merged, so all of them had to be specified:

```
getDefaultMutations({
  typeName,
  collectionName,
  options: {
    create: true,
    update: true,
    upsert: true,
    delete: true,
    updateCheck: () => true,
});
```

After the commit:

```
getDefaultMutations({
  typeName,
  collectionName,
  options: {
    updateCheck: () => true,
});
```
2018-08-10 11:50:56 +02:00
ochicf
9e9d818678 collectionName can now be specified as an argument 2018-08-10 11:24:38 +02:00
SachaG
910c932f61 Get rid of single argument level of indirection in mutations; add additional checks to avoid empty selectors 2018-08-07 16:20:24 +09:00
SachaG
97c1ea1630 Improve MutatioButton 2018-07-14 09:09:01 +02:00
SachaG
dfd4bb023e MutationButton component 2018-07-13 21:47:36 +02:00
SachaG
4af2492e07 Make Card and Datatable components more flexible when working with static data; add title prop 2018-07-11 08:34:01 +02:00
SachaG
b2fc0d0c5b Use Utils.pluralize function 2018-07-04 11:11:46 +02:00
SachaG
e0b540eeb1 Use callback ref; fix withMutation; handle errors with no path 2018-07-04 10:59:10 +02:00
SachaG
4f80444743 Better debug logging 2018-06-25 08:41:44 +02:00
SachaG
994c19a98d Make withMutation accept return fragmentName 2018-06-20 10:24:30 +09:00
SachaG
1d5d5b8ebc Small bugfixes, make selectors work with both _id and documentId 2018-06-17 12:30:37 +09:00
SachaG
d9bc8b8c88 New default mutations/default resolvers API 2018-06-17 07:49:33 +09:00
SachaG
2b61d31ccb Merge branch 'master' into devel
# Conflicts:
#	packages/vulcan-users/lib/server/on_create_user.js
2018-06-16 10:16:09 +09:00
SachaG
e783d51dca v1.11.2 2018-06-16 08:57:45 +09:00
SachaG
51acfa7ffc Migrate new callbacks to new single argument API 2018-06-15 10:18:20 +09:00
SachaG
32066e9c5a search -> selector 2018-06-14 23:00:28 +09:00
SachaG
905bacbe88 Update permissions 2018-06-14 17:45:02 +09:00
SachaG
d4193fd7e5 Merge branch 'devel' into opencrud
# Conflicts:
#	packages/vulcan-lib/lib/modules/collections.js
2018-06-14 09:55:52 +09:00
SachaG
c0650893fa v1.11.1 2018-06-14 08:51:03 +09:00
SachaG
b0e7c4bf97 Only reset store when intl fields exist 2018-06-14 08:47:58 +09:00
SachaG
4da86c44a3 Add support for sortable property (bool/string) on datatable columns to make them sortable 2018-06-12 15:24:17 +09:00
SachaG
4ec9c08500 Set correct moment locale 2018-06-12 11:23:36 +09:00
SachaG
60f47a5189 Various small fixes (thanks @justinr1234) 2018-06-08 13:31:15 +09:00
SachaG
ad1f47ef73 Make debug email routes work with new APIs 2018-06-06 11:39:04 +09:00
SachaG
a532dab9b7 singleInputTemplate should use selectorUniqueInputTemplate 2018-06-06 11:00:53 +09:00
SachaG
2318a95d66 Make mutations backwards compatible 2018-06-06 09:32:30 +09:00
SachaG
f1652ae025 arguments -> args 2018-06-06 09:07:13 +09:00
SachaG
c8b57ab60e Fix withMulti 2018-06-06 07:36:25 +09:00
SachaG
b92944b6cc Working on default mutations and mutators 2018-06-05 16:39:03 +09:00
SachaG
84d08e9bf9 Adapt withCreate, withUpdate, withUpsert, withDelete 2018-06-05 16:07:38 +09:00