573 Commits

Author SHA1 Message Date
3e4495dd6e
Refactor AccompanyingPeriod::getNextCalendarForPerson to enhance performance 2024-06-13 18:07:19 +02:00
31b541d12f
Update AccompanyingPeriodWorkNormalizer and related classes
Updated the AccompanyingPeriodWorkNormalizer, its test, and the related entity class. Now, the normalizer includes additional checks for different formats and conditions, and cleans the context accordingly before processing. AccompanyingPeriodWorkDocGenNormalizerTest now extends from a new abstract base class. Changes are made in AccompanyingPeriodWork entity for datetime handling and serialization.
2024-06-12 11:47:13 +02:00
0bfb3de465
fix cs 2024-06-11 16:58:33 +02:00
350d991a85
Update AccompanyingPeriod normalization with UserHistory
The AccompanyingPeriod normalization now includes 'createdBy' and 'ref' fields from the UserHistory. AccompanyingPeriodDocGenNormalizer has been modified adding UserHistory retrieval and subsequently normalization. A new method was also added to the AccompanyingPeriod entity to retrieve the current UserHistory.
2024-06-11 16:33:37 +02:00
ebb856fe85
fix rendering of accompanying course commen with at_date 2024-06-07 13:06:46 +02:00
4c3f082163
Merge remote-tracking branch 'origin/master' into issue178_affichage_metiers 2024-06-07 12:03:30 +02:00
56d173046d
fix phpstan, cs, and rector rules 2024-05-28 12:54:56 +02:00
addc623add php style fixer 2024-04-16 12:01:37 +02:00
f510acd170 add back the annotation to edit accompanying period work for referrers 2024-04-16 11:55:54 +02:00
bc683b28d6 update normalizers to take into account referrerHistory logic for accompanying period work 2024-04-16 11:55:50 +02:00
853014d8d2 remove attempt to adjust accompanyingperiod work for display of user job and service at specific date 2024-04-16 11:52:58 +02:00
d62e9ce269 Implement 'at date' for display of service and user job in accompanying period work entities (for twig templates) -> vue component still to fix 2024-04-16 11:52:58 +02:00
1d636f5e9e
Fix deprecations and code style issues 2024-03-07 15:26:58 +01:00
3bb911b4d0
Update version within PUT request
Try to add api logic

check for version being the same instead of smaller

implementing optimistic locking and displaying correct message in frontend

rector fixes

adjust violation message and add translation in translation.yaml

add translator in apiController
2024-02-08 12:09:51 +01:00
f00b39980c
Add version of the social action to the state
put correct serialization groups
2024-02-08 12:08:36 +01:00
1d21499eab
add version property to accompanyingperiodwork for optimistic locking 2024-02-08 12:08:35 +01:00
4bbad4fc61
fix cs with php-cs-fixer 3.49 2024-02-07 15:38:56 +01:00
f8840d89bf
Add capability to store closing motive when closing accompanying period
The commit introduces new functionality in the bundle that allows storing the closing motive when a course is closed. This is achieved by modifying the model and database schema to include a new `closingMotive` field in AccompanyingPeriodStepHistory entity.
2024-02-07 15:35:44 +01:00
036fe8d6f8
upgrade php-cs 3.49 2024-02-07 10:43:53 +01:00
7a12602699
fix testContextGenerationDataNormalizeDenormalizeGetData
The method `Relationship::getOpposite` does not only compare the object equality, but also the object id.
2024-01-23 10:56:55 +01:00
27ce322690
upgrade php-cs-fixer to 3.47.0 2024-01-22 12:14:39 +01:00
3c8e59e088 php cs fixes after updating php cs fixer 2024-01-10 10:31:25 +01:00
b26b7a2706 Notification: avoid the comment's content to be null 2023-12-05 16:26:06 +00:00
88469dbe8e
Fix serialization of accompangying period work referrers 2023-11-14 18:34:28 +01:00
9ec5a633ad
Fix possible null values or not null values in some entity / string properties 2023-10-17 23:15:06 +02:00
bc2041cbdd
apply more cs rules for php-cs 2023-10-17 13:27:03 +02:00
a6fcdb5256
Merge remote-tracking branch 'origin/rector/rules-symfony' into rector/rules-symfony 2023-10-16 18:07:42 +02:00
6b8d6b76ba
Upgrade code from 146 to new standards 2023-10-16 18:04:40 +02:00
be8975ee04
Merge branch '146_parcours_annules' into rector/rules-symfony 2023-10-16 17:52:06 +02:00
51a4ffca2e
Fix cs with new cs rules (php-cs-fixer version 3.35) 2023-10-16 11:59:49 +02:00
978db5a5c5
update some queries in the interface to take into account history of user's scope and user's job 2023-10-16 11:52:02 +02:00
363785b779
Update schema to store accompanying period work referrer history 2023-10-11 15:37:44 +02:00
239372270e
Update schema to store accompanying period work referrer history 2023-10-05 09:33:23 +02:00
dac48ea4e0 last processing of review remarks 2023-10-04 11:19:39 +02:00
0c5b35926b php cs fixer and phpstan 2023-09-29 07:52:50 +02:00
65aa0a1588
Merge remote-tracking branch 'origin/master' into rector/rules-symfony 2023-09-27 15:25:29 +02:00
4e27d71bea
Re-associate activity exports and filters
Some filter can work on both exports and lists associated to persons and accompanyings periods. They are moved to a more common namespace.

The modifiers in list are also fixed to allow an association with these filters.
2023-09-26 17:59:04 +02:00
9b061eeaae handle children of closing motive for isCanceledAccompanyingPeriod 2023-09-18 15:16:59 +02:00
6b958d193d add property to closing motive to identify motives related to erroneous accompanying periods 2023-09-18 14:36:28 +02:00
7ca2380dad php cs fixes 2023-09-14 15:53:42 +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
94f26df81e Make test personMove work for centers 2023-09-07 16:07:23 +02:00
7c58880139
Remove usage of deprecated Role class 2023-08-31 17:08:18 +02:00
e4e52234ad
Rector: apply rules for doctrine code quality 2023-08-31 10:35:52 +02:00
e2a739eeff
Fix strong typing on some entities's methods: allow null values 2023-08-28 16:09:22 +02:00
3af065e530 WIP [centerHistory] Try to get test to work for personCenterHistory 2023-08-03 11:40:47 +02:00
f2d391ea2e
cascading remove of Person\CenterHistory 2023-08-02 23:25:19 +02:00
f570fe92a5
apply rector rules 2023-07-28 02:40:02 +02:00
0ed5544ad3
More useful error message when not enough people in database fixture 2023-07-28 01:22:58 +02:00
023a29cb78
apply rector rules: php up to php82 2023-07-19 23:19:50 +02:00