a56370d851
DX: fix phpstan issues with more strict type hinting in AuthorizationHelperInterface
2023-07-04 17:02:36 +02:00
5cbdea29e9
Merge remote-tracking branch 'origin/master' into 103-document-page
2023-06-13 15:14:17 +02:00
909d2dfb60
layout for rendering list
2023-06-13 15:00:16 +02:00
9c109d2efd
DX: use array spred instead of array_merge
2023-05-31 23:47:02 +02:00
80dfa092db
fixes: add tests for generation and fix some situation
2023-05-31 23:29:34 +02:00
cb718a80de
Add accompanying period work evaluation documents to the list of documents for person
2023-05-31 12:23:34 +02:00
eb107f5a15
add filter for generic doc + fix issues in filter
2023-05-30 12:46:05 +02:00
08874d734e
[generic doc] add doc provider and renderer for evaluation document
2023-05-26 21:58:52 +02:00
nobohan
1b0569c974
Feature: add thirdParty choice in docgen context - use array_values
2023-05-25 13:58:46 +02:00
nobohan
ad1b28ff11
Feature: add thirdParty choice in docgen accperiodworkevaluation context - phpcs fix again
2023-05-25 10:15:22 +02:00
nobohan
6232dabae5
Feature: add thirdParty choice in docgen accperiodworkevaluation context - phpstan
2023-05-25 10:10:52 +02:00
nobohan
ef59e6dc1c
Feature: add thirdParty choice in docgen accperiodworkevaluation context - phpcs fix
2023-05-25 09:59:16 +02:00
nobohan
303666b30d
Feature: add thirdParty choice in docgen accperiodworkevaluation context - clean code
2023-05-25 09:52:23 +02:00
nobohan
d0867f9aa3
Feature: add thirdParty choice in docgen person context
2023-05-25 09:52:23 +02:00
nobohan
db33fab097
Feature: add thirdParty choice in docgen accperiodworkevaluation context (WIP)
2023-05-25 09:52:23 +02:00
nobohan
91a19b9e99
Feature: add thirdParty choice in docgen accperiod context
2023-05-25 09:52:23 +02:00
ea4294d12d
add start date's accompanying period in accompanyingperiod info
2023-04-28 11:49:36 +02:00
f3e0302f3f
Feature: takes document and evaluation update into account for AccompanyingPeriodInfo
2023-04-28 11:49:34 +02:00
4974995ea2
Feature: add evaluation info to accompangyin preiod info
2023-04-28 11:49:34 +02:00
f2e1c73f37
Build parts to track info on accompanying period
2023-04-28 11:49:33 +02:00
47d0334b9e
Merge remote-tracking branch 'origin/master' into rector/rules-up-to-php74
2023-04-27 23:32:31 +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
d759b9c727
Fixed: [import social work metadata] make association from parent/child SocialIssue and SocialAction on the owning side
2023-04-14 13:14:41 +02:00
b9a7530f7a
DX: apply rector rulesset up to PHP72
2023-03-29 22:32:52 +02:00
48772efd54
DX: fix phpstan issues
2023-03-28 22:32:08 +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
318599334e
Fix phpstan issues
2023-02-28 21:43:28 +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
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
31f048b8e8
Feature: [person][docgen] Add a title to document in person docgen
...
context
2022-10-19 14:12:47 +02:00
a8a206557b
Fixed: add scope to generated document ref #11
2022-10-10 14:25:07 +02:00
7df203633d
add scope to docs if required
2022-10-10 14:25:07 +02:00
69704e5211
Fixed: usage of owner side / inversed side on SocialAction / Evaluation
...
In a ManyToMany relationship, doctrine does take care only of the owning
side of a relationship to inspect changes.
([see
documentation](https://www.doctrine-project.org/projects/doctrine-orm/en/current/reference/unitofwork-associations.html#important-concepts ))
This commit mark as "internal" the methods add/removeSocialAction on the
inversed side (`Evaluation`) and let the methods add/removeEvaluation
on the owning side (`SocialAction`) update the inversed side.
The usage is also adapted into SocialWorkMetadata's importer.
2022-10-10 13:59:59 +02:00
49731777b4
fix cs: declare type and license header mismatch
2022-10-06 20:51:44 +02:00
63137c67f4
fix cs
2022-10-05 16:55:13 +02:00
9680f7c01e
remove deprecated notation for getting entity
2022-05-27 16:34:30 +02:00
770010ceb8
Add command to remove old draft accompanying periods
2022-04-29 15:51:54 +02:00
7fbb3dfd07
docgen: add more persons choices in person1, person2 and mainPerson
...
Allow to pick amongst:
* requestor (if person)
* resources of course (if person)
* resources of person (if person)
2022-04-11 17:43:31 +02:00
84f9fdba28
add budget to docgen
2022-03-24 18:22:49 +01:00
af3b761208
evaluationWorkDocument: fill title with document is generated
2022-03-08 14:41:25 +01:00
nobohan
4406016f82
code fix for PersonContext
2022-03-03 10:17:16 +01:00
nobohan
88e9a96e0e
Person document generation: clean build Admin form + add household and relations groups
2022-03-01 15:51:34 +01:00
nobohan
7aefa5014c
Add docgen:read group on Person + 2 fields in PersonContext admin form
2022-03-01 15:17:17 +01:00
nobohan
d163783ed3
Person Document: add a PersonContext class
2022-03-01 15:17:17 +01:00
nobohan
50410d190f
replace PersonRender by PersonRenderInterface
2022-02-16 10:38:58 +01:00
6402962990
customize the 'none' into something more user-frieldly
2022-02-14 14:36:37 +01:00