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
nobohan
cb1bbe940f
admin: docgen admin
2022-05-10 13:55:33 +02:00
12231912d6
remove dead code
2022-04-26 20:27:24 +02:00
faf1559770
Merge branch 'master' into feat/add-document-encrypter-service
2022-04-26 14:52:13 +02:00
505384c2a0
fix generation of document
2022-04-26 14:11:59 +02:00
81689e3507
fix catching response 400 in relatorio driver
2022-04-26 14:11:04 +02:00
e72a2004d7
Merge remote-tracking branch 'origin/master' into feat/add-document-encrypter-service
2022-04-26 09:37:30 +02:00
b423821ae9
check existence of form before using it
2022-03-25 13:10:40 +01:00
531f940b65
add a debug feature in docgenerator template controller
2022-03-24 18:22:36 +01:00
Pol Dellaiera
35d723e5fb
refactor: Use StoredObjectManager
.
2022-03-15 13:45:07 +01:00
Pol Dellaiera
8abed67e1c
refactor: Return a string instead of a resource.
2022-03-15 09:40:32 +01:00
Pol Dellaiera
b8992b8eeb
misc: Update interface doc.
2022-03-15 09:40:32 +01:00
Pol Dellaiera
325ab0daf3
chore: Update composer.json
files.
2022-03-15 09:40:32 +01:00
3df2335cf4
Merge remote-tracking branch 'origin/master' into issue464_document_on_person
2022-03-03 14:42:06 +01:00
nobohan
4406016f82
code fix for PersonContext
2022-03-03 10:17:16 +01:00