Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare release merge v2 dev #10

Merged
merged 53 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
20e0309
Process Bundle Ui v2 initial commit
clever-age-gtonon Oct 5, 2023
56b0e8d
Add dependency to symfony/runtime
clever-age-gtonon Oct 6, 2023
d7bb55b
Add migration for mysql, postresql & sqlite
clever-age-gtonon Oct 6, 2023
0b945b9
Lint twig templates
clever-age-gtonon Oct 9, 2023
4b22326
Bump actions/checkout from 3 to 4
dependabot[bot] Oct 23, 2023
9db1f59
[Update symfony & easy admin]
clever-age-gtonon Dec 13, 2023
6c005f5
Merge branch 'v2-dev' of github.com:cleverage/processuibundle into v2…
clever-age-gtonon Dec 13, 2023
0adf9a7
[Fix] When multiple messages in queue log filename must be reset befo…
clever-age-gtonon Mar 18, 2024
a42bb49
Add context when run process async
clever-age-gtonon Mar 18, 2024
f2f771a
Update ProcessExecutionStatus.php
xaviermarchegay Jul 23, 2024
7594fda
Update ProcessExecutionStatus.php
xaviermarchegay Jul 23, 2024
6c2bf37
Only display public process (list, execution & logs)
clever-age-gtonon Jul 30, 2024
c3ba778
Add scheduler configuration from UI
clever-age-gtonon Jul 31, 2024
3a768a8
[Feature] Http post request process launcher
clever-age-gtonon Aug 1, 2024
458e6d9
Launch process form to set input && context
clever-age-gtonon Aug 1, 2024
0c6fb77
Fix error on Logs filter
clever-age-gtonon Aug 1, 2024
07d2f26
Add custom filter for log crud on process code or id
clever-age-gtonon Aug 1, 2024
cf86b78
[Fix] Migration for sqlite platform
clever-age-gtonon Aug 26, 2024
1008137
[Fix] Context from form
clever-age-gtonon Aug 28, 2024
992aa1d
[Feature] Add default values && constraints over the execute page
clever-age-gtonon Aug 29, 2024
7dbdb51
[FIX] Error on _em for ProcessExecutionRepository
clever-age-gtonon Sep 3, 2024
b4209ae
Add message to log crud filters
clever-age-gtonon Sep 6, 2024
e116c6c
Fix log handler (log in same file for subprocess) && messenger
clever-age-gtonon Sep 12, 2024
df0e1f7
Remove custom index query builder
clever-age-gtonon Sep 18, 2024
1f37a57
Fix scheduler on first migration run
clever-age-gtonon Sep 18, 2024
15c7b42
Add context to filter on log crud
clever-age-gtonon Sep 24, 2024
aca79fc
Add timezone to user
clever-age-gtonon Oct 7, 2024
252e3ff
Add context to process execution
clever-age-gtonon Oct 7, 2024
374e630
Delete comment on last migration
clever-age-gtonon Oct 8, 2024
c3e6378
Add locale managment to user
clever-age-gtonon Oct 9, 2024
6734e40
PHPCS Fix
clever-age-gtonon Oct 9, 2024
2080fe5
Fix locale set on logout user
clever-age-gtonon Oct 9, 2024
c567e7b
Use default monolog config for process and doctrine handlers
clever-age-gtonon Oct 9, 2024
38d80eb
Fix on scheduler to set context
clever-age-gtonon Oct 16, 2024
d9b127c
Stop workers on scheduler updates
clever-age-gtonon Oct 16, 2024
1ecdfa8
FIX - Process filter on log page
clever-age-gtonon Oct 23, 2024
b0d8999
Fix roles error
clever-age-gtonon Oct 23, 2024
a3d2587
Increase the length of the message of the LogRecord
Oct 24, 2024
ec7a594
Remove deprecated github actions
njoubert-cleverage Nov 19, 2024
6aaf59a
Fix composer.json & remove sqlite support from DoctrineMigrations
njoubert-cleverage Nov 19, 2024
0db2009
Merge branch 'v2-dev' into prepare-release-merge-v2-dev
njoubert-cleverage Nov 19, 2024
4bdacb2
composer require symfony/scheduler && remove ext-pcntl
njoubert-cleverage Nov 19, 2024
a3303c2
Apply quality rules
njoubert-cleverage Nov 19, 2024
419b3d8
Fix manager & controller services definition
njoubert-cleverage Nov 19, 2024
d39754c
Fix command services definition
njoubert-cleverage Nov 19, 2024
4cedf5e
Fix event_subscriber & monolog_handler services definition
njoubert-cleverage Nov 20, 2024
9f9958e
Add http_value_resolver services definition
njoubert-cleverage Nov 20, 2024
96e706d
Fix message & repository services definition
njoubert-cleverage Nov 20, 2024
4142a57
Fix security services definition
njoubert-cleverage Nov 20, 2024
f0e5220
Add scheduler, twig & validator services definition
njoubert-cleverage Nov 20, 2024
496759b
Fix DependencyInjection using service name instead of class FQCN & re…
njoubert-cleverage Nov 20, 2024
3fc81ee
Fix controller $context definition using AdminContextFactory
njoubert-cleverage Nov 20, 2024
8a9eaec
Fix documentation
njoubert-cleverage Nov 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 6 additions & 21 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
"type": "symfony-bundle",
"license": "MIT",
"authors": [
{
"name": "Baudouin Douliery",
"email": "[email protected]",
"role": "Developer"
},
{
"name": "Grégory Tonon",
"email": "[email protected]",
Expand All @@ -41,7 +36,7 @@
}
},
"require": {
"php": ">=8.1",
"php": ">=8.2",
"ext-ctype": "*",
"ext-iconv": "*",
"cleverage/process-bundle": "dev-prepare-release",
Expand All @@ -50,24 +45,14 @@
"doctrine/doctrine-bundle": "^2.5",
"doctrine/doctrine-migrations-bundle": "^3.2",
"doctrine/orm": "^2.9 || ^3.0",
"easycorp/easyadmin-bundle": "^4.0",
"league/flysystem": "^3.0",
"easycorp/easyadmin-bundle": "^4.8",
"symfony/doctrine-messenger": "^6.4|^7.1",
"symfony/filesystem": "^6.4|^7.1",
"symfony/form": "^6.4|^7.1",
"symfony/framework-bundle": "^6.4|^7.1",
"symfony/dotenv": "^6.4|^7.1",
"symfony/messenger": "^6.4|^7.1",
"symfony/mime": "^6.4|^7.1",
"symfony/runtime": "^6.4|^7.1",
"symfony/security-bundle": "^6.4|^7.1",
"symfony/stopwatch": "^6.4|^7.1",
"symfony/twig-bundle": "^6.4|^7.1",
"symfony/validator": "^6.4|^7.1",
"symfony/webpack-encore-bundle": "^1.13|^2.0",
"symfony/yaml": "^6.4|^7.1",
"syonix/monolog-parser": "dev-master",
"twig/extra-bundle": "^3.8",
"twig/intl-extra": "^3.8"
"symfony/scheduler": "^6.4|^7.1",
"symfony/string": "^6.4|^7.1",
"symfony/uid": "^6.4|^7.1"
},
"require-dev": {
"doctrine/doctrine-fixtures-bundle": "^3.4",
Expand Down
4 changes: 0 additions & 4 deletions config/routes.yaml

This file was deleted.

9 changes: 0 additions & 9 deletions config/services/command.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
services:
cleverage_ui_process.command.purge_process_execution:
class: CleverAge\ProcessUiBundle\Command\PurgeProcessExecution
public: false
tags:
- { name: console.command }
arguments:
- '@cleverage_ui_process.repository.process_execution'
- '%process_logs_dir%'

cleverage_ui_process.command.user_create:
class: CleverAge\ProcessUiBundle\Command\UserCreateCommand
public: false
Expand Down
9 changes: 7 additions & 2 deletions config/services/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ services:
autowire: true
autoconfigure: true
bind:
$processLogDir: '%process_logs_dir%'
$indexLogs: '%clever_age_process_ui.index_logs.enabled%'
$processConfigurationsManager: '@cleverage_ui_process.manager.process_configuration'
$localeSwitcher: '@translation.locale_switcher'
$request: '@request_stack'
$messageBus: '@messenger.default_bus'
$uploadDirectory: '%upload_directory%'
$context: '@EasyCorp\Bundle\EasyAdminBundle\Factory\AdminContextFactory'
$logDirectory: '%kernel.logs_dir%'
tags:
- { name: 'controller.service_arguments' }
18 changes: 3 additions & 15 deletions config/services/event_subscriber.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,6 @@ services:
tags:
- { name: 'kernel.event_subscriber' }
arguments:
- '@doctrine.orm.entity_manager'
- '@cleverage_ui_process.repository.process'
- '@cleverage_ui_process.monolog_handler.process_log'
- '@messenger.default_bus'
- '@cleverage_ui_process.manager.configuration'
- '%process_logs_dir%'
- '%clever_age_process_ui.index_logs.enabled%'

cleverage_ui_process.event_subscriber.crud.process:
class: CleverAge\ProcessUiBundle\EventSubscriber\Crud\ProcessCrudListener
public: false
tags:
- { name: 'kernel.event_subscriber' }
arguments:
- '@cleverage_ui_process.repository.process'
- '@cleverage_ui_process.monolog_handler.process'
- '@cleverage_ui_process.monolog_handler.doctrine_process'
- '@cleverage_ui_process.manager.process_execution'
12 changes: 12 additions & 0 deletions config/services/http_value_resolver.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
services:
cleverage_ui_process.http_value_resolver.http_process_execute:
class: CleverAge\ProcessUiBundle\Http\ValueResolver\HttpProcessExecuteValueResolver
public: false
arguments:
- '%upload_directory%'

cleverage_ui_process.http_value_resolver.process_configuration:
class: CleverAge\ProcessUiBundle\Http\ValueResolver\ProcessConfigurationValueResolver
public: false
arguments:
- '@cleverage_process.registry.process_configuration'
13 changes: 8 additions & 5 deletions config/services/manager.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
services:
cleverage_ui_process.manager.configuration:
class: CleverAge\ProcessUiBundle\Manager\ProcessUiConfigurationManager
cleverage_ui_process.manager.process_execution:
class: CleverAge\ProcessUiBundle\Manager\ProcessExecutionManager
public: false
arguments:
- '@cleverage_process.registry.process_configuration'
- '@cleverage_ui_process.repository.process_execution'

CleverAge\ProcessUiBundle\Manager\ProcessUiConfigurationManager:
alias: 'cleverage_ui_process.manager.configuration'
cleverage_ui_process.manager.process_configuration:
class: CleverAge\ProcessUiBundle\Manager\ProcessConfigurationsManager
public: false
arguments:
- '@cleverage_process.registry.process_configuration'
13 changes: 7 additions & 6 deletions config/services/message.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
services:
cleverage_ui_process.message.log_indexer_handler:
class: CleverAge\ProcessUiBundle\Message\LogIndexerHandler
cleverage_ui_process.message.cron_process_message_handler:
class: CleverAge\ProcessUiBundle\Message\CronProcessMessageHandler
public: false
arguments:
- '@doctrine'
- '@messenger.default_bus'

cleverage_ui_process.message.process_run_handler:
class: CleverAge\ProcessUiBundle\Message\ProcessRunHandler
cleverage_ui_process.message.process_execute_handler:
class: CleverAge\ProcessUiBundle\Message\ProcessExecuteHandler
public: false
arguments:
- '@cleverage_process.command.execute_process'
- '@cleverage_process.manager.process'
- '@cleverage_ui_process.monolog_handler.process'

14 changes: 11 additions & 3 deletions config/services/monolog_handler.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
services:
cleverage_ui_process.monolog_handler.process_log:
class: CleverAge\ProcessUiBundle\Monolog\Handler\ProcessLogHandler
cleverage_ui_process.monolog_handler.doctrine_process:
class: CleverAge\ProcessUiBundle\Monolog\Handler\DoctrineProcessHandler
public: false
calls:
- [ setEntityManager, [ '@doctrine.orm.entity_manager' ] ]
- [ setProcessExecutionManager, [ '@cleverage_ui_process.manager.process_execution' ] ]

cleverage_ui_process.monolog_handler.process:
class: CleverAge\ProcessUiBundle\Monolog\Handler\ProcessHandler
public: false
arguments:
- '%process_logs_dir%'
- '%kernel.logs_dir%'
- '@cleverage_ui_process.manager.process_execution'

2 changes: 1 addition & 1 deletion config/services/parameters.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
parameters:
process_logs_dir: '%kernel.logs_dir%/process'
upload_directory: '%kernel.project_dir%/var/storage/uploads'
12 changes: 2 additions & 10 deletions config/services/repository.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,8 @@ services:
arguments:
- '@doctrine.orm.entity_manager'

cleverage_ui_process.repository.process:
class: CleverAge\ProcessUiBundle\Repository\ProcessRepository
public: false
arguments:
- '@doctrine.orm.entity_manager'
- '@cleverage_ui_process.manager.configuration'
- '@cleverage_process.registry.process_configuration'

cleverage_ui_process.repository.user:
class: CleverAge\ProcessUiBundle\Repository\UserRepository
cleverage_ui_process.repository.process_schedule:
class: CleverAge\ProcessUiBundle\Repository\ProcessScheduleRepository
public: false
arguments:
- '@doctrine.orm.entity_manager'
Expand Down
8 changes: 8 additions & 0 deletions config/services/scheduler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
services:
cleverage_ui_process.scheduler.cron:
class: CleverAge\ProcessUiBundle\Scheduler\CronScheduler
public: false
arguments:
- '@cleverage_ui_process.repository.process_schedule'
- '@validator'
- '@logger'
6 changes: 3 additions & 3 deletions config/services/security.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:
cleverage_ui_process.security.login_form_auth_authenticator:
class: CleverAge\ProcessUiBundle\Security\LoginFormAuthAuthenticator
cleverage_ui_process.security.http_process_execution_authenticator:
class: CleverAge\ProcessUiBundle\Security\HttpProcessExecutionAuthenticator
public: false
arguments:
- '@router'
- '@doctrine.orm.entity_manager'

25 changes: 25 additions & 0 deletions config/services/twig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
services:
cleverage_ui_process.twig.log_level_extension:
class: CleverAge\ProcessUiBundle\Twig\Extension\LogLevelExtension
public: false
tags:
- { name: 'twig.extension' }

cleverage_ui_process.twig.md5_extension:
class: CleverAge\ProcessUiBundle\Twig\Extension\MD5Extension
public: false
tags:
- { name: 'twig.extension' }

cleverage_ui_process.twig.process_execution_extension:
class: CleverAge\ProcessUiBundle\Twig\Extension\ProcessExecutionExtension
public: false
tags:
- { name: 'twig.extension' }

cleverage_ui_process.twig.process_execution_extension_runtime:
class: CleverAge\ProcessUiBundle\Twig\Runtime\ProcessExecutionExtensionRuntime
public: false
arguments:
- '@cleverage_ui_process.repository.process_execution'
- '@cleverage_ui_process.manager.process_configuration'
21 changes: 21 additions & 0 deletions config/services/validator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
services:
cleverage_ui_process.validator.cron_expression_validator:
class: CleverAge\ProcessUiBundle\Validator\CronExpressionValidator
public: false
tags:
- { name: 'validator.constraint_validator' }

cleverage_ui_process.validator.every_expression_validator:
class: CleverAge\ProcessUiBundle\Validator\EveryExpressionValidator
public: false
tags:
- { name: 'validator.constraint_validator' }

cleverage_ui_process.validator.is_valid_process_code:
class: CleverAge\ProcessUiBundle\Validator\IsValidProcessCodeValidator
public: false
tags:
- { name: 'validator.constraint_validator' }
arguments:
- '@cleverage_process.registry.process_configuration'

Loading