Commit Graph

169 Commits

Author SHA1 Message Date
Aina Sitraka
b0eba5217c PHRAS-4057: log_doc - report mark as "cancel" for running_job entry (#4501)
* log_docs mark as canceled too

* PHRAS-4058 auto cancelling job

* add auto-cancelingJob in hour in the config

* add patch rc12
2024-04-30 11:44:14 +02:00
Aina Sitraka
1fd3377e27 PHRAS-4018: admin - object inspector - more informations about a record (#4465)
* admin object inspector display record subdef

* fix multiple cancelling job

* api inspector and some fix

* admin inspector get record basket

* admin inspector get record stories

* some fix, generate token
2024-02-07 12:29:19 +01:00
Aina Sitraka
774c3408cf PHRAS-3995: Admin - worker - job queue - average duration (#4448)
* add average duration

* fix

* fix duration
2023-12-21 15:08:44 +01:00
jygaulier
e7027c7220 PHRAS-3800_xss (#4219)
* add encode option to record::get_title ; render preview.record_title in twig

* html-escape facet values
2023-03-15 11:05:34 +01:00
Aina Sitraka
fc278420a4 PHRAS-3598 Webhook - Emit improvement - Count and Log errors - stop to notify endpoint in error (#4209)
* deactivate webhook when many times undelivered

* fix

* fix log
2023-01-11 14:52:22 +01:00
Aina Sitraka
a892887dd2 PHRAS-3783 Prod - Order manager - add Download Expiration date (#4191)
* add download expiration date

* add expiration info in mail

* add calendar on order-manager validation

* add a default config on patch if not exist

* fix

* add predifined expireon date

* expiration override

* fix order manager deny and sen in the same time

* patch for todo column

* bump version

record acl admin

fix pusher and date on order

* some improvement

* some fix
2022-12-20 12:42:59 +01:00
Aina Sitraka
36cf7664da fix broken manually ack job (#4169) 2022-11-09 09:38:07 +01:00
Aina Sitraka
5c88140f26 real entry duration (#4166) 2022-10-31 14:33:38 +01:00
Aina Sitraka
69ccdefb51 PHRAS-3754 admin - user detail - Record ACL tab (#4148)
* record acl tab in admin

* fix email locked, limit record right to 200

* fix

* add filter

* update

* feed element, basket element

* feed list

* feed entries

* when not expand

* some improvement
2022-10-25 23:21:25 +02:00
Aina Sitraka
b9c445ca2c PHRAS-3750 select time filter (#4160) 2022-10-25 19:29:02 +02:00
Aina Sitraka
49a0dcabf2 duration even if not finished (#4157) 2022-10-21 18:14:13 +02:00
Aina Sitraka
f9de6877d2 PHRAS-3742 Admin flush session (#4131)
PHRAS-3742 : 
- flush session
- command
- redis remove by pattern
- cmd
- add log
- clean table session
2022-10-05 16:56:13 +02:00
Aina Sitraka
2c5dd80e54 PHRAS-3750 fix filter (#4145) 2022-10-05 15:45:56 +02:00
Aina Sitraka
1481f163f1 PHRAS-3750 admin - worker - job - add sum for job duration - add time filter like 1h - 3h - 12h - 1d -3d - 1w (#4144)
* duration sum and time filter

* time filter

* add week and month filter
2022-10-04 17:34:26 +02:00
Aina Sitraka
2d71cffe46 PHRAS-3738 Admin - worker - job tab - add filter on databox_id (name),record_id (#4132)
* add databox and record id filter

* add entry count

* generate translation

* fix retrieve count in DB

* change string position
2022-09-16 10:18:07 +02:00
Aina Sitraka
70b2658302 PHRAS-3719 filter on job type (#4118)
* filter on job type

* fix
2022-09-07 16:57:49 +02:00
Aina Sitraka
54a96ee8df PHRAS-3729 Uploader pull mode - make it compatible with PS-461 uploader multi-destinations and permissions (#4116)
* pull mode multi destination

* add patch
2022-09-07 11:49:35 +02:00
Aina Sitraka
f150d2a3cd PHRAS-3705 prod - workzone - shared basket - action menu items is wrong (#4080)
* fix 403

* taken account hd right on sharebasket

* fix right on feedback

* taken account can_agree owner

* fix
2022-07-08 12:47:47 +02:00
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
jygaulier
2d928bc994 PHRAS-3663 fix: empty baskets (for participants) were not visible in wz (#4027) 2022-05-20 17:28:08 +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
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
ab1ef68af2 PHRAS-3223 Admin - user details - display AuthFailure and Authprovider info (#4002)
PHRAS-3223
* add auth failure tab

* auth provider list

* api oauth code list

* fix limit

* delete modificaiton date

* add mail locked only filter

* add badge on api list
2022-04-06 10:45:49 +02:00
aynsix
c12cefa028 PHRAS-3468 remove logs trace 2021-11-09 10:51:49 +03:00
aynsix
77abda4996 PHRAS-3348 fix clean token 2021-08-12 17:19:18 +03:00
jygaulier
3e8d5aaf3c PHRAS-3442_optimize_notifications
fix missing "on" clause on sql
2021-07-21 20:59:38 +02:00
jygaulier
fdc938c988 fix : no writemeta on doc while building subdef
add traces
2021-07-12 21:32:12 +02:00
jygaulier
f831bb282d PHRAS-3476_subdefs-corrupted
fix : q-message "writemeta/document" is now sent after all synchronous exiftools.
added lot of traces, to be removed asap
2021-07-12 21:29:26 +02:00
jygaulier
2647580d5f PHRAS-3479_trace-crash-on-usec0
fix : "trace" do not report usec anymore
2021-06-30 17:43:36 +02:00
jygaulier
70a3a24c5b PHRAS3469_slow-basket-select
fix : replace left joins by "inner join"+"union"
2021-06-24 20:08:04 +02:00
jygaulier
e87a51f7f3 PHRAS-3447_file-lock-in-workers_4.1
add : writemeta on document : do not retry when exiftools says something like "looks more like a png"
2021-06-16 12:11:37 +02:00
jygaulier
bc173c93b0 PHRAS-3447_file-lock-in-workers_4.1
fix : missing "created" date
2021-06-16 12:11:37 +02:00
jygaulier
336861b7c7 PHRAS-3447_file-lock-in-workers_4.1
fix : replace doctrine by sql ; refacto ; add traces
2021-06-16 12:11:37 +02:00
jygaulier
9b3886d3dd PHRAS-3447_file-lock-in-workers_4.1
fix : get mutex retry loop is ok (plain sql, no use of EM... no more "EM is closed")
2021-06-16 12:11:37 +02:00
jygaulier
5f5ee4af95 PHRAS-3447_file-lock-in-workers_4.1
fix : prevent file access with rules depending on job, wrap rules with mutex
2021-06-16 12:11:37 +02:00
jygaulier
7c236a531a PHRAS-3447_file-lock-in-workers_4.1
fix : exclusive lock for a worker to work on a subdef file
2021-06-16 12:11:37 +02:00
jygaulier
fff3f284bb PHRAS-3425_fix-translation-dump_MASTER
fix : bump patched jms/translation-bundle (forked)
fix : all errors ; most warnings
2021-04-21 15:02:39 +02:00
aynsix
3492b9f720 PHRAS-3388 feedback result in detail view 2021-03-09 18:10:08 +03:00
aina esokia
7041a11873 PHRAS-2283 port to 4.1 access autorisation windows 2021-02-11 16:48:49 +03:00
aina esokia
e38d143dfe PHRAS-3277 2020-12-03 18:09:03 +03:00
aina esokia
427216ec43 PHRAS-3277 validation reminder in percent 2020-12-02 17:31:05 +03:00
aina esokia
e9dabaaa41 fix job status
#time 1h
2020-10-20 15:57:46 +03:00
jygaulier
f7ca61f36b - add : command bin/console validation:remind (experimental)
- removed : internal handling of "VALIDATION_REMINDER" event
- fixed : duration formatting
2020-09-16 10:28:17 +02:00
jygaulier
0ec33829df - fix : "validate" token is created for every user (participant) of a validation
the expiration date of tokens is same as validation session
- fix : changing the exp. date of a validation session updates the tokens exp. dates
- fix : remind is done even for validation sessions with force-auth (no tokens)
- change : no more 'null' user for basket validation (never used)
2020-09-14 16:57:53 +02:00
aynsix
b5b69343bd add and display interrupt status 2020-08-06 15:17:06 +03:00
aynsix
bea001c4b7 use workerrunningjob for uploader and populate 2020-07-21 15:12:03 +03:00
aynsix
e790c2dc6e create subtitle worker 2020-07-03 11:54:19 +03:00
aynsix
50f016ebb5 fix mysql server gone away and dead lock on table 2020-05-27 19:55:45 +03:00
aynsix
d25da3ee0c remove sqllite db , add finished colomn 2020-05-26 19:35:33 +03:00
aynsix
5b13beb02e fix test 2020-05-16 09:35:38 +03:00