Commit Graph

63 Commits

Author SHA1 Message Date
7d62d33058 Integrate audit functionality across Person and PersonResource controllers
- Added `TriggerAuditInterface` to enable seamless audit event handling.
- Implemented audit triggers for create, update, delete, and view actions.
- Enhanced controllers to include translatable audit descriptions for better tracking of actions.
2026-02-26 14:15:03 +01:00
32c5f21438 Refactor subject conversion handling and enhance audit logging
- Replaced `Subject|array` return types with `SubjectBag` in `SubjectConverterInterface` for more robust handling.
- Updated `getSubjectsForEntity` to include an optional `$includeAssociated` parameter for finer control over associated subject resolution.
- Refactored `AuditEvent` to differentiate `mainSubject` from associated subjects, improving clarity in audit logging.
- Introduced database schema changes to add `main_subject` and `subjects` columns in the `chill_main_audit_trail` table.
- Added `SubjectBag` class for grouped subject management and implemented deduplication logic.
- Updated all converters and test cases to use the new `SubjectBag` approach, ensuring compatibility.
- Improved event dispatching in controllers to utilize the updated `AuditEvent` structure and refined metadata handling.
2026-02-13 17:07:30 +01:00
bb96b9312e Replace PrivacyEvent dispatch with AuditEvent for viewing a person.
- Updated `PersonController` to dispatch `AuditEvent` with `AUDIT_VIEW` action instead of `PrivacyEvent`.
- Added necessary `AuditEvent` and `AuditTrail` imports to the controller.
2026-01-28 16:20:01 +01:00
ea06a96f91 Add external identifiers for person, editable in edit form, with minimal features associated 2025-09-01 08:05:11 +00:00
579bd829f8 Apply rector rules: symfony up to 54 2024-04-04 23:30:25 +02:00
f889d67e94 fixes after merge of master into upgrade-sf4 2024-02-12 22:31:16 +01:00
3c8e59e088 php cs fixes after updating php cs fixer 2024-01-10 10:31:25 +01:00
bc2041cbdd apply more cs rules for php-cs 2023-10-17 13:27:03 +02:00
d2323e91ca new cs rule: single_line_empty_body
Rule is added to the last version of php-cs-fixer
2023-09-12 15:58:59 +02:00
c33330969c FIX CS 2023-08-28 12:49:31 +02:00
24cc6a816b Fix calls to templating service 2023-08-02 23:25:19 +02:00
dbccf7ff80 For integer for getting person_id in PersonController 2023-08-02 23:05:34 +02:00
009a0326d9 Configure routes using annotation 2023-08-02 23:05:33 +02:00
7f96a895e1 DX: remove unused property on PersonController 2023-07-28 13:05:29 +02:00
e839b03cc9 Update path to twig template with new syntax 2023-07-28 12:16:50 +02:00
c20f65eebb apply rector rules: symfony **UP TO** 44 2023-07-28 01:52:53 +02:00
6d63177ff4 apply rules rector up to php82 2023-05-01 21:39:45 +02:00
dde3002100 DX: apply rector rules up to php8.0 2023-04-28 22:30:33 +02:00
19034ac1d8 Merge remote-tracking branch 'origin/master' into refactor-using-rector-202303 2023-04-15 00:07:09 +02:00
841bdb0ebf fix issues from master 2023-04-11 11:43:01 +02:00
ef13833966 Fixed: [create person] handle case when the user has two differents groups in the same center
Fix https://gitlab.com/Chill-Projet/chill-bundles/-/issues/72
2023-04-11 10:16:09 +02:00
b9a7530f7a DX: apply rector rulesset up to PHP72 2023-03-29 22:32:52 +02:00
584ac05b53 DX: fix phpstan errors 2023-02-04 01:19:34 +01:00
9699e2304a fix cs: declare type and license header mismatch 2022-10-06 22:25:43 +02:00
67c3f3a840 fix cs with licencse header 2022-10-05 17:08:14 +02:00
6abbf9bf21 improves create a person with address
* validation: must have an address when 'create a form' is checked;
* minor improvements
2022-05-06 11:47:33 +02:00
64432bb08a Merge remote-tracking branch 'origin/master' into issue557_address_civility_in_form_person 2022-05-06 10:21:13 +02:00
f26d50a3a8 replace fqdn in customfields bundle 2022-04-30 00:46:48 +02:00
nobohan
3ed562e5d9 person: create a person with address and attribute the household to the create ousehold button 2022-04-21 18:23:47 +02:00
nobohan
f2c60cfd20 php code style fix 2022-04-20 08:52:15 +02:00
nobohan
4bc8da9655 person: create a person with address (php form) 2022-04-19 14:56:41 +02:00
5ff47050ff replace deprecated TranslatorInterface by new one 2022-02-17 17:20:47 +01:00
22417ee9f9 fix tests for address render 2022-02-11 15:03:54 +01:00
a9624b36f7 create person and household option added to dropdown 2022-02-11 14:17:59 +01:00
Pol Dellaiera
8401ce2656 cs: Fix code-style (using PHPCSFixer and PHPCS). 2021-12-21 10:59:23 +01:00
06cbe8325c fix person validation 2021-12-16 21:39:59 +01:00
14aab637eb start to simplify validation groups for person 2021-12-16 21:23:40 +01:00
8fb4efc16e Issue320 bug redirect create period 2021-12-12 14:12:44 +00:00
Pol Dellaiera
cd3be25c22 cs: Remove duplicated headers. 2021-11-30 13:54:58 +01:00
Pol Dellaiera
47c5855a21 cs: Switch to a stricter way of coding - this might break in a lot of places. 2021-11-30 13:33:18 +01:00
Pol Dellaiera
a9188355c5 cs: Enable more risky rules. 2021-11-30 11:37:57 +01:00
Pol Dellaiera
8f96a1121d cs: Fix code style (safe rules only). 2021-11-23 14:08:50 +01:00
9247cd3546 fix saving person 2021-11-08 15:31:19 +01:00
2db9a98bfe fix bootstrapping listener for person capitalization name 2021-10-11 14:53:04 +02:00
a27b228a6f Merge branch 'features/thirdparty-improve-acl-collection' 2021-10-11 14:31:47 +02:00
abedf83dbd fix flushing after person creation 2021-10-11 14:31:03 +02:00
af4cf55046 start of entity listener for person name capitalization 2021-10-04 19:33:12 +02:00
5b70fb2ee5 adapt UI and controller for Person without centers 2021-09-20 13:56:43 +02:00
Mathieu Jaumotte
52a0c0e95b create new person: add an action and put action buttons in a dropdown 2021-08-27 09:30:15 +02:00
647bdb2749 fix tests 2021-08-23 18:19:47 +02:00