Commit Graph

192 Commits

Author SHA1 Message Date
Aina Sitraka
f9d19d6fe5 PHRAS-3525 Admin can change status to canceled for multiple job (#4055)
-  Can change status to canceled for multiple running jobs
-  Add confirm when clear table
- Workers, adding try catch on recordadapter for 
 - Delete Worker
 - Webhook Worker
 - Subdefinition Worker
2022-06-16 17:08:46 +02:00
Aina Sitraka
6e70905607 PHRAS-3665 can disable validation reminder (#4049) 2022-06-10 10:33:37 +02:00
Nicolas Maillat
d0413ef644 PHRAS-3671 : commenting logs lines (#4039) 2022-06-02 12:16:02 +02:00
Aina Sitraka
b2633cdfd8 fix hearbeat (#4021)
Co-authored-by: jygaulier <gaulier@alchemy.fr>
2022-05-18 12:32:06 +02:00
jygaulier
595be077c4 PHRAS-3671_slow_share_basket_worker (#4013)
* PHRAS-3671_slow_share_basket_worker
remove doctrine transaction
optim acl
prefetch records
gc_collect

* PHRAS-3671_slow_share_basket_worker
fasten lightbox by:
- don't create votes if not necessary
- remove useless join on dql
- add restricting criteria on left join dql
- prevent multiple calls to same fct (in twig)

* don't create votes during share-worker

* DEBUG : traces in tmp/ (default sql "replace" acl)

* PHRAS-3677 include "not-voted" in wz/baskets
2022-05-17 11:51:10 +02:00
Aina Sitraka
f004015f64 PHRAS-3662 Share Basket fix GUI - icons color and behavior (#4007)
* fix some display icon

* update translation

* fix icon size

* fix context color, set order

* remove search background

* change color share, refresh workzone

* fix icon active

* remove ccs from js file

* remove css in js file

* fix
2022-04-28 12:11:55 +02:00
jygaulier
fbccec009e PHRAS-3602_shared-baskets-step1 WIP DO NOT MERGE (#3929)
* PHRAS-3602 : migrate validations to baskets
WIP [skip ci]

* PHRAS-3602 : migrate validations code to baskets code (wip)
WIP [skip ci]

* PHRAS-3602 : migrate validations to baskets
WIP [skip ci]

* PHRAS-3602 : migrate validations to baskets
WIP [skip ci]

* PHRAS-3602 : fake commit to run tests

* PHRAS-3602 : migrate validations to baskets
fix typo

* PHRAS-3602 : migrate validations to baskets
fixed (some) tests

* PHRAS-3602 : migrate validations to baskets
fixed (some) tests

* PHRAS-3602 : migrate validations to baskets
fixed (some) tests. need to remove method():return_type signature because of old phpunit which does not mock it

* PHRAS-3602 : migrate validations to baskets
fix

* PHRAS-3602 : migrate validations to baskets
fix err 500 when a "vote" (feedback) is deployed in wz

* PHRAS-3602 : migrate validations to baskets
fix missing votes for element+participant
fix update vote dates on basket

* PHRAS-3602 : ux
bump production-client to 34
WIP [skip ci]

* PHRAS-3602 : rebase (bump production-client to 37)
WIP [skip ci]

* PHRAS-3602 : refacto css/twig/templates/... ; replace many png's by fonts
WIP [skip ci]

* PHRAS-3602 : fix icon / css
WIP

* PHRAS-3602 : better icon align ; back button color
fix : save button after adding a user
WIP [skip ci]

* PHRAS-3602 : restore sharebasket controller
todo : implement modification right ; owner is participant ?
WIP [skip ci]

* PHRAS-3602 : set "canModifiy" ; cleanup
WIP [skip ci]

* PHRAS-3602 : respect "can_modify" on shared basket
WIP [skip ci]

* PHRAS-3602 : fix badge icon bg ; fix button css
WIP [skip ci]

* PHRAS-3602 : fix css & cleanup
WIP [skip ci]

* PHRAS-3602 : fix 500 on preview/feedback tab
WIP [skip ci]

* PHRAS-3602 : fix allow to display dlg without selection

* PHRAS-3602 : bump version to 4.1.6-rc1 ; prodclient=38
WIP [skip ci]

* PHRAS-3602 : factorize baskets menu (wip)
WIP [skip ci]

* PHRAS-3602 : modify already shared or feedback basket (general menu)
4th icon on badges (vote != modify)
quitshare option (todo back)
allow fa-icons in toolbar

WIP [skip ci]

* PHRAS-3602 : add share end-date (todo:db write)
add 4th general toggle button
fix badge selection bug
fix css badges zone (form position)
WIP [skip ci]

* PHRAS-3602 : big refacto to use "sharebasket" vocab.
fusion "feedback/sharebasket" removed "feedback"
adaptative ux: 1 "can_agree" ==> feedback display
bump production-client to v50
todo: save shr/fbk end-dates
todo: rename "pushXXX" to pushAndShare ?
WIP [skip ci]

* PHRAS-3602 : share / feedback expiration dates are saved in db
date pickers with delta menu
better adaptive ux
todo: move select general togglers
WIP [skip ci]

* PHRAS-3602 : revert validation* tables (remove "dead" rename)
drop all foreign keys from validation*
WIP [skip ci]

* PHRAS-3602 : restore deleted fields in validation, regenerate proxies
WIP [skip ci]

* PHRAS-3602 : fix initiator_id
WIP [skip ci]

* fix initiator_id-bis

* PHRAS-3602 : css for input-text with glued button
dynamic load of users-lists (left zone) = less duplicated code
fix : users-lists  works after refresh
WIP [skip ci]

* PHRAS-3602 : fix users-lists manager (orange) : go flex !

* PHRAS-3602 : empty dist to ease rebase
WIP [skip ci]

* PHRAS-3602 : rebase
WIP [skip ci]

* PHRAS-3602 : new ux for "owner"
feedback mode is an independent toggle
fix "missing mandatory parameter"
WIP [skip ci]

* PHRAS-3602 : fix css of owner badge
WIP [skip ci]

* PHRAS-3602 : fix handling of feedback initiator
WIP [skip ci]

* PHRAS-3602 : better wss to follow "skins"
full roboto
removed useless class "with-button"
WIP [skip ci]

* PHRAS-3602 : fix "a token require a validation"
temporary fix 500 due to send email to (null) vote-initiator for simple share
todo: send a specific email for simple share
WIP [skip ci]

* PHRAS-3602 : different emails depending if user can vote or not
WIP [skip ci]

* PHRAS-3602 : expired shared baskets removed from wz
WIP [skip ci]

* PHRAS-3602 : fix logic error on last sql
WIP [skip ci]

* PHRAS-3602 : fix missing shared baskets on wz
WIP [skip ci]

* PHRAS-3602 : fix blinking of wz/basket detail
now only the title:hover displays detail
WIP [skip ci]

* PHRAS-3602 : rebase
WIP [skip ci]

* PHRAS-3602 : update basket proxy
WIP [skip ci]

* PHRAS-3602 : fix forever "unread" basket
WIP [skip ci]

* PHRAS-3602 : fix display of unread basket ; sync "eye" icon with css change
WIP [skip ci]

* PHRAS-3602 : "quitshare" action works
WIP [skip ci]

* PHRAS-3602 : missing dist files
WIP [skip ci]

* PHRAS-3602 : cleanup & run ci

* PHRAS-3602 : disable failing unit test ; remove blue on onread basket

* PHRAS-3602 : separate "vote" & "share" emails templates & u-tests

* PHRAS-3602 : add 2 icons "stack" to icomoon set
WIP [skip ci]

* PHRAS-3602 : fix test

* PHRAS-3602 : fix test ; add test for simple share email notification

* PHRAS-3602 : changed proxy

* PHRAS-3602 : colored basket icons
WIP [skip ci]

* PHRAS-3602 : circle basket icons
WIP [skip ci]

* PHRAS-3602 : fix wz filters, add "share" filter.
todo: fix fr writing (new string)
WIP [skip ci]

* PHRAS-3602 : fix "share" dichotomy : use "shared" for wz filter
WIP [skip ci]

* PHRAS-3602 : fix PHRAS-3624 ; PHRAS-3623 ; now adding/removing a user from user list is immediate (no more save button)
WIP [skip ci]

* PHRAS-3602 : fix PHRAS-3647 ; shared basket are listed in api (for list and related record)

* PHRAS-3602 : fix due to failing test

* PHRAS-3602 : fix: can load a 1000 users list
todo : move slow code to worker

* PHRAS-3602 : fix due to failing test

* PHRAS-3468 : (fixed in 3602) fix basket content still visible when baskets are hidden (wz-filter)

* PHRAS-3602 : add "wip" baskets with notification & lock
todo : move slow code from message to worker

* PHRAS-3602 : fix tests due to accidental rename

* PHRAS-3602 : fix : menu closes when mouse out : bump to 4.1.6-rc3
todo : fast move to another basket makes the menu appear on top ?

* add shareBasket worker

* fix test

* PHRAS-3602 : fix : rights buttons on badges now works for users added from search (did work only from loading list)

* PHRAS-3590

Co-authored-by: aynsix <asr@esokia-webagency.com>
Co-authored-by: Nicolas Maillat <maillat@alchemy.fr>
2022-04-07 17:07:43 +02:00
Aina Sitraka
c6a4922023 PHRAS-3650 keep channel connection (#3988)
* keep channel connection

* fix test

* fix test

Co-authored-by: Nicolas Maillat <maillat@alchemy.fr>
2022-03-31 16:47:52 +02:00
aynsix
7d8f5267a4 make rabbit message persistent 2022-03-18 15:55:55 +03:00
aynsix
40dae2106e test 2021-12-21 18:10:38 +03:00
aynsix
fe936b2166 test 2021-12-21 17:45:24 +03:00
aynsix
ad26b3a0a4 PHRAS-3614 send heartbeat when set Q 2021-12-21 17:24:01 +03:00
Nicolas Maillat
e39d4769cf Merge branch 'master' into PHRAS-3555-description-record-edit-webhook 2021-12-07 14:50:45 +01:00
aynsix
cb206c79bf PHRAS-3555 add description in record.edit webhook 2021-12-07 15:24:58 +03:00
aynsix
a14e15972b PHRAS-3598 taking account webhook active 2021-12-06 18:00:27 +03:00
aynsix
e591125e83 just use feed publisher on feed_entry 2021-12-03 16:20:57 +03:00
aynsix
dbca0718b5 add some element in message 2021-12-02 16:50:09 +03:00
aynsix
b69b3c350d fix feed_entry right 2021-12-01 17:12:34 +03:00
aynsix
8be9b2134e fix right for webhook type user 2021-12-01 10:51:19 +03:00
aynsix
7f4e6a3753 add some data to webhook 2021-11-26 15:56:51 +03:00
aynsix
cd8f6313f1 add restriction on specifq collection right 2021-11-25 17:23:53 +03:00
aynsix
aa1b6bc830 add unit test 2021-11-23 18:24:52 +03:00
aynsix
f23721809a filter on record status bit 2021-11-22 14:23:12 +03:00
aynsix
419d74b120 Merge branch 'master' of https://github.com/alchemy-fr/Phraseanet into PHRAS-3555-more-webhook 2021-11-16 17:42:34 +03:00
aynsix
074920353a PHRAS-3555 add more webhook events 2021-11-16 17:15:49 +03:00
Nicolas Maillat
f09071d99f Merge branch 'master' into PHRAS-3413-webhook-emit-timeout 2021-11-12 18:38:11 +01:00
aynsix
c12cefa028 PHRAS-3468 remove logs trace 2021-11-09 10:51:49 +03:00
aynsix
a186068b07 PHRAS-3413 add timeout when emit webhook 2021-11-08 16:51:11 +03:00
Nicolas Maillat
040c29c704 Merge branch 'master' into PHRAS-3166-webhook-tables-maintains-value 2021-11-03 13:03:46 +01:00
aynsix
45d48f2b9e remove space 2021-10-22 14:28:58 +03:00
aynsix
84b555dc2b PHRAS-3567 fix worker log 2021-10-22 11:48:49 +03:00
aynsix
8d524a8512 enable webhook by proxy 2021-10-19 11:21:14 +03:00
aynsix
eb9e87c1f4 fix webhook 2021-10-18 16:53:49 +03:00
Nicolas Maillat
b0abd5d54f Merge branch 'master' into PHRAS-3544_invalidate-stamp 2021-10-15 16:36:44 +02:00
Arthur de Moulins
8bcfe89ba3 PHRAS-3435 add worker:heartbeat command to detect broken connections 2021-10-06 15:10:32 +02:00
jygaulier
8a29dc8c0d PHRAS-3544_invalidate-stamp
move delete to subdef class
2021-10-06 11:44:09 +02:00
jygaulier
d887b3b137 PHRAS-3544_invalidate-stamp
delete stamp cache file after image rotation or build subdef
2021-10-05 20:03:57 +02:00
Arthur de Moulins
c15fe0590f PHRAS-3435 set heartbeat to 60 on AMQP connection 2021-09-30 12:23:46 +02:00
jygaulier
a4c932ab6c Update ExportMailWorker.php
remove bad "assert"s
2021-09-08 17:27:40 +02:00
jygaulier
b29a64bd79 Merge branch 'master' into PHRAS-3499_stamper-in-download-worker 2021-08-12 16:02:36 +02:00
aynsix
79b515a6cc recordsActions instead of record mover 2021-08-10 17:30:12 +03:00
aynsix
8d1893dc91 remove logsql setting 2021-08-10 10:40:16 +03:00
jygaulier
fbd6658f94 PHRAS-3499_stamper-in-download-worker
- for download by email, stamp is done by the worker (not by the prod controller)
- add "no-stamp" checkbox on download dlg (port from PHRAS-424)
- todo : add "no-stamp" to download-by-email dlg.
- todo ? apply stamp for download-by-ftp
2021-08-09 20:12:11 +02:00
aynsix
1bdad622a8 fix count on delete and trash 2021-08-09 16:54:28 +03:00
aynsix
bd177de9fa fix trash and delete display 2021-08-09 14:33:08 +03:00
aynsix
cddefc45c7 add trash action 2021-08-06 17:06:05 +03:00
aynsix
ed9b305d31 add default setting 2021-08-05 15:14:52 +03:00
aynsix
98d6ae4f7e add pseudo field 2021-08-05 10:58:08 +03:00
aynsix
ce93afb27e add sql view 2021-08-04 11:39:05 +03:00
aynsix
6b7f467a3d PHRAS-3237 record mover as worker 2021-08-03 10:39:58 +03:00