22 Commits

Author SHA1 Message Date
DMehaffy
1b1c7ca746
Add autoPopulate to model docs (#8323)
Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
2020-10-14 08:51:52 -07: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
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
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
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
Jim LAURIE
9ca1bc9962
Merge pull request #6923 from jorisw/patch-1
Update models.md
2020-07-29 11:22:03 +02:00
Joris W
e1a09aba61
Update Dynamic Zone description 2020-07-17 18:10:34 +02:00
Riley Shea
823bb6fdb1
typo fix for below text link (#7001) 2020-07-16 11:12:06 +02:00
Joris W
3ced95b611
Update models.md 2020-07-07 10:41:30 +02:00
Joris W
77cf549c07
Update models.md 2020-07-07 10:40:33 +02:00
Joris W
2d0ebc99c4
Update models.md
Clarified intro paragraph to better describe what Dynamic Zones do
2020-07-07 10:38:04 +02:00
Alexandre Bodin
93fa0c7b77 Merge branch 'master' into documentation 2020-06-15 17:15:07 +02:00
Dan Bryant
392bc2822f
Fixed misspelled word (#6621) 2020-06-15 14:35:41 +02:00
Diego Guerra
d4186cdbec
fix: misspelled lifecycle hook in documentation (#6679) 2020-06-15 14:32:10 +02:00
Jim LAURIE
33d16cf772
Merge branch 'master' into feature/slugify-options 2020-06-05 13:57:49 +02:00
Jim LAURIE
ede5a72e71
Fix list guide lines 2020-06-05 13:57:09 +02:00
Rasmus Nørskov
53822482a7 Charged documentation format
Signed-off-by: Rasmus Nørskov <rasmus@norskov.org>
2020-06-02 17:46:00 +02:00
Derrick Mehaffy
5907ff9a56
Typo fixes through the stable docs 2020-05-31 07:52:21 -07:00
Rasmus Nørskov
7733ae4a16 Moved docs
Signed-off-by: Rasmus Nørskov <rasmus@norskov.org>
2020-05-30 20:48:35 +02:00
Alexandre Bodin
042b6ff4a4 Fix lifecycles doc
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-05-28 09:40:14 +02:00
Alexandre BODIN
61c0c9d9b4
Add v3.x and remove alpha docs (#6344)
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-05-25 18:11:45 +02:00