Commit graph

361 commits

Author SHA1 Message Date
SachaG
9b4d913fab Handle form deletions more explicitly (split into two cases); pass value down to FormNested; uniq -> uniqBy 2018-08-05 11:17:46 +09:00
SachaG
45afb1d1f7 Don't use arrow function since it breaks arguments 2018-08-03 11:44:00 +09:00
SachaG
4ecac53112 Fix #2027 2018-08-03 11:14:15 +09:00
SachaG
dd8b1a9857 Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel 2018-07-28 12:42:43 +09:00
ochicf
65cc9e0b38 initialize fragment when trying to retrieve it for the first time 2018-07-27 10:17:53 +02:00
ochicf
e2fe2ce556 initalizeFragments can now be parametrized with fragments to initialize 2018-07-27 10:16:56 +02:00
Apollinaire
fefc21bb2f collection.getParameters handles schema extension for searchable fields
Instead of using `schema` passed when creating the collection, `getParameters` should fetch the schema from `collection.simpleSchema()._schema` to include the fields added with `collection.addField`.

I originally found this when making the `groups` field searchable, with: 
```
Users.addField([
  {
    fieldName: 'groups',
    fieldSchema: {
      type: Array,
      searchable: true,
    },
  },
  {
    fieldName: 'groups.$',
    fieldSchema: {
      type: String,
    },
  },
]);
```
2018-07-23 11:59:22 +02:00
SachaG
39ae84b81a New callback hooks: *.create.before, *.create.async, etc. act like previous mutation callbacks but run for all collections; foo.collection runs when collection is created. 2018-07-22 09:26:41 +02:00
Sacha Greif
4fe5278bcc
Merge pull request #2013 from OrigenStudio/dynamic-loader
Dynamic loader improvements
2018-07-14 13:51:59 +02:00
SachaG
8a446680cf Minor fixes to form, mutators; query, and payments 2018-07-07 18:49:04 +02:00
SachaG
b2fc0d0c5b Use Utils.pluralize function 2018-07-04 11:11:46 +02:00
SachaG
861980b468 Internationalize field labels in forms and form errors 2018-07-02 16:59:29 +02:00
ochicf
3b156b73bd eslint disable 2018-06-30 12:19:32 +02:00
ochicf
d783afb3df Merge remote-tracking branch 'upstream/devel' into dynamic-loader 2018-06-30 12:15:16 +02:00
ochicf
4b17124877 refactor dynamicLoader, rename getDynamicComponent
getDynamicComponent is renamed to renderDynamicComponent and the first is marked as deprecated.
2018-06-30 12:14:43 +02:00
SachaG
35c811e791 Fix form error labels to work with intl fields 2018-06-30 11:48:37 +02:00
SachaG
bb80001056 Fix eslint issues 2018-06-30 11:34:17 +02:00
ochicf
fb096256a1 add delayedComponent function 2018-06-30 11:21:45 +02:00
SachaG
12dd5b1141 Missed a conflict 2018-06-30 09:33:31 +02:00
SachaG
da98a6bd53 Merge branch 'form-errors' of https://github.com/OrigenStudio/Vulcan into OrigenStudio-form-errors
# Conflicts:
#	packages/vulcan-lib/lib/modules/validation.js
2018-06-30 09:26:26 +02:00
SachaG
e921c9762c Remove intl fields sub-schema optional:false 2018-06-28 22:17:58 +02:00
SachaG
dc3d8f8ec0 Refactor 2018-06-28 21:54:45 +02:00
SachaG
a13e61d8b0 Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel 2018-06-28 21:35:55 +02:00
SachaG
2d2d1033b5 Enable required locale validation for individual locales; add support for intl: true on schema fields 2018-06-28 21:35:44 +02:00
ochicf
8031e9e17b Merge branch 'devel' into form-errors 2018-06-28 10:32:09 +02:00
ochicf
9c2500cde4 pass collection name as error property 2018-06-28 10:26:12 +02:00
Apollinaire
2458d82ef1 New default for Apollo tracing
Default behaviour for apollo tracing is now enabled on dev and disabled on prod. To enable on prod, or disable on dev, the private boolean setting `apolloTracing` is available
2018-06-27 15:11:19 +02:00
SachaG
4f80444743 Better debug logging 2018-06-25 08:41:44 +02:00
SachaG
cc00b6dae7 Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel 2018-06-24 08:41:35 +02:00
Matt Black
d486b49ac3 Fix async callbacks called with no arguments 2018-06-22 23:41:20 -04:00
SachaG
6201b55837 insertableBy -> canCreate 2018-06-22 20:57:31 +09:00
SachaG
50fba6b0a3 viewableBy -> canRead 2018-06-22 20:55:22 +09:00
SachaG
6ee6dea156 Merge branch 'fieldViewEdit' of https://github.com/Apollinaire/Vulcan into Apollinaire-fieldViewEdit 2018-06-22 11:53:29 +09:00
Apollinaire
ac0a875c3a remove backwards comp. from function name change and add new names to...
all instances of functions Users.can... in the whole code
2018-06-21 14:27:20 +02:00
Matt Black
8b8976db58 Allow passing multiple args to HOCs 2018-06-20 16:08:49 -04:00
SachaG
a7081f71c1 Show warning when collections have no GraphQL-enabled fields 2018-06-20 10:24:57 +09:00
SachaG
91246d083c Better backwards compatibility + fix callback names case 2018-06-19 11:00:20 +09:00
SachaG
8ec093aac5 Better backwards compatibility; improve mutator debug 2018-06-18 10:05:54 +09:00
SachaG
213ec0f385 Fix a few issues with data/modifier 2018-06-17 16:23:22 +09:00
SachaG
367c071fc0 Move mutation/query generating logic to graphql.js; do not crash when schema has no GraphQL-compatible fields 2018-06-17 13:24:09 +09:00
SachaG
1d5d5b8ebc Small bugfixes, make selectors work with both _id and documentId 2018-06-17 12:30:37 +09:00
SachaG
629e4c2c58 Minor clean-ups 2018-06-17 08:00:19 +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
ecc97f157e Support new syntax for registerComponent 2018-06-15 14:30:45 +09:00
SachaG
51acfa7ffc Migrate new callbacks to new single argument API 2018-06-15 10:18:20 +09:00
SachaG
6f9f198022 Merge branch 'master' into devel 2018-06-14 19:36:07 +09:00
SachaG
a0af40fd07 specify package version 2018-06-14 19:29:58 +09:00
SachaG
f66d31fa03 Adapt mutator and field callbacks for new naming and new arguments 2018-06-14 15:51:04 +09:00