97 Commits

Author SHA1 Message Date
François de Metz
645c0b8cf4
Implement deleteFile graphql mutation (#5292). (#7937)
* Implement deleteFile graphql mutation (#5292).

Signed-off-by: François de Metz <francois@2metz.fr>

* Test if the file exist before removing it.

Signed-off-by: François de Metz <francois@2metz.fr>

* Fix a typo.

Signed-off-by: François de Metz <francois@2metz.fr>
2020-10-05 11:34:15 +02:00
Pierre Noël
567401f0c1
Fix/warn file too big (#8033)
* handle fileTooBig errors

Signed-off-by: Pierre Noël <petersg83@gmail.com>

* add entityTooLarge error in provider plugins

Signed-off-by: Pierre Noël <petersg83@gmail.com>

* fix linter

Signed-off-by: Pierre Noël <petersg83@gmail.com>

* refacto

Signed-off-by: Pierre Noël <petersg83@gmail.com>

* Add better error message for 413 errors in ML

Signed-off-by: soupette <cyril.lpz@gmail.com>

* refacto

Signed-off-by: Pierre Noël <petersg83@gmail.com>

* refacto

Signed-off-by: Pierre Noël <petersg83@gmail.com>

Co-authored-by: soupette <cyril.lpz@gmail.com>
2020-09-29 12:00:25 +02:00
Cr0s4k
7baad9bbfd
Update file info mutation (#7691)
* added new updateFileInfo mutation

Signed-off-by: Omar Garcia <omarcruz11@hotmail.com>

* added test

Signed-off-by: Omar Garcia <omarcruz11@hotmail.com>

* fixed test

Signed-off-by: Omar Garcia <omarcruz11@hotmail.com>

* Added fileInfoInput

Signed-off-by: Omar Garcia <omarcruz11@hotmail.com>
2020-09-03 12:17:40 +02:00
Alexandre Bodin
5c6851e6ba Update naming of permissions
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:45 +02:00
Pierre Noël
243c4ccc4e add upload permissions to default roles + second refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:09:52 +02:00
Convly
ef94229d81 Add Condition Provider & Permissions Engine 2020-07-08 11:05:49 +02:00
Pierre Noël
0ff2048ea9 add action plugins::application.settings.read
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:05:08 +02:00
Pierre Noël
e078c0b022 rename permissions to actions, inverted params of provider.get, separated formatter, add possibility to not specigy pluginName for ::application
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:05:07 +02:00
Pierre Noël
707746ef45 refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:05:06 +02:00
Pierre Noël
ae0dcb9745 add route GET /admin/permissions
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:05:06 +02:00
Convly
a615f16bb5 Move orm condition directly into the pruneObsoleteRelations query
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-05-04 11:27:52 +02:00
Convly
8a2050add0 Apply PR feedback and fix tests
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-05-04 11:11:23 +02:00
Convly
4046e4227c Assign type value directly in configurator properties
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-05-04 11:11:23 +02:00
Convly
079ad89781 Prune obsolete files relations on startup
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-05-04 11:11:22 +02:00
Alexandre Bodin
71d7ecab6c Move proxy to controllers to protect it
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-04-03 15:34:05 +02:00
Alexandre Bodin
8bac1b1835 Add extend method in provider prototype
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-14 18:29:36 +01:00
Alexandre Bodin
55bdc146b7 Remove video preview setting
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-13 15:41:15 +01:00
Alexandre Bodin
eb76a07daf Update media-lib features according to spec changes
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-12 14:25:50 +01:00
Alexandre Bodin
2d12f88394 Optimize file
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-09 09:05:43 +01:00
Alexandre Bodin
e0b1c1181e Change upload bootsrap comment
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-09 09:05:42 +01:00
Alexandre Bodin
c722b0db00 Implement file replace
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-05 13:51:15 +01:00
Alexandre Bodin
7cd34b725a wip
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-05 10:29:08 +01:00
Alexandre Bodin
b084cb1c65 Return type list and mimeTypes for filters
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-05 10:29:08 +01:00
Alexandre Bodin
196160dc1c Add allowedType in ctb and init getMediaTypes api
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-05 10:29:07 +01:00
Alexandre Bodin
e5b319d81e Update file creation process with fileInfo
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-03 16:33:48 +01:00
Alexandre Bodin
27cf7f9077 Fix graphql upload size
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-02 16:46:47 +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
fd3511b511 Use strapi.plugins.upload.config for provider config
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-02 16:46:44 +01:00
Alexandre Bodin
7a8c865051 Merge branch 'develop' into features/media-lib
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-02 15:18:08 +01:00
Alexandre Bodin
2382332a4d Update to a more recent CI os version
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-28 12:06:44 +01:00
Alexandre Bodin
d7fd4ced2a Move test folder to fix import issue
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-27 22:31:30 +01:00
Alexandre Bodin
68fbf77b30 Add new media lib settings. Remove db provider config
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-27 20:26:05 +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
Jim LAURIE
fd2aaecac1 Load scoped providers 2019-10-26 15:50:31 +02:00
Veit Bjarsch
3a8c3055e4 added resolverOf and plugin key to graphql schema 2019-10-21 00:12:04 +02:00
Alexandre Bodin
0026819119 Fix files resolver graphql 2019-09-16 23:19:10 +02:00
Alexandre Bodin
7c5f1484ba Use koa-router and fix graphql-uploads 2019-08-22 15:04:27 +02:00
Alexandre Bodin
3b47457f4f make boostrap functions async only 2019-08-12 15:35:40 +02:00
Alexandre Bodin
45e6533941 Cleanup and remove upload plugin queries 2019-07-16 17:23:37 +02:00
Alexandre Bodin
59c7ef9651 Finish upload plugin refactoring and add custom queries 2019-07-16 17:23:26 +02:00
Alexandre Bodin
3a640539d3 Fix missing default providers 2019-05-06 16:01:18 +02:00
Alexandre Bodin
a6bb0ada0a Add setup script and build on dev if not build folder 2019-05-03 14:41:09 +02:00
Alexandre Bodin
87857b94be Implement strapi.queries for all models 2019-04-16 09:05:46 +02:00
Alexandre Bodin
9e9ff9907d Refactor strapi load 2019-04-16 08:50:22 +02:00
Alexandre Bodin
3098309369 Use mongoose.find on simple queries for a perf boost 2019-03-26 14:57:02 +01:00
Alexandre Bodin
d2db6b633f Mongo + graphql v1 2019-03-21 09:07:36 +01:00
Kamal Bennani
e8c92fc3d7 Adapt Services to the new Mongoose API 2019-03-21 09:06:06 +01:00
Kamal Bennani
c93311557e Adapt Services to the new Bookshelf API 2019-03-21 09:05:42 +01:00
Jim LAURIE
dac168cedb Manage email and upload providers from an npm organisation 2019-03-01 17:09:19 +01:00
Sajjad Shirazy
a9606b6eae Supporintg IN and NOT IN as a filter type 2019-02-03 15:08:36 +03:30