Commit graph

30 commits

Author SHA1 Message Date
SachaG
0be73085c3 Fields with "$" should never be included in generated fragments (fix #2044) 2018-09-01 07:41:55 +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
SachaG
50fba6b0a3 viewableBy -> canRead 2018-06-22 20:55:22 +09:00
SachaG
c80e38eb1f Add New button to datatables 2018-01-03 15:13:50 +09:00
SachaG
8d0cc3e5e2 Make form sub-property optional; Handle extra queries in FormWrapper; remove resolveAs fragment shape "guessing" code 2017-12-28 11:31:55 +09:00
SachaG
7bfa4afba3 Do not generate default fragment when empty 2017-09-25 22:08:17 +02:00
SachaG
efad1d407d Improve fragments error handling 2017-09-13 12:13:16 +02:00
SachaG
ebc42d7c89 Revert back: do not initialize fragmentObjects on registerFragment 2017-09-13 10:09:54 +02:00
SachaG
034615d62b Merge branch 'devel' into example-forum 2017-09-11 15:56:06 +02:00
SachaG
1258619ef0 Fix handling of GraphQL schema-level validation errors in forms. Note: GraphQL errors currently happen before server-side validation errors, instead of happening at the same time. 2017-09-06 18:10:26 +02:00
SachaG
73edab4858 Add original resolver fields to default fragments 2017-09-06 18:01:25 +02:00
SachaG
e6bcb69b91 Generate fragmentObject on registerFragment also after all 2017-09-06 09:57:34 +02:00
SachaG
638f6937bc Delay fragment initialization for more flexibility in fragments/subfragments load order 2017-09-04 19:56:17 +09:00
klokie
3c3e79f853 fix to previous graphql fragment mod 2017-08-25 11:15:51 +02:00
klokie
9bbd5f5470 ignore comments in fragments and provide GraphQL spec-compliant regexp for parsing GraphQL fragment names 2017-08-25 11:10:29 +02:00
SachaG
00d7466b57 Add new collection.queryOne function 2017-08-20 15:24:13 +09:00
SachaG
dfa2609e43 register CollectionDefaultFragment as regular fragment, too 2017-08-02 15:51:11 +09:00
SachaG
12925718a5 Merge branch 'feature/graphql-interfaces' of https://github.com/ochicf/Vulcan into ochicf-feature/graphql-interfaces
# Conflicts:
#	.meteor/packages
2017-07-29 15:11:23 +09:00
SachaG
9a9b42bf86 add fields option to Card component; make withDocument use default fragments 2017-07-29 09:26:31 +09:00
SachaG
cf7d41d009 add new "default" fragment used by withList if no fragment is specified 2017-07-25 18:37:23 +09:00
ochicf
0f9e0a8238 Relax regex to find subfragments so inline-fragments can be bypassed WIP
The old regex looked for any `...` considered it a subfragment. The new regex only considers a subfragment when finding `...` followed by a non-space character (ex: `...SubFragmentName`), ignoring inline-fragments (ex: `... on TypeName {`).

This should be improved with a more restrictive regex. See [issue](https://github.com/VulcanJS/Vulcan/issues/1674).
2017-07-22 11:25:27 +02:00
SachaG
08f957dec4 refactor fragments to support multiple successive extensions; simplify logic 2017-07-07 09:40:34 +09:00
SachaG
de486a607e clean up 2017-07-03 12:32:20 +09:00
SachaG
a3abb94d3a do not try to extend fragments that don’t exist yet 2017-06-22 16:19:23 +09:00
SachaG
4ad845440c clean up; remove flatten call from Form.jsx; make it possible to specify id:null to not sort by id 2017-06-20 10:25:34 +09:00
SachaG
55bb30bce9 Add fragment initialization step; get rid of duplicate fragments warning; Note: Vulcan HoCs cannot be used outside of registerComponent anymore 2017-06-19 10:19:05 +09:00
SachaG
374c512341 enable extending fragments that haven’t been defined yet by adding an initializeFragments() step 2017-06-17 15:24:53 +09:00
SachaG
2981ca3e93 Add new removeFromFragment function; fix collection.removeField 2017-05-14 11:08:07 +09:00
SachaG
72be56a590 renaming nova-xyz directories to vulcan-xyz 2017-03-24 10:19:24 +09:00
Renamed from packages/nova-lib/lib/modules/fragments.js (Browse further)