c77dd011b8
Merge branch 'issue712_add_thirdparty_docgen_context' into 'master'
...
Issue712 add thirdparty docgen context
See merge request Chill-Projet/chill-bundles!540
2023-05-31 21:51:40 +00:00
80dfa092db
fixes: add tests for generation and fix some situation
2023-05-31 23:29:34 +02:00
nobohan
ef59e6dc1c
Feature: add thirdParty choice in docgen accperiodworkevaluation context - phpcs fix
2023-05-25 09:59:16 +02:00
nobohan
d0867f9aa3
Feature: add thirdParty choice in docgen person context
2023-05-25 09:52:23 +02:00
nobohan
c6658aa2f3
Feature: add thirdParty choice in docgen activityContext
2023-05-25 09:52:23 +02:00
664bf743f9
Fix: force list of activities to be a list with incremental keys
2023-05-24 15:08:59 +02:00
97b7ff2e43
Feature: takes activity into account for AccompanyingPeriodInfo
2023-04-28 11:49:34 +02:00
47d0334b9e
Merge remote-tracking branch 'origin/master' into rector/rules-up-to-php74
2023-04-27 23:32:31 +02:00
e6163b2bc3
DX: fix cs
2023-04-19 13:05:21 +02: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
d0830079da
DX: fix generation in test mode
2023-04-12 18:17:48 +02:00
2a4b73457b
DX: fix phpstan issues
2023-04-12 17:48:02 +02:00
nobohan
c9f26f3635
Feature: filter activities by user: add denormalize method
2023-03-29 22:12:59 +02:00
nobohan
6d6aa689d0
Feature: filter activities by user in docgen: use creator as user
2023-03-29 22:05:36 +02:00
nobohan
f3ede8122d
remove commented lines
2023-03-29 21:23:18 +02:00
nobohan
801853e60a
Feature: translation for docgen + php cs fix
2023-03-29 21:23:18 +02:00
nobohan
3927a7f62b
Feature: allow filtering for users in the public form for docgen acc course - php code fix
2023-03-29 21:19:53 +02:00
nobohan
1167ff25b1
Feature: allow filtering for users in the public form for docgen acc course
2023-03-29 21:19:53 +02:00
nobohan
5bba1aca93
Feature: allow filtering works in docgen for acc course by logged user - php cs fixer
2023-03-29 21:19:53 +02:00
nobohan
9ded3eb631
Feature: allow filtering works in docgen for acc course by logged user
2023-03-29 21:19:53 +02:00
nobohan
bf79e0afdb
Feature: allow filtering activities in docgen for acc course by logged user
2023-03-29 21:19:53 +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
b1d4334c0f
DX: fix phpstan issues
2023-02-28 22:07:52 +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
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
91d21ba939
Feature: [docgen][stored object] handler for request generator and required fixes
2023-02-14 23:26:00 +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
87a9d48bdf
feature: allow to not check mainPerson, person1 or person2 when generating a document
2022-07-11 13:39:07 +02:00
nobohan
cdbb70b9c5
activity: add title to generated document
2022-05-27 09:32:51 +02:00
9765bc5663
fix cs
2022-04-11 17:12:59 +02:00
bb65909bfa
add docgen context for a list of activities in a course
2022-04-11 16:52:11 +02:00
nobohan
50410d190f
replace PersonRender by PersonRenderInterface
2022-02-16 10:38:58 +01:00
fcff4bf863
fix phpcs
2022-02-01 18:01:34 +01:00
79b82e09e1
add document from activity
2022-02-01 17:58:20 +01:00
Pol Dellaiera
2e6d281bfc
cs: Autofix coding standard based on updated rules.
2022-01-25 11:46:29 +01:00
juminet
21d4e49fce
activity: doc gen
2022-01-24 13:51:14 +00:00