729 Commits

Author SHA1 Message Date
ec7f59fc03 UX [translations] batch replace 'activité' by 'échange' + check !
note: fix some others mistakes
2023-04-14 15:58:27 +02:00
83ce3b3e92 Use ⚑ char to mark roles without scopes 2023-04-14 15:28:43 +02:00
318a84e04d permissiongroup: complete translation, remove itself role in 'which implies' 2023-04-14 13:22:31 +02:00
91ba0c983d UX: improve admin > permissiongroup templates 2023-04-14 12:25:09 +02:00
a553dc9aab
UI: fix replacement Activité => échange in french translations 2023-04-12 18:18:08 +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
d04011ca07
Merge remote-tracking branch 'origin/master' into issue707_docgen_filter_activity_by_user 2023-04-12 13:49:37 +02:00
8bec6feb96
DX: fix ci and phpstan issues 2023-04-11 22:01:47 +02:00
d9dd8d7317
Merge remote-tracking branch 'origin/master' into fix-phpstan-issues-202303 2023-04-11 11:36:11 +02:00
cc69a3e86b
Fixed: [Activity] allow to set a user null
Fix https://gitlab.com/Chill-Projet/chill-bundles/-/issues/74
2023-04-06 17:29:05 +02:00
46e1891386
Fixed: fix error when displaying calendar list with invite in person context 2023-04-03 19:17:30 +02:00
380ad2e2e6
UI: replace "période" by "parcours" in french 2023-04-03 18:54:11 +02:00
ee61d131ec
UI: Replace "personne" by usager in french translation 2023-03-31 14:58:07 +02:00
70141fd0e3
UI: rename 'liste des échanges' to "échanges" in person menu 2023-03-31 14:36:55 +02:00
94a099c30c fix typo in échange gender 2023-03-31 12:29:00 +00:00
3ce6af4c36 FIX [translations] last fixes for translations créé instead of créée 2023-03-31 12:01:35 +02:00
c8e33daf4b change all translations using activité to using échange to make all chill versions coherent 2023-03-30 20:25:59 +02:00
4c5dae60a8
DX: apply rector rulesets up to PHP 73 2023-03-29 22:39:11 +02:00
b9a7530f7a
DX: apply rector rulesset up to PHP72 2023-03-29 22:32:52 +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
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
c3558beee1
Fixed: add a social issue on an activity to an accompanying period 2023-03-16 00:12:09 +01:00
44ecad2bca
Fixed: re-introduce creator in async doc generation 2023-03-15 13:38:19 +01:00
244614a691
Merge remote-tracking branch 'origin/master' into upgrade-php82 2023-03-09 18:02:33 +01:00
78858e84f2
Fixed: force a name when downloading a document without filename
see https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/1005
2023-03-09 18:01:39 +01:00
6e812b54e1
Fixed: add small button and ACL on document edit 2023-03-09 17:47:52 +01:00
83e0a50b57
Fixed: do not alter layout for bootstrap 2023-03-09 17:47:32 +01:00
3aac4d5d35
FEATURE add download button to document listing 2023-03-09 17:41:31 +01:00
23cee274a5
FEATURE [documents][listing] show document titles in activity listing if there are any and user has see_detail rights 2023-03-09 17:41:31 +01:00
f376b1af49 UX: [badges] uniformize user badges in lists, shows and dashboards 2023-03-07 16:23:41 +01:00
672418e70a
Merge branch 'master' into upgrade-php82 2023-03-06 16:37:09 +01:00
e78eb8789d
FIX [private comment] show private comment in activity listings 2023-03-06 13:39:34 +01:00
f5d17eb38c
Merge remote-tracking branch 'origin/master' into issue715_household_move_email 2023-03-06 12:20:20 +01:00
8695099819
DX: fix phstan & cs 2023-03-05 17:43:44 +01:00
b1d4334c0f
DX: fix phpstan issues 2023-02-28 22:07:52 +01:00
318599334e
Fix phpstan issues 2023-02-28 21:43:28 +01:00
7dc07129f8
Merge branch 'master' into upgrade-php82 2023-02-28 18:21:51 +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
096e2f6e40
DX: fix cs 2023-02-17 22:20:09 +01:00