Commit graph

118 commits

Author SHA1 Message Date
SachaG
5fc0e30f40 Fix ESLint 2018-09-12 11:59:00 +09:00
SachaG
d0395661ed Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel 2018-09-06 16:31:13 +09:00
SachaG
69901e10eb Rename newDocument to data 2018-09-06 16:31:10 +09:00
ochicf
3ae4fda0c3 pass collection as property when running new API callbacks 2018-09-05 11:24:43 +02:00
Apollinaire
168101b4fb Pass request headers through context 2018-09-03 17:16:28 +02:00
SachaG
485f7bad37 Await for validation callbacks too; modify data in update mutator validation callback 2018-08-21 19:22:38 +09:00
SachaG
a3de5a3ccc Small fix in intl script 2018-08-21 17:48:06 +09:00
SachaG
c2546f07c6 Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel 2018-08-20 15:21:07 +09:00
SachaG
7e67a441cd Backwards compatibility with documentId 2018-08-20 15:20:51 +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
SachaG
9d53c33727 Fix queryOne query variables 2018-08-10 13:08:49 +09:00
SachaG
497987d91e Export account helpers 2018-08-10 13:08:12 +09: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
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
SachaG
8a446680cf Minor fixes to form, mutators; query, and payments 2018-07-07 18:49:04 +02:00
SachaG
bb80001056 Fix eslint issues 2018-06-30 11:34:17 +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
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
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
51acfa7ffc Migrate new callbacks to new single argument API 2018-06-15 10:18:20 +09:00
SachaG
f66d31fa03 Adapt mutator and field callbacks for new naming and new arguments 2018-06-14 15:51:04 +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
Sacha Greif
05a0e78904
Merge pull request #1995 from Apollinaire/runqueryRename
runQuery->runGraphQL
2018-06-13 08:38:33 +09:00
SachaG
f3c1f7bf31 isolate accounts-base dependency 2018-06-10 11:39:18 +09:00
SachaG
aed693238d Meteor 1.7 2018-06-10 10:39:06 +09:00
SachaG
60f47a5189 Various small fixes (thanks @justinr1234) 2018-06-08 13:31:15 +09:00
Apollinaire
0bf44e8b45 runQuery->runGraphQL 2018-06-06 12:46:14 +02: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
35b13e89c2 Add comments to graphql templates 2018-06-04 17:59:18 +09:00
SachaG
96eab44309 Start CRUD renaming 2018-06-02 18:49:53 +09:00
SachaG
d378cd9654 Small migration improvements 2018-05-22 08:43:27 +09:00
SachaG
b066ee5b60 Bug fixes 2018-05-21 10:02:43 +09:00
SachaG
2b0f8cdd88 Change data structure of translations in db to match MongoDB standards 2018-05-21 09:42:08 +09:00
SachaG
f298aca5ae Handle empty modifiers better 2018-05-17 09:53:16 +09:00
SachaG
fc67471a38 working on cookies+locale support 2018-05-16 11:43:19 +09:00
SachaG
55d34bd328 Working on locale cookie support for SSR 2018-05-14 17:28:04 +09:00
SachaG
422b413f98 Enable context.locale in emails 2018-05-10 18:34:59 +09:00
SachaG
c6b1611e98 Add fallback to default locale for content 2018-05-10 18:00:37 +09:00
SachaG
a5a43d2f89 Get locale from user 2018-05-10 17:57:12 +09:00
SachaG
c78cf47e85 Merge branch 'devel' into i18n2 2018-05-10 17:49:46 +09:00
SachaG
47f21e4740 Eslint clean up 2018-05-10 09:39:35 +09:00
SachaG
eca6cd14b3 Add locale to context for server queries too 2018-05-09 11:22:19 +09:00
SachaG
e8936b590b Add migration script; fix input prop bug 2018-05-09 10:38:21 +09:00
SachaG
4950f10b20 Get locale from GraphQL header 2018-05-09 09:46:47 +09:00
SachaG
5b5884d33c Move intl logic to vulcan:lib (keep vulcan:i18n with same API as react-i18n); add isIntlField helper; add IntlString type 2018-05-08 12:23:42 +09:00