Commit graph

3646 commits

Author SHA1 Message Date
SachaG
092cec26f4 Pass currentValues, errors, and deletedValues to FormSubmit component in case it needs them 2018-09-04 21:47:05 +09:00
SachaG
7efcb54d16 Field permission check should always succeed when field is mutable by guests 2018-09-04 09:27:55 +09:00
SachaG
0be73085c3 Fields with "$" should never be included in generated fragments (fix #2044) 2018-09-01 07:41:55 +09:00
SachaG
2482bae51b v1.12.3 2018-08-31 22:51:49 +09:00
SachaG
bc497c31e3 New users are considered part of the members group during creation 2018-08-31 22:51:11 +09:00
SachaG
47c634f555 Merge branch 'master' of https://github.com/VulcanJS/Vulcan 2018-08-31 07:34:07 +09:00
SachaG
6e9d7e9412 v1.12.2 2018-08-31 07:07:27 +09:00
SachaG
b1452551ea Missing component.hocs should not throw exception 2018-08-31 07:06:50 +09:00
James Babcock
7b450d3a9b When changing email address on an account, mark the new address as unverified 2018-08-30 16:03:19 -04: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
67dfaffc2b Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel 2018-08-30 07:50:27 +09:00
SachaG
0f6b06023b Fix missing typeName/collectionName issue 2018-08-29 21:47:23 +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
Sacha Greif
cdb0d7da18
Merge pull request #2040 from jimrandomh/upstreamEmailVerification
Add support for email address verification.
2018-08-29 10:52:08 +09:00
ochicf
374dc2510d defer creation of apolloClient until it is first used 2018-08-28 18:24:30 +02:00
James Babcock
a9422307e1 Add support for email address verification. 2018-08-27 15:47:16 -04:00
SachaG
485f7bad37 Await for validation callbacks too; modify data in update mutator validation callback 2018-08-21 19:22:38 +09:00
SachaG
8705ff6b7b Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel 2018-08-21 18:44:32 +09:00
SachaG
a3de5a3ccc Small fix in intl script 2018-08-21 17:48:06 +09:00
SachaG
e565b84dce Differentiate between _intl and intl = true fields 2018-08-21 17:47:57 +09:00
Sacha Greif
b67c928a3e
Merge pull request #2035 from Apollinaire/opencrudFixes
Users totalCount and removed one console.log
2018-08-21 17:41:39 +09:00
Apollinaire
944b57df76 remove console.log 2018-08-20 12:39:26 +02:00
Apollinaire
56422c5e9a Add totalCount to User multi resolver 2018-08-20 12:34:09 +02:00
SachaG
c2546f07c6 Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel 2018-08-20 15:21:07 +09:00
SachaG
fa6709109e Simplify/fix permissions code 2018-08-20 15:21:02 +09:00
SachaG
7e67a441cd Backwards compatibility with documentId 2018-08-20 15:20:51 +09:00
Sacha Greif
8c60de4b78
Merge pull request #2034 from Apollinaire/opencrudFixes
OpenCRUD fixes
2018-08-18 15:17:26 +09:00
Sacha Greif
60c3f0d628 Remove console.logs 2018-08-18 10:07:28 +09:00
Apollinaire
80d390ec8a add user.create.before hook to classic signup workflow 2018-08-17 19:28:57 +02:00
Apollinaire
8b3f80dfc2 use single argument and fix hook names for onCreateUserCallback 2018-08-17 16:29:45 +02:00
Apollinaire
4c4f11b1a0 re-establish vulcan's custom enroll and reset urls
since f3c1f7bf31 the urls sent in the resetPassword and enrollment emails were the Meteor default one, `/#/reset-password`
2018-08-17 16:28:41 +02:00
Sacha Greif
26f28a98ce Rework required field validation to make it work for intl fields when creating new documents
1. make intl fields use [IntlValue] and [IntlValueInput] types
2. add isIntlData marker to fields storing intl data
3. only validate intl fields that are marked as required
4. remove all instance of `__typename` from documents in edit forms
2018-08-17 19:02:44 +09:00
Sacha Greif
0b961aca2b Add Date2 form component (useful for date of birth for example) 2018-08-17 13:49:15 +09:00
Apollinaire
3492ac40e4 add toLowerCase to mutator collection.create.before
The norm is lower case on hooks, without this it was for example: `Movies.create.before` when all the others were `movies.create.validate/after/async`
2018-08-16 18:00:58 +02:00
Apollinaire
fad9db6602 register user callbacks 2018-08-16 16:06:52 +02:00
Apollinaire
45e951a7a2 createUser small fix 2018-08-16 15:34:21 +02:00
Sacha Greif
fc65d66204 Make Select work with number fields too 2018-08-16 12:30:33 +09:00
Apollinaire
595c3c3051 [opencrud] update Users Mutations to match {selector, data} args 2018-08-13 14:03:50 +02:00
Sacha Greif
8a937b758b
Merge pull request #2030 from Apollinaire/clearCurrentDocument
[Forms] Add currentDocument to clearForm
2018-08-11 12:30:17 +09:00
Sacha Greif
e452f35c8c
Merge pull request #2029 from OrigenStudio/fix/replace-non-registered-component
Warn when replacing a non-registered component and register it anyway
2018-08-11 12:28:30 +09:00
Apollinaire
06607e5e9a [Forms] Add currentDocument to clearForm
allows for the form fields to be correctly cleared when calling clearForm with `clearCurrentValues == true`
2018-08-10 14:46:49 +02:00
ochicf
90abd27d77 warn when replacing a non-registered component and register it anyway 2018-08-10 13:03:15 +02: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
b55096855e added TODOs 2018-08-10 11:24:50 +02:00
ochicf
9e9d818678 collectionName can now be specified as an argument 2018-08-10 11:24:38 +02:00
SachaG
9d53c33727 Fix queryOne query variables 2018-08-10 13:08:49 +09:00