Alexandre BODIN
54af039f17
Fix is-creator condition not applied on find ( #9213 )
...
* Fix is-creator condition not applied on find
* Add test
2021-01-26 10:18:43 +01:00
Pierre Noël
387ded4a99
Fix relation search ( #9156 )
...
* add params to relation route to omit existing relations
* small refacto
* use omit approach
* Fix relation select (Front)
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
* Fix relation select review
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
* update doc aos + remove useless cast to string
Co-authored-by: HichamELBSI <elabbassih@gmail.com>
2021-01-25 17:58:18 +01:00
Pierre Noël
23dcde6d90
add didConfigureListView
2020-12-18 16:19:39 +01:00
Pierre Noël
885dc5a138
refacto findWithRelationCounts
2020-12-16 17:44:43 +01:00
Pierre Noël
2bbb6b1a1f
fix many-many preview with mongo
...
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-12-10 18:30:49 +01:00
Pierre Noël
4b25c36739
Add count
2020-12-08 17:27:02 +01:00
Jean-Sébastien Herbaux
40b31da75c
Relational fields - Get mainField from configuration's metadata ( #8789 )
...
* Returns the mainField for the list view
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Use lodash fp
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Move helpers functions outside of the controller
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-12-08 16:55:27 +01:00
Pierre Noël
ab98afe80d
use correct mainField
...
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-12-07 15:50:46 +01:00
Pierre Noël
dce8f7c6fa
refacto
...
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-12-04 16:07:18 +01:00
Pierre Noël
0d9812db95
add many relations preview route
2020-12-02 15:48:00 +01:00
Alexandre Bodin
04c85dd218
Apply feedbacks
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-06 19:25:09 +01:00
Alexandre Bodin
44768b9614
Cleanup sanitize function in permission-checker
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-03 16:48:14 +01:00
Alexandre Bodin
61c321fcd1
Update tests
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-03 13:42:01 +01:00
Alexandre Bodin
02c7d97ffc
Remove multipart
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-03 10:00:50 +01:00
Alexandre Bodin
cbafb3ef92
Add pagination
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-03 08:12:05 +01:00
Alexandre Bodin
9438230648
move entity to entity-manager
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-02 21:13:50 +01:00
Alexandre Bodin
7f906d7cf2
Refactoring
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-02 19:50:55 +01:00
Alexandre Bodin
08a603623b
Cleanup tests
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-02 19:41:46 +01:00
Alexandre Bodin
0db015e6c2
Update tests
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-02 19:41:45 +01:00
Alexandre Bodin
bfa6766475
init coll-type
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-02 19:41:45 +01:00
Alexandre Bodin
2bbd47ba2c
Single type routes
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-02 19:41:44 +01:00
Alexandre Bodin
7509a16152
Refactor relation-list route
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-02 19:41:44 +01:00
Alexandre Bodin
b37a92c60f
Refactored uid utils
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-02 19:41:44 +01:00
Alexandre Bodin
8ecc36cfa3
Init refactoring of content manager configuration routes
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-02 19:41:42 +01:00
Alexandre Bodin
b325fd0572
Move content type schemas routes
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-02 19:41:41 +01:00
Jean-Sébastien Herbaux
38126d9a32
Fix "has same role as author" condition not working properly ( #8202 )
...
* Fix "has same role as author" condition not working properly
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Use creators constants
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Add e2e test for default conditions, fix conditions on mongoose
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Fix tests in CE
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-10-08 19:50:39 +02:00
Pierre Noël
7221412d68
Draft publish/validators ( #7853 )
...
* add validators for dz, components and relations
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-09-22 17:45:59 +02:00
Pierre Noël
38216554d5
Draft publish/remove some validators for drafts ( #7537 )
...
* remove required + minLength validator for drafts
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-09-22 17:39:24 +02:00
Convly
36668fa173
Add ability to unpublish a content
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-09-22 17:39:23 +02:00
Jean-Sébastien Herbaux
ca963a6f90
[D&P] Publish a draft ( #7532 )
...
* Add publish a draft capability.
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-09-22 17:39:19 +02:00
Pierre Noël
e29c1b7de9
add published_at ( #7374 )
...
* add published_at
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-09-22 17:39:18 +02:00
Alexandre Bodin
109e41ea1f
Fix e2e tests
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 13:53:56 +02:00
Convly
e63306b559
Rewrote users-permissions's controller to fit with rbac, fix various bugs in content-manager's controllers
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:44 +02:00
Alexandre Bodin
1c90614f8b
Fix sanitizeEntity
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:44 +02:00
Convly
647b5a2b6e
Remove useless check
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:43 +02:00
Alexandre Bodin
097c7f4477
Add sanitize
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:43 +02:00
Alexandre Bodin
8109af101c
Handle specific find case of ST
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:43 +02:00
Alexandre Bodin
cdc9bc2167
Allow multiple args in policies
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:43 +02:00
Alexandre Bodin
1b460c76ff
Fix find relation list for compo
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:42 +02:00
Alexandre Bodin
3ff5f645c8
Add single type usecase and fix delete
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:42 +02:00
Alexandre Bodin
44a7e2321d
Update findOne
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:42 +02:00
Alexandre Bodin
c31c86c8e5
Allow compo option
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:42 +02:00
Alexandre Bodin
29fcf7c3cd
Clean find relation list and tests
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:42 +02:00
Convly
56d583e49e
Add basis for upload controllers permissions
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:41 +02:00
Alexandre Bodin
e8063ceb28
Add relation-list route in the CM
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:41 +02:00
Convly
20f80b2361
Better permissions-manager.sanitize behavior
...
Forbid empty arrays as fields for permissions (on ability creation)
Differentiate input from output sanitizing
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:38 +02:00
Convly
f2eb3c5726
Use AbilityBuilder instead of defineAbility, fix content-manager::create route
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:18 +02:00
Convly
c11e6dfa88
Use AbilityBuilder instead of defineAbility, fix content-manager::create route
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:17 +02:00
Convly
25c04c8d78
Fix actions name typo
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:17 +02:00
Convly
b5fb5f8509
Add permissions to the content-manager routes
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:17 +02:00