14 Commits

Author SHA1 Message Date
f05c25853c Fix of errors: automatic and some manual 2024-11-04 19:56:03 +01:00
775535e683
refactor file drop widget 2024-05-28 11:25:59 +02:00
fca929f56f
Dav: add UI to edit document 2024-05-23 17:00:46 +02:00
3db5b62d57
Feature: [UI] use download button group in calendar list 2023-02-28 22:37:46 +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
9f5b11e6cc Feature: allow to convert to PDF from Chill and group action button on document
BREAKING CHANGE: avoid using the macro for download button. To keep the UI clean, use always the new "group of action buttons".
2023-01-31 16:30:19 +00:00
a9bc98738e fix weird bug with ts import 2022-06-27 14:51:48 +02:00
nobohan
1beae4d713 AccompanyingCourseWorkEdit: download existing documents 2022-03-14 14:42:04 +01:00
nobohan
5f71b46bb7 tentative to add asyncupload into modal 2022-02-23 17:21:35 +01:00
6501a0148e fix downloading document 2021-12-15 22:14:20 +01:00
2245f83631 generate document with relatorio: config and driver 2021-12-02 17:00:09 +01:00
a740ad29ea replace sc-button + bt- in js and php files 2021-07-08 15:56:00 +02:00
3ca5018e45 fix import of dropzone in uploader 2021-03-25 22:01:17 +01:00
eaa0ad925f fix folder name 2021-03-18 13:37:13 +01:00