101 Commits

Author SHA1 Message Date
mijorus
34473d442c
Update queries.md (#8594)
* Update queries.md

this is my basic example of how this guide could be implemented. Please consider adding a paragraph in your docs about custom sql queries as they are the quickest and easiest  way sometimes to get data

* Update queries.md

* fixed spelling mistake

* Added draft-and-publish linkback
2020-11-09 13:02:19 -07:00
Alexandre Bodin
62e905dd0c Merge branch 'master' into documentation 2020-11-09 17:59:12 +01:00
Pierre Noël
eeb568bc97 improve doc env vars
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-11-09 17:01:17 +01:00
Pierre Noël
59ac2dd6f4 add use of STRAPI_DISABLE_UPDATE_NOTIFICATION
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-11-09 17:01:16 +01:00
Alexandre BODIN
12284b9b09
Merge pull request #8373 from shabab477/feature/add-cron-timezone
Added timezone for cron jobs
2020-11-09 11:08:19 +01:00
Shabab Karim
75c3ff9aab Added timezone for cron jobs
Signed-off-by: Shabab Karim <shababkarim93@gmail.com>
2020-11-08 21:20:46 +06:00
Pierre Noël
60bf24ce8b
Fix query when populating morph relations (#8548)
* change query when populating morph relations

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

* refacto

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

* refacto

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

* refacto

Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-11-06 14:35:36 +01:00
Rémi de Juvigny
14c9209f36
Fix typo in templates docs (#8571)
Signed-off-by: Rémi de Juvigny <remi@hey.com>
2020-11-04 07:24:45 -07:00
DMehaffy
c86d5d274e
Add policies information to routing and link controllers to routing docs (#8445)
Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
2020-10-26 09:40:30 -07:00
DMehaffy
1b1c7ca746
Add autoPopulate to model docs (#8323)
Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
2020-10-14 08:51:52 -07:00
Ross Brown
1983d50aca
Adds warnings and workarounds for Brotli performance in koa-compress (#8261) 2020-10-14 13:07:32 +02:00
meganelacheny
0f7b5ccc1e
Draft and Publish documentation - Fix (#8292)
* Add note in Draft and Publish doc about activating feature at CT creation

* Fix wrong format for new note + Homogenise other special notices
2020-10-13 07:32:36 -07:00
Tanmoy Bhowmik
983c61c144
Add support for brotli compression (#8169)
* chore(package): upgrade koa-compress

Signed-off-by: tanmoyopenroot <tanmoy.openroot@gmail.com>

* fix(middleware): add config option

Signed-off-by: tanmoyopenroot <tanmoy.openroot@gmail.com>

* chore(docs): update gzip docs

Signed-off-by: tanmoyopenroot <tanmoy.openroot@gmail.com>
2020-10-07 09:49:18 +02:00
Alexandre Bodin
48b138e81c Merge branch 'master' into documentation 2020-10-06 11:06:24 +02:00
Alexandre BODIN
44894ce220
Merge pull request #8183 from strapi/3.2/docs
Draft & Publish documentation
2020-10-05 20:16:04 +02:00
Mégane Lacheny
6e41cf1935 Fix more typos in the Draft and Publish documentation 2020-10-05 16:24:26 +02:00
Mégane Lacheny
05494c50b5 Fix typos + Improve Draft and Publish documentation explanations 2020-10-05 15:54:42 +02:00
Mégane Lacheny
b005cd2082 Add note about roles and permissions for Draft and Publish documentation 2020-10-05 15:41:11 +02:00
Mégane Lacheny
b11171fec6 Add Edit icon in Draft and Publish documentation 2020-10-05 15:19:54 +02:00
Mégane Lacheny
4ff007e911 Add screenshots for Draft and Publish documentation 2020-10-05 12:03:38 +02:00
Alexandre Bodin
c98089ff65 Merge branch 'master' into releases/3.2
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-10-05 12:00:03 +02:00
Mégane Lacheny
235b2ef326 Fix Caution message in Draft and Publish documentation 2020-10-05 11:44:21 +02:00
Mégane Lacheny
063b779548 Add Caution about relations with non-published contents for Draft and Publish documentation 2020-10-05 11:41:07 +02:00
Mégane Lacheny
fd335637d0 Improve wording for Draft and Publish documentation 2020-10-05 10:36:06 +02:00
Mégane Lacheny
dc94bdbcd5 Create new file for Draft and Publish documentation + Write first draft 2020-10-04 20:46:30 +02:00
Thew Dhanat
620f84a962
Update configurations.md (#8150)
Signed-off-by: ThewBear <26767607+ThewBear@users.noreply.github.com>
2020-10-02 06:42:51 -07:00
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
Alexandre Bodin
8589848ce4 Merge branch 'features/draft-publish' into releases/3.2
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-10-01 16:23:32 +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
Alexandre Bodin
90761175f6 Merge branch 'master' into features/draft-publish 2020-09-23 18:19:26 +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
Pierre Noël
36892fe2a8 add webhooks for draftAndPublish + sanitize all webhooks info (#7629)
* add webhooks for draftAndPublish + sanitize all webhooks info

Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-09-22 17:39:29 +02: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