68e1384416
Remove echo with array to string conversion
2023-08-30 15:11:47 +02:00
d1e09d7047
Fix constructor signature of BaseContext (in BaseContextDataTest.php)
2023-08-28 16:09:21 +02:00
e839b03cc9
Update path to twig template with new syntax
2023-07-28 12:16:50 +02:00
f570fe92a5
apply rector rules
2023-07-28 02:40:02 +02:00
023a29cb78
apply rector rules: php up to php82
2023-07-19 23:19:50 +02:00
224c2c74e8
Merge remote-tracking branch 'origin/master' into rector/rules-up-to-php80
...
Conflicts:
src/Bundle/ChillActivityBundle/Controller/ActivityController.php
src/Bundle/ChillActivityBundle/Export/Aggregator/ACPAggregators/DateAggregator.php
src/Bundle/ChillActivityBundle/Menu/PersonMenuBuilder.php
src/Bundle/ChillActivityBundle/Repository/ActivityACLAwareRepository.php
src/Bundle/ChillActivityBundle/Service/DocGenerator/ActivityContext.php
src/Bundle/ChillCalendarBundle/Command/MapAndSubscribeUserCalendarCommand.php
src/Bundle/ChillCalendarBundle/RemoteCalendar/Connector/MSGraph/MSGraphUserRepository.php
src/Bundle/ChillDocStoreBundle/Controller/DocumentAccompanyingCourseController.php
src/Bundle/ChillDocStoreBundle/Controller/DocumentPersonController.php
src/Bundle/ChillDocStoreBundle/Repository/PersonDocumentACLAwareRepository.php
src/Bundle/ChillEventBundle/Search/EventSearch.php
src/Bundle/ChillMainBundle/Controller/ExportController.php
src/Bundle/ChillMainBundle/Controller/PermissionsGroupController.php
src/Bundle/ChillMainBundle/Cron/CronManager.php
src/Bundle/ChillMainBundle/Entity/CronJobExecution.php
src/Bundle/ChillMainBundle/Export/ExportManager.php
src/Bundle/ChillMainBundle/Form/Type/Export/PickCenterType.php
src/Bundle/ChillMainBundle/Form/Type/Listing/FilterOrderType.php
src/Bundle/ChillMainBundle/Repository/NotificationRepository.php
src/Bundle/ChillMainBundle/Templating/Listing/FilterOrderHelper.php
src/Bundle/ChillMainBundle/Templating/Listing/FilterOrderHelperBuilder.php
src/Bundle/ChillMainBundle/Templating/Listing/FilterOrderHelperFactory.php
src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseWorkController.php
src/Bundle/ChillPersonBundle/Controller/SocialWorkSocialActionApiController.php
src/Bundle/ChillPersonBundle/Export/Aggregator/PersonAggregators/AgeAggregator.php
src/Bundle/ChillPersonBundle/Export/Export/ListAccompanyingPeriod.php
src/Bundle/ChillPersonBundle/Export/Export/ListHouseholdInPeriod.php
src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriodACLAwareRepository.php
src/Bundle/ChillPersonBundle/Security/Authorization/AccompanyingPeriodVoter.php
src/Bundle/ChillPersonBundle/Service/DocGenerator/AccompanyingPeriodContext.php
src/Bundle/ChillPersonBundle/Service/DocGenerator/AccompanyingPeriodWorkEvaluationContext.php
src/Bundle/ChillPersonBundle/Service/DocGenerator/PersonContext.php
src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadReports.php
src/Bundle/ChillTaskBundle/Controller/SingleTaskController.php
2023-07-17 12:49:13 +02:00
8a684734e7
Fixed: fix docgen normalization on household with "old" members
...
When a household had old members, the indexes of each "current" members
should be numerical and contiguous, to be transformed in a list. If this
is not the case, the members are mapped to an associative array.
This commit alter the generic DocGenObjectNormalizer to ensure that
the ReadableCollection are normalized using the
CollectionDocGenNormalizer as default, which do not preserve keys.
2023-05-16 23:30:02 +02:00
dde3002100
DX: apply rector rules up to php8.0
2023-04-28 22:30:33 +02:00
47d0334b9e
Merge remote-tracking branch 'origin/master' into rector/rules-up-to-php74
2023-04-27 23:32:31 +02:00
01f2697b8d
Merge branch 'admin-permissionsgroup-templates' into 'master'
...
Improve permissionsgroup page in admin templates
See merge request Chill-Projet/chill-bundles!504
2023-04-21 15:36:00 +00:00
746ed4f5e5
DX: fix cs
2023-04-15 00:43:55 +02:00
858ade467c
DX: rector rules upt to PHP 74
2023-04-15 00:20:19 +02:00
19034ac1d8
Merge remote-tracking branch 'origin/master' into refactor-using-rector-202303
2023-04-15 00:07:09 +02:00
ec7f59fc03
UX [translations] batch replace 'activité' by 'échange' + check !
...
note: fix some others mistakes
2023-04-14 15:58:27 +02:00
0af13b028e
UX: improve admin templates
2023-04-14 13:02:36 +02:00
2a4b73457b
DX: fix phpstan issues
2023-04-12 17:48:02 +02:00
4c5dae60a8
DX: apply rector rulesets up to PHP 73
2023-03-29 22:39:11 +02:00
331443ae12
fix cs
2023-03-28 18:12:47 +02:00
97a4c39941
Merge branch 'master' into upgrade-php82
2023-03-20 12:40:58 +01:00
44ecad2bca
Fixed: re-introduce creator in async doc generation
2023-03-15 13:38:19 +01:00
672418e70a
Merge branch 'master' into upgrade-php82
2023-03-06 16:37:09 +01:00
f5d17eb38c
Merge remote-tracking branch 'origin/master' into issue715_household_move_email
2023-03-06 12:20:20 +01:00
c35ca3dbeb
DX: fix cs
2023-02-28 22:39:33 +01:00
318599334e
Fix phpstan issues
2023-02-28 21:43:28 +01:00
77c545344c
DX: adapt to php 7.4
2023-02-28 16:44:37 +01:00
a16244a3f5
Feature: [docgen] generate documents in an async queue
...
The documents are now generated in a queue, using symfony messenger. This queue should be configured:
```yaml
# app/config/messenger.yaml
framework:
messenger:
# reset services after consuming messages
# reset_on_message: true
failure_transport: failed
transports:
# https://symfony.com/doc/current/messenger.html#transport-configuration
async: '%env(MESSENGER_TRANSPORT_DSN)%'
priority:
dsn: '%env(MESSENGER_TRANSPORT_DSN)%'
failed: 'doctrine://default?queue_name=failed'
routing:
# ... other messages
'Chill\DocGeneratorBundle\Service\Messenger\RequestGenerationMessage': priority
```
`StoredObject`s now have additionnal properties:
* status (pending, failure, ready (by default) ), which explain if the document is generated;
* a generationTrialCounter, which is incremented on each generation trial, which prevent each generation more than 5 times;
The generator computation is moved from the `DocGenTemplateController` to a `Generator` (implementing `GeneratorInterface`.
There are new methods to `Context` which allow to normalize/denormalize context data to/from a messenger's `Message`.
2023-02-28 15:25:47 +00:00
f07ea3259e
php cs fixes
2023-02-22 11:54:03 +01:00
6254303392
Revert "Feature: [docgen][stored object] update model to store status, template_id and fix defaults"
...
This reverts commit 55918bcafb9b958e83696a9eaa4f6f17e90a9602.
2023-02-16 14:08:16 +01:00
9676975cd8
Revert "Feature: [docgen][stored object] handler for request generator and required fixes"
...
This reverts commit 91d21ba939e39af504888be3cced98d0b95a92bb.
2023-02-16 14:08:11 +01:00
7c4bc8f46a
Revert commits linked to decoupling of docgen (changes not reviewed)
...
This reverts commit 55a845fcd63f2fe45f0bf84da79ee75d7207db64.
2023-02-16 14:07:47 +01:00
55a845fcd6
Sanitize DocGeneratorTemplateController constructor
2023-02-14 23:34:21 +01:00
91d21ba939
Feature: [docgen][stored object] handler for request generator and required fixes
2023-02-14 23:26:00 +01:00
55918bcafb
Feature: [docgen][stored object] update model to store status, template_id and fix defaults
2023-02-14 20:57:34 +01:00
bb05ba0f17
Feature: [docgen] create a service to generate a document from a template
2023-02-14 19:35:28 +01:00
5830c3e177
Feature: [doc generation] show all the deps of the tree for debug information
2023-02-07 15:49:57 +01:00
aae1fbf7e6
Merge branch '111_exports_suite' into calendar/finalization
2022-10-24 11:10:44 +02:00
307fdfd0ba
Merge branch 'person-docgen-context-with-3party' into 'master'
...
Feature: [person][docgen] Add a title to document in person docgen
See merge request Chill-Projet/chill-bundles!461
2022-10-24 07:56:02 +00:00
e107e39ffd
Fixed: when counting doc generator template by entity, take 'active'
...
into account
2022-10-20 22:32:21 +02:00
1ec3e176fb
Merge branch 'master' into calendar/docgen-add-generation
2022-10-20 13:34:21 +02:00
83ba813160
Feature: [docgen] order document template by name in list and in admin
2022-10-19 17:56:10 +02:00
2a782044e6
DX: [docgen] add more test for docgenObjectNormalizer and AccompanyingPeriodResourceNormalizer
2022-10-19 17:11:10 +02:00
719256913c
Feature: [docgen] Add a new variable createdAtDate, which contains date
...
without date and time
This is useful when generating a letter, to fill the today's date in the
letter's header.
2022-10-19 16:07:12 +02:00
ea5f8c9d08
Feature: [docgen][person] add a new context to generate document with a
...
third party
This allow to prepare, for instance, mail (letters) to a thirdparty
about a Person
2022-10-19 14:16:59 +02:00
49731777b4
fix cs: declare type and license header mismatch
2022-10-06 20:51:44 +02:00
7e65e97caf
fix cs: header and declare strict type order
2022-10-06 10:21:16 +02:00
087375f648
Merge branch '111_exports_suite' into calendar/finalization
2022-10-06 09:31:43 +02:00
67c3f3a840
fix cs with licencse header
2022-10-05 17:08:14 +02:00
63137c67f4
fix cs
2022-10-05 16:55:13 +02:00
d8f80f3d02
wip on app2
2022-06-23 12:26:48 +02:00
nobohan
629dbb9137
admin: missing translations and css class
2022-05-11 11:30:08 +02:00