Commit graph

5975 commits

Author SHA1 Message Date
Sara Itani
c79b991176 Allow user to customize apollo json parser options
In particular, the functionality is currently scoped to the maximum request body size (`limit`), which helps avoid errors like `PayloadTooLargeError: request entity too large`

Keys defined here:
https://www.npmjs.com/package/body-parser#bodyparserjsonoptions
2018-12-10 11:11:04 -08:00
SachaG
8e878258b8 Hide profile field 2018-12-02 22:34:03 +09:00
SachaG
dea838ecce Add google analytics event tracking 2018-12-02 22:33:57 +09:00
SachaG
a58c1ad22b Pass form instance to callbacks 2018-12-02 22:33:45 +09:00
SachaG
3d920138b2 Pass document to callback 2018-12-02 10:53:24 +09:00
SachaG
50315bcf73 Fix linting 2018-12-02 10:28:04 +09:00
SachaG
8330accba7 centralize error throwing in new throwError function 2018-12-02 10:01:48 +09:00
SachaG
6d088ba5d6 Remove unnecessary "forceLocale" argument 2018-11-30 17:26:32 +09:00
SachaG
5e7fab49a1 Change how validation callbacks work: iterator is now validationErrors object instead of data/document 2018-11-30 16:28:42 +09:00
SachaG
84ea6d8789 Make static text work for empty values and numbers 2018-11-30 15:59:27 +09:00
SachaG
48092c171e Add correct id code to intl field missing validation errors 2018-11-30 15:59:07 +09:00
SachaG
bf440f8511 Add document prop to create.async callbacks 2018-11-27 09:40:13 +09:00
SachaG
466cb7d0a6 Make sourceVersion a function 2018-11-27 09:39:51 +09:00
SachaG
46bdfe0f57 Add app.mounted callback to App.jsx; move error tracking init to server/client init.js file 2018-11-24 10:49:37 +09:00
SachaG
6f11c9cf89 v1.12.10 2018-11-24 09:57:55 +09:00
SachaG
b454086591 Update package.json 2018-11-24 09:57:01 +09:00
SachaG
8edd46a6b9 Fix form bug 2018-11-24 09:56:51 +09:00
SachaG
9e5528e6d5 Add sourceVersion to server; add withSiteData HoC 2018-11-24 09:56:41 +09:00
SachaG
b75ff3e8d1 Add stale.yml 2018-11-23 16:24:41 +09:00
SachaG
895118e941 specify versions 2018-11-23 13:54:07 +09:00
SachaG
a3a14c8489 v1.12.9 2018-11-23 11:39:38 +09:00
SachaG
ea7cd23533 Field resolvers should check for access (fix #2124) 2018-11-23 09:26:56 +09:00
SachaG
4208af65f8 Merge branch 'errors' into devel 2018-11-23 09:20:14 +09:00
SachaG
d1e9f1e063 Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel 2018-11-22 16:09:39 +09:00
SachaG
77332324f1 If "addFields" prop is specified, add its fields to default generated fragments; fix FormIntl key issue; add class to FormGroup 2018-11-22 16:09:31 +09:00
Eric Burel
d6582c2585
Merge pull request #2122 from lbke/isAdmin
Respect user.isAdmin on creation
2018-11-14 10:40:15 +01:00
Eric Burel
e590e0998d
Merge pull request #2123 from lbke/test-resolvers
rollback callbacks test
2018-11-05 14:05:01 +01:00
eric-burel
0824b3bb49 rollback callbacks test 2018-11-05 14:03:22 +01:00
eric-burel
d99eb1b7ae fix handleOptions test 2018-11-05 13:53:05 +01:00
eric-burel
e68b21ccba now respect user isAdmin 2018-11-05 13:52:46 +01:00
eric-burel
c83c27a320 export callbacks, wrote failing test 2018-11-05 13:50:07 +01:00
eric-burel
db3f6f95f3 added tests for users callbacks 2018-11-05 13:39:30 +01:00
SachaG
0cae07f42a Call ErrorCatcher in App.jsx 2018-11-05 09:46:17 +09:00
Sacha Greif
783f3ad0d5
Merge pull request #2116 from OrigenStudio/fix/mutation-button
Mutation button small fixes
2018-11-04 17:38:01 +09:00
SachaG
67b5d23530 Get environment from settings.json 2018-11-04 17:29:04 +09:00
SachaG
5f84fb3141 vulcan:errors-sentry 2018-11-04 16:34:19 +09:00
SachaG
983c9ed08a vulcan-errors package 2018-11-04 16:32:34 +09:00
SachaG
47bd12eb80 Make Flash component display HTML 2018-11-04 16:29:38 +09:00
SachaG
e4dd4ac603 Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel 2018-11-04 12:59:40 +09:00
SachaG
fa2fe776de Revert some of the changes in #2112 (fix #2118) 2018-11-04 12:58:16 +09:00
ochicf
7573e17e18 delete props to avoid unknown props warning 2018-10-31 12:16:19 +01:00
ochicf
dbd41a39f0 update loading state on mutation error 2018-10-31 12:15:57 +01:00
Apollinaire Lecocq
f162054a0b
Merge pull request #2113 from Apollinaire/datatableSortFix
Fix datatable bug when sorting a column
2018-10-30 09:43:45 +01:00
Eric Burel
4a2cc23c46
Merge pull request #2112 from lbke/single-documentId
single resolve documentId undefined -> now returns null
2018-10-30 09:06:30 +01:00
Eric Burel
e981503a4b
Merge branch 'devel' into single-documentId 2018-10-30 09:06:14 +01:00
Eric Burel
1b4f5d51d8
Merge pull request #2108 from lbke/cleanup-forms
Cleanup forms, add `changeCallback`
2018-10-30 09:05:05 +01:00
Eric Burel
08b9cf5c5e updated tests, reuse utils for Form and FormWrapper 2018-10-29 22:34:29 +01:00
Eric Burel
284cdbae18 start splitting code, reuse options handler 2018-10-29 22:08:41 +01:00
Eric Burel
10603d000f new behaviour: single resolver returns null if documentId is not defined 2018-10-29 18:53:31 +01:00
Apollinaire
83a908e22a Fix datatable bug when sorting a column
see https://github.com/VulcanJS/Vulcan/issues/2090#issuecomment-433860782

Previously : when you clicked on a sortable column, the results of the fired query would be null, and the next polling would make it right. You had a long time with no results displayed.

Now : The query fired when you click to sort a column returns the right result, with the props updating correctly, so no need to wait for the polling to update the results.

See #2090 for an in-depth explanation
2018-10-29 18:52:47 +01:00