46 Commits

Author SHA1 Message Date
Alexandre Bodin
cf1d5dc33c Remove unneeded extension 2021-08-23 15:09:19 +02:00
Pierre Noël
c547e64571 fix e2e tests 2021-08-18 11:58:17 +02:00
Pierre Noël
2d7454553a add extension system for content-types 2021-08-13 15:35:19 +02:00
Pierre Noël
4790e28284 refactor with module approach 2021-08-06 18:09:49 +02:00
Pierre Noël
dd0c095f1e Merge branch 'v4/backend' into pluginAPI/loadPlugin 2021-08-04 15:05:56 +02:00
Pierre Noël
eabe72f92e WIP 2021-07-26 16:59:59 +02:00
Alexandre Bodin
63b503f676 Wip 2021-07-08 21:53:30 +02:00
Alexandre Bodin
81dd94c6ec Refactor all query() calls 2021-07-08 18:15:32 +02:00
Pierre Noël
1ac226b962 WIP 2021-07-08 11:20:13 +02:00
Alexandre Bodin
2d59716f5d Cleanup CTB 2021-06-30 22:52:12 +02:00
Alexandre Bodin
a992a73b2e Update model relation definition 2021-06-24 09:09:30 +02:00
Alexandre Bodin
529d147726 Add confirmationToken to user for email confirmation
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-10-16 17:36:45 +02:00
soupette
4b207e6cc0 Add D&P key to all models. Change UI modal divider
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:10 +02:00
Alexandre Bodin
2e31afe6dd Upgrade doc to use env var and js config files
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-04-29 11:06:43 +02:00
Alexandre Bodin
9e34029878 Overwritte plugin config with user config
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-04-29 11:06:37 +02:00
Alexandre Bodin
cc9d23c3ac Merge branch 'develop' into features/media-lib
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-04-07 20:24:39 +02:00
Jean-Sébastien Herbaux
a583d1b859
Fix/#3184/fix server crashs on database change (#5703)
* Don't set connection field on create/edit operation on content-types & components

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Make sure that every component has a valid connection attribute

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Remove connection check on components load

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Remove default connections from core & webhook stores but make sure it's defined in the application lifecycle

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Fix component's associations that can be undefined instead of empty in populateBareAssociations

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Remove "default" connection from plugins' models

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Remove connection attribute from generated models (cli)

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Mutate each component instead of reassign

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Build core_store and webhook model based on the current config

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Add connection to templates conditionally (based on args)

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Set default value for description to undefined instead of empty string

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Remove unnecessary complexity

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Update getStarted models

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Fix attributes parsing for generate:model

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Removed tpl option from generate:model/api

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Remove tpl option from cli

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-04-07 16:31:44 +02:00
soupette
024ce975f1 Comment config
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-03-26 14:22:21 +01:00
soupette
2314d4ee46 Fix download
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-03-26 12:39:12 +01:00
soupette
86f6ad6d45 Fix delete media
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-03-26 12:34:43 +01:00
Alexandre Bodin
9159bb1c65 Migrate upload providers to new config system
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-02 16:46:44 +01:00
Alexandre Bodin
04f6050ae1 Cleanup feedbacks
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-11 17:35:09 +01:00
Alexandre Bodin
3ce852af61 User :: in policies prefix and update documentation accordingly
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-10 21:38:39 +01:00
Alexandre Bodin
0285c7bd96 Add metadatas to resolvers to know where they are created
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-10 21:38:37 +01:00
Alexandre Bodin
0c6d39297f Add graphql tests for single-types
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-10 21:38:37 +01:00
Alexandre Bodin
6aab5568f8 Fix ctm hidden fields 2019-12-17 12:33:56 +01:00
soupette
034070cc4c Clean models 2019-12-09 19:10:27 +01:00
Alexandre Bodin
6306b157b0 Fix mutation resolver name selecter 2019-10-08 11:03:28 +02:00
Alexandre Bodin
048a071c79 Default mainField string 2019-08-19 16:13:24 +02:00
Alexandre Bodin
b58d7a138a Support content types layouts and metadatas defaults with Model.config.js(on) files 2019-08-06 13:49:24 +02:00
Alexandre Bodin
e4c7a699fb Add image upload in routing policy of the content manager 2019-08-05 10:31:18 +02:00
Alexandre Bodin
60ed10d1a3 Clean exemplae documentation and add it to gitignore 2019-06-21 14:16:45 +02:00
Alexandre Bodin
754acd0280 Fix user routes using _id instead of id
- Add database.js and DB env to example app to test on different dbs
quickly
2019-06-18 18:33:53 +02:00
Alexandre Bodin
50fc3a127f Add example in getstarted 2019-06-12 14:35:03 +02:00
Alexandre Bodin
3104204e20 Fix amountLimit in graphql queries 2019-06-11 13:56:24 +02:00
Jim LAURIE
6dd78863e9 Rename docs version name 2019-06-01 18:41:38 -07:00
Alexandre Bodin
51300f4a4f Fix Add image upload in content type and add image in example app 2019-05-23 10:21:41 +02:00
Alexandre Bodin
a1a968c342 Cleanup example app 2019-05-17 16:09:22 +02:00
Alexandre Bodin
08217f98f6 Append extensions array to allow overwritting routes 2019-04-23 10:28:40 +02:00
Alexandre Bodin
0ba139307c Handle many to many correctly 2019-04-19 17:32:43 +02:00
Alexandre Bodin
d4a7868edf Handle extensions controllers and services 2019-04-18 17:11:20 +02:00
Alexandre Bodin
710e3ab52f Save plugins models in extensions folder 2019-04-16 09:05:46 +02:00
Alexandre Bodin
eb7c4534f8 Exports schema.graphql in devmode, load extensions folder and run merge config and overwrites 2019-04-16 09:00:24 +02:00
Alexandre Bodin
2fa8afbb1a Fix graphql and some styling 2019-04-16 08:50:47 +02:00
Alexandre Bodin
50bccee156 Setup default controller / service 2019-04-16 08:50:47 +02:00
Alexandre Bodin
9e9ff9907d Refactor strapi load 2019-04-16 08:50:22 +02:00