Commit Graph

588 Commits

Author SHA1 Message Date
Aina Sitraka
1f56bfa225 PHRAS-4146 bin/setup system:install - abort app installation if mysql db is not empty (#4599)
* abort install if db table exist

* fix test

* unneeded

* highlight install message

---------

Co-authored-by: Nicolas Maillat <maillat@alchemy.fr>
2025-03-29 12:03:19 +01:00
jygaulier
0df5d004ae PHRAS-4140 sb-filter-for-expiringrights (#4594)
* add 'status' filter (for "owners" job)

```json
// type
'target' => 'owners',
// filters
'databox' => 'db_databox1',
'status' => '00xxxx',
'collection' => ['test', 'boo'],
'expire_field' => 'ExpireDate',
'prior_notice' => -30,
// action
'set_status' => '01xxxx',
'alerts' => [
   [
      'method' => 'webhook',
      'recipient' => [
         'bob@a.fr',
         'joe@b.com',
      ],
   ],
],

```

* add 'set_collection' action (for "owners" job)
acts on records using api, not sql

* add negated clause on 'set_collection'
2025-03-17 10:46:59 +01:00
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
jygaulier
1979ad0f79 PHRAS-4078_ExpiringRight-to-core (#4526)
* wip do not merge

* fix event EXPORT_CREATE for basket download

* fix bad conf (not a worker)

* fix bad table name
2024-07-17 17:11:55 +02:00
Aina Sitraka
82d6f78f88 download report by field (#4525) 2024-06-18 09:16:13 +02:00
Aina Sitraka
b8786852e0 PHRAS-4067: admin - dashboard - 500 error (#4513)
* fix error 500 on dashboard : remove unused swiftools requirement

* unused

* patch on 4.1.8
2024-06-10 18:18:34 +02:00
jygaulier
45e8f29fc9 add : allow to set multiple --source, the first not-empty meta is copied to destination (#4516) 2024-06-06 15:19:01 +02:00
Aina Sitraka
c041910692 PHRAS-4012 : bin/console records:writemetadatas (#4463)
* command records:writemetadatas
2024-01-26 19:01:15 +01:00
Aina Sitraka
71ef4bf1dd PHRAS-4011 : Moving cmd from console to setup - system:clear-cache system:clear-session (#4460)
* cmd clear cache in bin/setup

* Change maintenance state wording
2024-01-22 10:34:13 +01:00
Aina Sitraka
7768ebfb4b PHRAS-3722 : bin/console records:build-subdef (#4450)
* fix

* PHRAS-4001

* - allow to prune without building
- require --confirm to prune and build in the same time

---------
Co-authored-by: jygaulier <gaulier@alchemy.fr>
2023-12-29 15:55:31 +01:00
Aina Sitraka
39ef540c15 PHRAS-3394 fix wrong date for delting account (#4446) 2023-12-22 15:34:03 +01:00
Aina Sitraka
7d72143ff2 PHRAS-3979: fix bin/maintenance cleaner (#4443)
* fix cleaner memory leak
2023-12-18 19:45:17 +01:00
jygaulier
8494d3fd52 fix: same record on many expired feedbacks - not yet reported - is reported from the latest expiring feedback
change: --min_date applies on creation of the basket (not expiration)
add: name of the basket on output
2023-12-14 20:57:18 +01:00
jygaulier
5c6317d44b ignore non voters ; add --min_date option ; add databoxes filter 2023-12-13 18:05:07 +01:00
Aina Sitraka
fa8377e411 PHRAS-3967: Translator - Move translator configuration in config/configuration.yml (#4428)
* move translator configuration

* some catch
2023-12-04 15:42:30 +01:00
jygaulier
69f3b30ee5 PHRAS-3768_feedback-report-per-record (#4421)
* add command feedback:report ; bump back to 4.1.8-rc9
WIP OK TO TEST

* aadd dry, log, ... ; move conf ; bump back to 4.1.8-rc8
WIP OK TO TEST

* add command feedback:report ; bump back to 4.1.8-rc9
WIP OK TO TEST

* aadd dry, log, ... ; move conf ; bump back to 4.1.8-rc8
WIP OK TO TEST

* add default (disabled) conf in conf.d

* Update Version.php

bump version made in #4426
2023-11-30 17:26:14 +01:00
Aina Sitraka
7bfd9569d8 PHRAS-2069 rescan file metadata command (#4420) 2023-11-29 14:09:43 +01:00
Aina Sitraka
b3f2076c77 fic clean user never connected (#4412) 2023-11-17 15:23:48 +01:00
jygaulier
e2b76cc81f PHRAS-3940 translator-group-jobs (#4409)
* declare actions (work on fields) inside job (work on records)

* fix invalid sql

* fix invalid sql ; add sample
2023-11-16 16:16:14 +01:00
Aina Sitraka
be9a6b3ed3 PHRAS-3894 : bin/maintenance clean: - Removing BETA prefix and Memory leak (#4391)
* remove beta

* prefix beta in description
2023-10-10 20:43:30 +02:00
jygaulier
78a36aec21 fix crash when nothing to do on a record 2023-09-27 13:18:34 +02:00
Aina Sitraka
59a60ba8ac PHRAS-3796 bin/setup check:system - download , lazaret, wrong repo is checked (#4349)
* fix directory check

* fix test

* PHRAS-3882 change filter order
2023-07-26 20:48:06 +02:00
Aina Sitraka
a175907684 PHRAS-3860 bin/console user:edit (#4328)
* user edit command

* edit lastname, firstname, company

* fix
2023-07-03 21:19:09 +02:00
jygaulier
743070a92c mark as beta ; add --report ; display json with -vv 2023-05-17 15:25:26 +02:00
jygaulier
a4210fe26c add debug of actions (setMetadatasByActions) with -vvv 2023-05-15 10:22:56 +02:00
jygaulier
ecb6baaa89 remove debug & restore write 2023-05-15 10:16:44 +02:00
jygaulier
a9b7c77b6e add doc ; handle source = destination 2023-05-11 20:21:33 +02:00
jygaulier
77c5521243 apply actions (translations, coll, sb) ; enhance setMetadatasByActions():"add" action to act on mono-fields 2023-05-11 20:17:40 +02:00
jygaulier
36c273327b WIP ; todo: use record_edit (setMetadatasByActions ?) to persist changes 2023-05-11 20:17:40 +02:00
jygaulier
17ee2c4561 WIP ; translate but not write in db 2023-05-11 20:17:40 +02:00
Aina Sitraka
614b60a494 PHRAS-3833 Report - export databox action - refacto download (#4295)
* databox content action

* rename file

* unused

* resolve user name, add record type

* add column email

* resolve user name, and add column email in report connections

* resolve user

* gui redirection if not connected

* add column record_type and story_element
2023-04-18 13:29:29 +02:00
Aina Sitraka
bbd6a240e5 PHRAS-3823 : add permalink in report GUI (#4291) 2023-04-06 14:10:00 +02:00
Aina Sitraka
2a271f458e PHRAS-3823 add column permalink and option in report command (#4288) 2023-03-30 12:15:45 +02:00
Aina Sitraka
48df294616 PHRAS-3823 report databox content (#4286)
* report databox content

* add column created_on
2023-03-24 16:24:27 +01:00
Aina Sitraka
c5ab61d356 PHRAS-3823 downloads report command (#4279)
* downloads report

* add command download report
2023-03-17 19:57:53 +01:00
Aina Sitraka
714a69f82f add tiret in subject mail (#4271) 2023-03-14 13:54:11 +01:00
Aina Sitraka
58985edf62 some fix (#4269)
PHRAS-3823:  "report" color in  email, email subject, and files naming
2023-03-13 19:03:17 +01:00
Aina Sitraka
e7b280a70c PHRAS-3823 Report - command line report generator (#4265)
* command report connections

* some report

* prefix beta

* Update .dockerignore

* some fix, add range option

---------

Co-authored-by: Nicolas Maillat <maillat@alchemy.fr>
2023-03-11 16:40:27 +01:00
Aina Sitraka
d5be724ec2 PHRAS-3813 bin/maintenance clean databox's log_docs (#4262)
* clean log_docs

* clean log_search and log_view
2023-03-09 11:43:10 +01:00
Aina Sitraka
b880411783 PHRAS-3819 clean webhook log (#4264)
* clean webhookevent

* prefix beta
2023-03-09 10:16:26 +01:00
Aina Sitraka
d392412678 PHRAS-3694 not send confirmation email if max relance 0 (#4259)
* not send confirmation email if max relance = 0

* Update CleanUsersCommand.php
2023-02-25 20:55:21 +01:00
Aina Sitraka
62a0d26a6f fix max relance = 0 (#4248)
Co-authored-by: Nicolas Maillat <maillat@alchemy.fr>
2023-02-16 19:36:36 +01:00
Aina Sitraka
0339fa1b78 PHRAS-3798 bin/setup - system:config set - return sensitive credential on stdout (#4247)
* system:config use quiet option

* remove -q from some properties

* remove debug auto-install.sh
2023-02-16 15:57:36 +01:00
Aina Sitraka
2d6c8a3651 PHRAS-3694 clean:user some fix (#4221)
* some fix

* generate translation

* mail:test string
2023-01-20 17:53:38 +01:00
Aina Sitraka
170125b9bb PHRAS-3694 notif by email on delete inactif account, admin filter (#4216) 2023-01-19 14:03:28 +01:00
Aina Sitraka
8fbe994856 PHRAS-3694 fix clean user (#4214) 2023-01-18 11:15:46 +01:00
Aina Sitraka
5e3bf7885a some command cleaner (#4186) 2023-01-13 23:09:30 +01:00
Aina Sitraka
bc01476ea2 PHRAS-3772 bin/setup system:config add option (#4164)
* add option no compile -s for bin/setup system:config

* check db connection on bin/console

* add -s on  migration script
2022-11-01 16:20:52 +01:00
Aina Sitraka
442779c6bf PHRAS-3772 catch exception on redis connection, don't parse a file (#4163) 2022-10-26 00:01:58 +02:00
Aina Sitraka
19b4f6d06b task and scheduler log (#4158) 2022-10-25 22:22:26 +02:00