72 Commits

Author SHA1 Message Date
Alexandre Bodin
0e064d10e8 Merge branch 'master' into features/templates-cli
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-10-02 10:20:10 +02:00
Jean-Sébastien Herbaux
e55ea1d6b5
Hide creator fields from public api by default (#8052)
* Add model option to hide/show creators fields in public API response

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

* Add content-types util, rework sanitize-entity's private handling

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

* Update search e2e tests, fix an issue on empty search for the core-api controller (find)

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

* Fix GraphQL plugin (handle privates attributes on typeDefs + resolver builds)

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

* Fix sanitizeEntity import

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

* Move doc update from beta to stable

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

* Fix e2e test

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

* Fix pr comments

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

* Remove creator's field from upload controller routes

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

* Fix typedef build for graphql association

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

* Fix pr (comments + several issues)

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

* Add tests for search behavior in content-manager

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

* Rename files variables to meaningful names (upload controllers)

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

* Fix test with search id matching serialNumber

Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>

* Add toHasBeenCalledWith check for config.get (utils/content-types.test.js)

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

Co-authored-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-10-01 17:47:08 +02:00
Rémi de Juvigny
5726c36edf Fix yarn lock conflict
Signed-off-by: Rémi de Juvigny <remi@hey.com>
2020-09-30 11:19:20 +02:00
Mattias van den Belt
c5275958b0
Per hook timeout config option (#8081)
* Add per hook timeout config

Signed-off-by: MattieBelt <mattiasvandenbelt@gmail.com>

* Update hook docs with timeout config options

Signed-off-by: MattieBelt <mattiasvandenbelt@gmail.com>
2020-09-29 16:07:10 +02:00
Alexandre Bodin
4a27d9d46b Merge branch 'master' into documentation 2020-09-24 14:55:21 +02:00
Diego Albitres
0670c896e3
Add privateAttributes to global and per model response (#7331)
* Added privateAttributes globally and per model

Signed-off-by: Diego Albitres <diego.albitres@gmail.com>

* Added tests for sanitizeEntity

Signed-off-by: Diego Albitres <diego.albitres@gmail.com>

* Fixed broken test

Signed-off-by: Diego Albitres <diego.albitres@gmail.com>

* Added privateAttributes to GraphQL responses

Signed-off-by: Diego Albitres <diego.albitres@gmail.com>

* Added docs for privateAttributes

Signed-off-by: Diego Albitres <diego.albitres@gmail.com>

* Refactored and fixed PR comments

Signed-off-by: Diego Albitres <diego.albitres@gmail.com>

* Merged tests and fixed broken tests from merge

Signed-off-by: Diego Albitres <diego.albitres@gmail.com>

* Updated documentation for new option

Signed-off-by: Diego Albitres <diego.albitres@gmail.com>

* Refactored GraphQL implementation

Signed-off-by: Diego Albitres <diego.albitres@gmail.com>

* Fixed PR comments

Signed-off-by: Diego Albitres <diego.albitres@gmail.com>

* Fixed tests for sanitize-entity

Signed-off-by: Diego Albitres <diego.albitres@gmail.com>

* Removed code and tests for ignorePrivateFor

Signed-off-by: Diego Albitres <diego.albitres@gmail.com>

* Exported getPrivateAttributes for GraphQL plugin

Signed-off-by: Diego Albitres <diego.albitres@gmail.com>

* Removed ignorePrivateFor from docs

Signed-off-by: Diego Albitres <diego.albitres@gmail.com>
2020-09-24 09:40:10 +02:00
Simon Appelt
8254aca5f2
Bugfix to last commit 2020-09-23 18:35:16 +02:00
Simon Appelt
c9fe16d38c
Update services.md
I updated the code so it looks more like the strapi internal implementation.
https://github.com/strapi/strapi/blob/master/packages/strapi/lib/services/entity-service.js#L65
2020-09-23 18:31:29 +02:00
Rémi de Juvigny
3b0e02fe00 Autofix yarn.lock conflict
Signed-off-by: Rémi de Juvigny <remi@hey.com>
2020-09-23 14:25:55 +02:00
Adam
94f3b24ee2
feat(server): allow listening on unix socket through server.socket config (#7824)
* feat(server): allow listening on unix socket through `server.socket` configuration

Signed-off-by: Adam Lee <duo1123@gmail.com>

* docs(server): documentation for socket config

Signed-off-by: Adam Lee <duo1123@gmail.com>
2020-09-23 11:59:31 +02:00
Simon Appelt
510556b5b5
Update services.md
Added entityValidator to create and update service, so it act like the default service and doesn't throw a 500 Error on invalid data.
2020-09-23 09:34:38 +02:00
Christopher Wray
a0705063b5
Updated Models Page Grammar (#7912)
* Updated Models Page Grammar

Quickly went through the models' page in the documentation and updated some grammar as well as added some emphasis and brief clarification in a couple of places.

* Edited slight typo.

* Updated Models Page Grammar

Quickly went through the models' page in the documentation and updated some grammar as well as added some emphasis and brief clarification in a couple of places.

Signed-off-by: Christopher Wray <53663762+cwray-tech@users.noreply.github.com>

* Edited slight typo.

Signed-off-by: Christopher Wray <53663762+cwray-tech@users.noreply.github.com>
2020-09-22 19:28:32 -07:00
DMehaffy
42ceba9d88
Remove bad example with array for method (#7972)
Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
2020-09-21 07:53:23 -07:00
KULDIP PIPALIYA
eba0afd4c4
Update controllers.md (#7814) 2020-09-14 09:37:07 +02:00
Ove
5509d68c48
Fix minor typos on model documentation (#7619)
* Fix minor typos on model documentation

found 3 minor typos and replaced them

* fix typo in model 3.x docs
2020-09-14 09:29:19 +02:00
Mattias van den Belt
66bffcb84e
Update controllers.md (#7829)
Signed-off-by: MattieBelt <mattiasvandenbelt@gmail.com>
2020-09-11 09:26:42 -07:00
Rémi de Juvigny
24d42f385f Apply review feedback
Signed-off-by: Rémi de Juvigny <remi@hey.com>
2020-09-04 16:07:55 +02:00
Amir
f8437184ca
Fix typo in controllers.md (#7721)
The default SingleType service doesn't have an findOne() function only find().
See https://github.com/strapi/strapi/issues/7718 for details

Signed-off-by: Amir Lellouche <lalosher@gmail.com>
2020-09-04 13:58:46 +02:00
Rémi de Juvigny
e327d8ccfd Expanded templates docs
Signed-off-by: Rémi de Juvigny <remi@hey.com>
2020-09-03 11:25:38 +02:00
DMehaffy
b02bb62cc1
Add example for PG SSL CA verification (#7700) 2020-09-02 08:23:55 -07:00
Rémi de Juvigny
ea5eaafb66 Document templates usage and creation
Signed-off-by: Rémi de Juvigny <remi@hey.com>
2020-08-28 16:20:22 +02:00
David Janas
11f900085e
Increase parser arrayLimit to 100 (#7430)
* Add queryStringParser settings to parser middleware

Signed-off-by: David Janas <davidjanasr@gmail.com>

* add queryStringParser config to middleware documentation

Signed-off-by: David Janas <davidjanasr@gmail.com>
2020-08-13 18:35:38 +02:00
Alexandre Bodin
acf11ed9b1 Merge branch 'documentation'
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-08-12 14:52:37 +02:00
Derrick Mehaffy
18a02baf77
Fix custom mongoose query .toObject() is undefined
Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
2020-08-11 07:02:32 -07:00
Jim LAURIE
95d3f42610
Merge pull request #7368 from dr5hn/patch-2
FIX: Broken links to email configurations & middlewares
2020-08-10 11:51:43 +02:00
DMehaffy
f179a1cae9
Fix docs for loading ORM plugins (#7356)
Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
2020-08-07 15:56:52 +02:00
Darshan Gada
862f2c386b FIX: Broken links to email configurations & middlewares
Signed-off-by: Darshan Gada <gadadarshan@gmail.com>
2020-08-07 15:53:46 +05:30
Joshua Jung
6483d6186c Change CORS documentation on origin
CORS documentation on the origin property is now more explicit for multiple domains.

Signed-off-by: Joshua Jung <josh@jungdigital.com>
2020-08-05 22:48:39 +02:00
Pierre Noël
112716fc9b add conf proxy koa variable
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-08-03 17:34:05 +02:00
Derrick Mehaffy
34c90c9658
Remove session options from docs that no longer work
Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
https://github.com/strapi/strapi/issues/6421
2020-08-03 06:44:53 -07:00
DMehaffy
28b66d284f
Add more information about the parser middleware configuration (#7253)
* Add more information about the parser middleware configuration

Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>

* fix integer case

Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
2020-07-30 09:49:28 +02:00
Alexandre Bodin
8a702bc6e8 Merge branch 'master' into documentation 2020-07-29 13:36:37 +02:00
Jim LAURIE
9ca1bc9962
Merge pull request #6923 from jorisw/patch-1
Update models.md
2020-07-29 11:22:03 +02:00
Alexandre Bodin
da338f92c4 Merge branch 'documentation' 2020-07-28 10:50:10 +02:00
Jim LAURIE
4c4a4c1dd3
Docs review (#6848)
* docs: improve getting started

Signed-off-by: Jim LAURIE <j.laurie6993@gmail.com>

* docs: review quickstart video and some steps

Signed-off-by: Jim LAURIE <j.laurie6993@gmail.com>

* docs: review concepts

Signed-off-by: Jim LAURIE <j.laurie6993@gmail.com>

* docs: review email - upload plugins

Signed-off-by: Jim LAURIE <j.laurie6993@gmail.com>

* fix: PR feedback

Signed-off-by: Jim LAURIE <j.laurie6993@gmail.com>

* fix: PR feedback type conflict

Signed-off-by: Jim LAURIE <j.laurie6993@gmail.com>
2020-07-28 10:48:55 +02:00
MattieBelt
7627dba96a Add extension warning
Signed-off-by: MattieBelt <mattiasvandenbelt@gmail.com>
2020-07-24 09:40:35 +02:00
Pierre Noël
75be8688d2 DOC replace .html by .md
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-23 11:09:42 +02:00
Pierre Noël
7465b74d25 fix typo + remove comment
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-23 11:09:41 +02:00
Pierre Noël
4dc853a6e1 update doc + add localhost in confirmation links if url is not set
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-23 11:09:21 +02:00
DMehaffy
a58cd8f17b
Fixing service documentation and fixing DO referral link (#7101)
* Fix service docs for upload plugin

https://github.com/strapi/strapi/discussions/7090

* Change DO referral links
2020-07-22 14:23:54 +02:00
Alexandre Bodin
6bafa35a36 Merge branch 'releases/3.1.0' into features/rbac
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-18 10:12:40 +02:00
Joris W
e1a09aba61
Update Dynamic Zone description 2020-07-17 18:10:34 +02:00
Alexandre Bodin
cd710d34e0 Merge branch 'master' into documentation
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-16 17:10:06 +02:00
Alexandre Bodin
b71ffa6c6c Merge branch 'master' into features/rbac 2020-07-16 14:52:55 +02:00
Pierre Noël
066221f5b8 init migration guide to 3.1.x
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-16 12:58:14 +02:00
Nikolaj Ivancic
b2d4fbfb12
Update configurations.md (#6731) 2020-07-16 12:48:05 +02:00
Riley Shea
823bb6fdb1
typo fix for below text link (#7001) 2020-07-16 11:12:06 +02:00
Diego Albitres
1f55ec89e9
docs: fix 404 link on services.md (#7019)
Signed-off-by: Diego Albitres <diego.albitres@gmail.com>
2020-07-16 11:10:56 +02:00
Pierre Noël
e000432027 add the possibility to edit the template for the forgot password email
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:41:18 +02:00
Joris W
3ced95b611
Update models.md 2020-07-07 10:41:30 +02:00