15371 Commits

Author SHA1 Message Date
soupette
b6e6f7cbbd Fix relation display
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:45:59 +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
soupette
1e56fe81a9 Update snapshots
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:45:58 +02:00
soupette
7af5408b1a Upgrade buffet.js
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:45:57 +02:00
Jean-Sébastien Herbaux
c4716d5668 [D&P] Return published content by default from get apis (#7657)
* Add _publicationState request param / Returns live by default for CT that have D&P activated

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-09-22 17:39:46 +02:00
Pierre Noël
f7bd0886bb add options 'editable' and 'restrictRelationsTo' in CTB (#7768)
* add options 'editable' and 'restrictRelationsTo' in CTB

Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-09-22 17:39:46 +02:00
soupette
e10452c245 Fix navigation between relations
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:45 +02:00
soupette
92a43a8152 Fix PR feedback
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:45 +02:00
soupette
ccebd4f4b1 Fix relation link with admin users
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:44 +02:00
soupette
6718a12242 Allow to create relations with the admin users
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:44 +02:00
soupette
02c5502cbd Prevent non editable models from being displayed in the ctb left menu
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:43 +02:00
Pierre Noël
4652f2083c refacto expect.toBeISOString
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-09-22 17:39:43 +02:00
Pierre Noël
cfba8f2489 fix tests
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-09-22 17:39:42 +02:00
Pierre Noël
8862f2b75d add test for route relation-list with many to many
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-09-22 17:39:42 +02:00
Pierre Noël
23acc65810 remove console.log
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-09-22 17:39:41 +02:00
Pierre Noël
e553467d55 refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-09-22 17:39:41 +02:00
Pierre Noël
09ae61ffab fix tests
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-09-22 17:39:40 +02:00
Pierre Noël
74a85c1127 Add migration d&p 2020-09-22 17:39:40 +02:00
soupette
6ac3034a70 Fix PR feedback
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:39 +02:00
soupette
296d26c46b Update CM trads
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:39 +02:00
soupette
3a21b38c50 Change confirm trad for popupwarning
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:38 +02:00
soupette
565b932a9e Add confirmation when disabling the D&P feature on a ct.
Clean trads

Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:37 +02:00
soupette
c4b9bf45ee Fix PR feedback
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:37 +02:00
soupette
ffabc56fee Hide D&P events when not needed
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:37 +02:00
soupette
97242b3ebc Fix wrong css property
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:36 +02:00
soupette
e6cd132b6d Fix select background
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:36 +02:00
soupette
d08a392bb2 Created custom modal warning
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:35 +02:00
soupette
1fb475e7a9 Clean popupwarning
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:35 +02:00
soupette
cc00789a66 Fix perfs
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:34 +02:00
soupette
5a6d9a89b8 Created utility to get draft relations
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:34 +02:00
soupette
28bc1959c4 Fix read only mode
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:33 +02:00
soupette
76c662d4e7 Design relations for D&P
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:33 +02:00
soupette
d3082807d1 Add dnd relation state
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:32 +02:00
soupette
bb4cea6019 Clean code
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:32 +02:00
soupette
bea6dada63 Add published_at field
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:31 +02:00
soupette
1fcbb15143 Remove tooltip for delete event
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:31 +02:00
soupette
0528ab9c19 Fix snapshots
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:30 +02:00
soupette
fa89ec8f35 Clean trads
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:30 +02: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
soupette
7a17ae25e2 Add publish webhook events
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:29 +02:00
soupette
a5ff026568 Remove models
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:28 +02:00
soupette
efa547aa31 Fix validations
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:28 +02:00
soupette
597c4ec374 Fix publish/unpublish
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:27 +02:00
soupette
307bcf9a08 Fix multiple api calls
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:27 +02:00
soupette
31ad694a7e Fix delete entry
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:26 +02:00
soupette
5abab1d9c5 Fix feedback settings view
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:26 +02:00
soupette
1bf63ef388 Fix role creation and edition
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:25 +02:00
soupette
6e3d924d7a Fix webhooks
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:25 +02:00
soupette
ae1fcdecf3 Fix admin roles bugs. Wrong redirection after creating a role, reset and submit logic
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:24 +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