Commit Graph

289 Commits

Author SHA1 Message Date
jygaulier
555646232e PHRAS-4085_data-volumes-api (#4529)
* new route `/api/v3/monitor/data/?oauth_token=xxx&blocksize=16ko`

* add `unit` parameter for size restults ('', 'o', ''ko', 'mo', 'go'), default '' (=octets, same as 'o')

* new units "octet", "octets"

* fix round error (don't sum rounded values: round the real sum)

* add infos about downloads;
round sizes to 2 decimals

* add `...&details=1` url parameter to get values by collection and subdef name

* add column size in LazaretFiles table

add command bin/maintenance lazaret:set_sizes

* add api monitor data by databox

* fix size
2024-07-17 17:25:42 +02:00
Aina Sitraka
cf4267214b inspector delete application (#4521) 2024-06-11 10:51:51 +02:00
Aina Sitraka
99de0c0b37 PHRAS-4062: admin users delete and request improvement (#4509)
PHRAS-4062 clean registration when user delete

PHRAS-4062 delete user's access requests

PHRAS-4062 generate translation
2024-06-11 08:50:53 +02:00
Aina Sitraka
d6849fd580 PHRAS-4007: Auth provider - add keycloak provider - openid (#4462)
* keycloak provider

* add readme

* comment regenarete password

* add exclusive option to provider an column can_renew_passwor to user

* default exclusive false

* always compatible with psauth

* bump image tag .env

* bump Version to 4.1.8-rc9

* bump version to rc12

* add autoconnect
2024-04-30 14:15:56 +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
jygaulier
8df3cf55b7 add stamp / no-stamp to export-by-email and export-by-ftp (#4437)
add default (disabled) stamp settings on new collections
add "record_edit" & "image_tools" to conf / export-stamp-choice privilege
2023-12-14 17:20:53 +01:00
jygaulier
07f4462672 PHRAS-3520_stamper-enhance (#4385)
* WIP DO NOT MERGE
add: stamp subdefs of class "preview"
apply watermark on stamped subdef (cache to be fixed)
fix: admin/collection settings (new ux, clean xml)

* WIP DO NOT MERGE
add: stamp subdefs of class "preview"
apply watermark on stamped subdef (cache to be fixed)
fix: admin/collection settings (new ux, clean xml)

* conf.export_stamp_choice now supports 'manage_collection' and 'manage_databox' (and bc true) to restrict right to remove stamp.

* fix test

* WIP DO NOT MERGE
add: stamp subdefs of class "preview"
apply watermark on stamped subdef (cache to be fixed)
fix: admin/collection settings (new ux, clean xml)

* conf.export_stamp_choice now supports 'manage_collection' and 'manage_databox' (and bc true) to restrict right to remove stamp.

* fix test

* fix compatibility with download-async ; add registry/actions/stamp-subdefs=false to conf
2023-11-22 12:30:55 +01:00
jygaulier
dc80246f56 PHRAS-3770_quarantine-enhancement (#4352)
* wip

* add: quarantine: when "adding", can copy metadata from the selected record

* fix failing test ; add test for "add & copy caption" (to be completed with field values...)

* wip

* add: quarantine: when "adding", can copy metadata from the selected record

* fix failing test ; add test for "add & copy caption" (to be completed with field values...)

* fix add button (did nothing when no doc selected at right) ; add clickable label on "copy meta" ckbox

* fix missing sb-off icons
2023-11-16 17:32:19 +01:00
jygaulier
65732343ee PHRAS-3918_subdef-substituable-setting (#4381)
* add checkbox "substituable" to admin/subdef ; bump to 4.1.8-rc7 and bump production-client ; migrate and remove conf 'registry/modules/thumb-substitution'

* bump production-client to 94

* fix test ; add test ; move "substituable" node to all subdefs (attribute)

* fix test

* fix test

* set "flatten layers"=true for new subdefs (PHRAS-3852 fix it)
2023-10-31 15:52:45 +01:00
jygaulier
179431d1b5 PHRAS-3931_phraseanet_local_id_in_api (#4400)
* add "resource_id" to record / story ; formula defined into InstanceIdAware.php

* fix tests

* fix tests

* switch to main/instance_id
2023-10-30 17:15:04 +01:00
jygaulier
7d703b690f PHRAS-3928_download_async WIP ok to test (#4386)
* WIP/POC DO NOT MERGE
use "pusher" to wait for export-by-email worker to tell client that export is done.
nb: export worker is artificially delayed by 30s !

* WIP OK TO TEST ; DO NOT MERGE

* WIP/POC DO NOT MERGE
use "pusher" to wait for export-by-email worker to tell client that export is done.
nb: export worker is artificially delayed by 30s !

* WIP OK TO TEST ; DO NOT MERGE

* cleanup

* cleanup

* better conf & cleanup

* fix typo

* fix stamp transparency (bump imagine)
fix missing cgu for one file download
better cli feedback
add (re)download link on cli

* fix test

* fix missing js feedback (when worker publish before client subscribes)

* cleanup

* fix "remove stamp" choice

* add default conf

* WIP/POC DO NOT MERGE
use "pusher" to wait for export-by-email worker to tell client that export is done.
nb: export worker is artificially delayed by 30s !

* WIP OK TO TEST ; DO NOT MERGE

* WIP/POC DO NOT MERGE
use "pusher" to wait for export-by-email worker to tell client that export is done.
nb: export worker is artificially delayed by 30s !

* WIP OK TO TEST ; DO NOT MERGE

* cleanup

* cleanup

* better conf & cleanup

* fix typo

* fix stamp transparency (bump imagine)
fix missing cgu for one file download
better cli feedback
add (re)download link on cli

* fix test

* fix missing js feedback (when worker publish before client subscribes)

* cleanup

* fix "remove stamp" choice

* add default conf

* WIP OK TO TEST generates an excel report for async download.
define some env-vars for Pusher (todo: fix entrypoint to add during install)

* fix xl formating for tabs >1
add env_vars to config build

* fix test
2023-10-30 15:08:55 +01:00
Aina Sitraka
06193f2640 PHRAS-3903 Admin - object inspector - record index debug tools (#4369)
* add admin record index tools

* add databox_id filter

* add url encode

* use options provider

* return uri along with es result

---------

Co-authored-by: jygaulier <gaulier@alchemy.fr>
2023-09-07 13:51:35 +02:00
Aina Sitraka
ec4a22527d PHRAS-3890: Admin - add "auth failure" - display and purge auth failure - only for super U (#4368)
* admin auth failure

* add check superU
2023-09-05 17:25:08 +02:00
Aina Sitraka
6ac72ec6c1 PHRAS-3848 prod - order manager - cancel an order (#4320)
* cancel order

* bump version

* some fix
2023-05-25 11:59:56 +02: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
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
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
7ce6ce0947 PHRAS-3755 admin > connected user > disconnect user (#4150) 2022-10-08 00:42:24 +02:00
Aina Sitraka
e4760b88f2 PHRAS-3694 bin/maintenance clean:users finish (#4139)
* clean users

* fix help

* add usertype

* relance user connection

* unused option

* test

* send token to connect to phraseanet

* add alpha on help

* bump rc6, add alpha , fix input to integer
Co-authored-by: jygaulier <gaulier@alchemy.fr>
2022-10-06 18:10:15 +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
ae5becc090 fix quit share (#4115) 2022-09-08 19:58:10 +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
f967588251 PHRAS-3667_refresh-one-basket WIP (#4012)
* PHRAS-3667_refresh-one-basket
- new "wip" icon
- deploying a basket refreshes icons
todo:
- refreh also when closing ?
- refresh on notification about "share ok" ?
- refresh after real-time op (e.g. share a simple basket ==> wip) ?

* PHRAS-3667 : try to move wz/basket menus (failed)

* PHRAS-3667_refresh-one-basket
- fix : stories deployed looks empty
2022-05-11 11:24:45 +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
e882021019 PHRAS-3642 api return subdefs 2022-02-24 16:07:54 +03:00
aynsix
dd337e0ecb merge master into branch 2022-02-15 12:17:49 +03:00
aynsix
10ef15964f mark all notification as read 2022-02-10 17:23:01 +03:00
aynsix
1798dfdff8 PHRAS-3595 can notify email on update 2021-12-10 11:35:29 +03:00
aynsix
a14e15972b PHRAS-3598 taking account webhook active 2021-12-06 18:00:27 +03:00
aynsix
213dcd8597 Merge branch 'master' of https://github.com/alchemy-fr/Phraseanet into PHRAS-3555-more-webhook 2021-11-22 09:43:52 +03:00
aynsix
7551273b1d add api-subdef_service config to enable/disable this endpoint 2021-11-19 10:43:40 +03:00
jygaulier
ac3aa6e1ba PHRAS-3564
fix video work location
subdefs posted
result set with sent/failed & durations
add test callback route
2021-11-17 15:16:24 +01:00
jygaulier
0553f6152c PHRAS-3564 WIP
create subdefs (on tmp) from file passed as upload or reference
route /api/v3/subdefs_service/{{base_id}}
subdef setttings comes from base_id
todo : pass settings in json ; remove base_id from route
todo : return files by upload
2021-11-17 15:16:24 +01:00
aynsix
074920353a PHRAS-3555 add more webhook events 2021-11-16 17:15:49 +03:00
jygaulier
d7d731a496 PHRAS-3519_filesystem-atomic-move
WIP
extend filesystem (no change yet)
2021-10-06 18:23:52 +02:00
jygaulier
0c58dd2af2 PHRAS-3442_optimize-list-notifications_4.1-bis
WIP
restore /session/update route to pass tests, THIS ROUTE IS UNUSED
2021-06-21 18:07:47 +02:00
jygaulier
47c0e4b1cc PHRAS-3442_optimize-list-notifications_4.1-bis
WIP
mark notif as read
fix test
2021-06-21 18:07:47 +02:00
jygaulier
f8cfd08f4f PHRAS-3442_optimize-list-notifications_4.1-bis
WIP : pushed to run all tests on circle
move "session/notifications" controller to "user/notifications"
use twig to render notifs + dropdown + dlg
fixed some tests
still todo : mark "read"
2021-06-21 18:07:47 +02:00
jygaulier
22c3b273f7 PHRAS-3442_optimize-list-notifications_4.1-bis
WIP
poll only from menubar (Aina)
back : only one method/route to fetch notifs
front : fix exponential pagination
big refacto
todo : mark read notifications (button ? click ?)
2021-06-21 18:07:46 +02:00
jygaulier
71e2ca2e57 PHRAS-3417_search-empty-fields_MASTER
add : user setting
todo : translate strings
- prod : user setting dlg  : "index::advance_search: show-unset-field-facet"
- prod : workzone/unset field facet : "prod:workzone:facetstab:unset_field_facet_label_(%s)" where %s is the name of the field
2021-04-15 19:23:03 +02:00
jygaulier
a76f64e892 [skip ci]
PHRAS-3381_tx-as-classification-plan_MASTER
back controller for ok button
fix : PHRAS-3383
WIP
2021-03-15 10:05:32 +01:00
jygaulier
92df433af0 [skip ci]
PHRAS-3381_tx-as-classification-plan_MASTER
changed ux
2021-03-15 10:05:32 +01:00
jygaulier
a9fb061a57 [skip ci]
PHRAS-3381_tx-as-classification-plan_MASTER
dlgbox
2021-03-15 10:05:32 +01:00
aina esokia
cc73d6aeb5 PHRAS-3256 update user locale when changing locale seting 2021-02-03 15:37:32 +03:00
aina esokia
f0613f033a PHRAS-3287 2021-01-20 15:53:03 +03:00
aina esokia
f5c64d2da3 Merge branch 'master' of https://github.com/alchemy-fr/Phraseanet into PHRAS-3189_Admin_expose_setting 2020-10-30 10:17:25 +03:00
jygaulier
7c01c34dfc - add timing debug, disable permalinks injection to es 2020-10-27 17:18:37 +01:00
jygaulier
d0283913de WIP / DEBUG
- add stopwatches to find slow parts.
- to test : add api-v3/searchraw ; same as "search", but returns raw es docs (shortest way). No objects, no fractal.
2020-10-21 20:07:11 +02:00
aina esokia
728511055d merge master into PHRAS-3189 2020-09-28 14:35:35 +03:00