da6589ba87
Add ThirdPartyHasEmail validator
...
Introduce a new validator that ensures a third party has an email address, including the corresponding translation for error messaging and unit tests to verify its functionality.
2024-10-04 13:41:19 +02:00
313fb9ffdf
PHP CS Fixer updated (3.63.1 -> v3.64.0)
2024-09-04 14:38:56 +02:00
ad47804c91
Apply rector changes to Collection typing
2024-08-27 16:23:08 +02:00
7cd36cd483
Remove minimum length assertions in ThirdParty entity
...
The code changes eliminate the minimum length assertions for 'acronym' and 'nameCompany' in the ThirdParty entity. This modification increases flexibility, accommodating acronyms and company names of any length.
2024-06-24 11:33:54 +02:00
84f515d451
Merge remote-tracking branch 'origin/master' into upgrade-sf5
2024-05-28 14:16:01 +02:00
56d173046d
fix phpstan, cs, and rector rules
2024-05-28 12:54:56 +02:00
76fdd6d889
Add explicit controller definition requirement for APIs
...
Updated API creation to require an explicit controller definition. This change has been reflected in the ChillMainExtension and ChillPersonExtension files. Also, it has introduced a new exception, the InvalidCrudConfiguration, which will be thrown when a new API or CRUD is created without this explicit controller definition.
2024-04-08 19:06:47 +02:00
5be85a4fc6
Refactored code to use PHP8 attributes instead of annotations
...
In this change, Doctrine and validation annotations have been replaced with PHP8 Attributes. The Rector tool has been configured with a list of annotations to convert to attributes. As a consequence, the PHPStan's rules have been updated to reflect these changes. The PHP8's nullable operator (?) has been added where required, and comments in field declaration have been replaced with #[Attribute] syntax.
2024-04-08 12:11:29 +02:00
0ff4593863
Apply rector rules: add annotation for doctrine mapping
2024-04-05 13:11:42 +02:00
a3f775a69b
Apply rector rules: add annotation for doctrine mapping
2024-04-05 00:19:30 +02:00
72016e1a21
Apply rector rules: add annotation for doctrine mapping
2024-04-05 00:01:30 +02:00
579bd829f8
Apply rector rules: symfony up to 54
2024-04-04 23:30:25 +02:00
d6a6cc2572
Rename chill.role
tag to chill_main.provide_role
and optimize role provider
...
The `chill.role` tag has been renamed to `chill_main.provide_role` to prevent any confusion and make the namespaces more consistent. During this process, the class RoleProvidersCompilerPass was deleted, simplifying the role provision process by injecting tagged services directly into the RoleProvider. The change is also reflected in multiple YAML service configurations and explained in the MIGRATION.md file.
2024-04-03 17:14:02 +02:00
8a2f3d3dd0
Simplify setCenters method and remove readonly property
...
The commit simplifies the setCenters method in the ThirdParty class by directly assigning the incoming centers collection to the $centers property. Additionally, the readonly keyword has been removed from the $centers property declaration, allowing its value to be modified.
2024-02-13 21:04:22 +01:00
f889d67e94
fixes after merge of master into upgrade-sf4
2024-02-12 22:31:16 +01:00
37af488f69
Merge branch 'master' into upgrade-sf5
2024-02-12 21:50:34 +01:00
9b9c2774ad
Allow Pick*Type to submit the form when selection an entity, and apply inside Event
2024-02-08 12:59:50 +01:00
f11f7498d7
Add new option "as_id" to Pick*DynamicType
...
This option will make the app return a single id of the entity in data, and not the entity json.
2024-02-08 12:54:44 +01:00
036fe8d6f8
upgrade php-cs 3.49
2024-02-07 10:43:53 +01:00
3c8e59e088
php cs fixes after updating php cs fixer
2024-01-10 10:31:25 +01:00
825cd127d1
update php-cs-fixer and rector + fix rules
2024-01-09 13:50:45 +01:00
1098bafd3d
Replaced the deprecated 'self::$container->get' with 'self::getContainer()->get' using rector
...
This change is made to comply with the new Symfony standards and to avoid deprecation warnings for future versions. The update touches various functionalities, including retrieving EntityManagerInterface instance and various service classes within the test files.
2023-12-14 23:36:56 +01:00
dc860d0c46
DX: new CS for new version of php-cs-fixer
2023-11-05 23:14:19 +01:00
54ae17a8d2
Fix label on some filters
2023-10-24 15:39:57 +02:00
5f805626f7
[export] sort filters and aggregators by title
2023-10-19 14:39:22 +02:00
a4edb34668
[export] add a filter and aggregator on accompanying period work: group/filter by handling third party
2023-10-19 10:33:55 +02:00
9ec5a633ad
Fix possible null values or not null values in some entity / string properties
2023-10-17 23:15:06 +02:00
bc2041cbdd
apply more cs rules for php-cs
2023-10-17 13:27:03 +02:00
bad302f512
Update template pathes to new syntax
2023-10-02 13:56:22 +02:00
2efd5ebc9a
Merge branch 'master' into rector/rules-symfony
2023-10-02 12:30:15 +02:00
74e25e706e
[ThirdParty] Fix display of civility in page "view"
...
https://gitlab.com/Chill-Projet/chill-bundles/-/issues/164
2023-09-28 12:12:17 +02:00
05a8dba912
update cs using php-cs-fixer 3.30
2023-09-27 16:55:01 +02:00
27c1bb03ff
update cs
2023-09-27 16:45:42 +02:00
754515f185
php cs fixes
2023-09-14 12:25:56 +02:00
d2323e91ca
new cs rule: single_line_empty_body
...
Rule is added to the last version of php-cs-fixer
2023-09-12 15:58:59 +02:00
e53540ec74
Fix test on ThirdPartyDocGenNormalizer
2023-09-12 15:18:44 +02:00
7c58880139
Remove usage of deprecated Role class
2023-08-31 17:08:18 +02:00
b85cd1b994
DX: apply rector rules for phpunit up to 90
2023-08-31 11:08:42 +02:00
1c0fd57913
Apply rector rules + fix CS
2023-08-30 14:55:26 +02:00
770d64a2f8
DX: fix loading of current professions for third parties
2023-07-28 13:21:33 +02:00
f570fe92a5
apply rector rules
2023-07-28 02:40:02 +02:00
c20f65eebb
apply rector rules: symfony **UP TO** 44
2023-07-28 01:52:53 +02:00
aa553db659
apply rector rules after updating the code with master branch
2023-07-19 23:43:26 +02:00
e45430f0c9
Merge branch 'rector/rules-up-to-php82' into rector/rules-symfony
2023-07-19 23:22:57 +02:00
023a29cb78
apply rector rules: php up to php82
2023-07-19 23:19:50 +02:00
74ed34ba97
apply rules rector
2023-07-19 22:48:26 +02:00
075aca493b
DX: type-hing oneToMany and ManyToMany properties as collection
2023-07-19 16:21:17 +02:00
224c2c74e8
Merge remote-tracking branch 'origin/master' into rector/rules-up-to-php80
...
Conflicts:
src/Bundle/ChillActivityBundle/Controller/ActivityController.php
src/Bundle/ChillActivityBundle/Export/Aggregator/ACPAggregators/DateAggregator.php
src/Bundle/ChillActivityBundle/Menu/PersonMenuBuilder.php
src/Bundle/ChillActivityBundle/Repository/ActivityACLAwareRepository.php
src/Bundle/ChillActivityBundle/Service/DocGenerator/ActivityContext.php
src/Bundle/ChillCalendarBundle/Command/MapAndSubscribeUserCalendarCommand.php
src/Bundle/ChillCalendarBundle/RemoteCalendar/Connector/MSGraph/MSGraphUserRepository.php
src/Bundle/ChillDocStoreBundle/Controller/DocumentAccompanyingCourseController.php
src/Bundle/ChillDocStoreBundle/Controller/DocumentPersonController.php
src/Bundle/ChillDocStoreBundle/Repository/PersonDocumentACLAwareRepository.php
src/Bundle/ChillEventBundle/Search/EventSearch.php
src/Bundle/ChillMainBundle/Controller/ExportController.php
src/Bundle/ChillMainBundle/Controller/PermissionsGroupController.php
src/Bundle/ChillMainBundle/Cron/CronManager.php
src/Bundle/ChillMainBundle/Entity/CronJobExecution.php
src/Bundle/ChillMainBundle/Export/ExportManager.php
src/Bundle/ChillMainBundle/Form/Type/Export/PickCenterType.php
src/Bundle/ChillMainBundle/Form/Type/Listing/FilterOrderType.php
src/Bundle/ChillMainBundle/Repository/NotificationRepository.php
src/Bundle/ChillMainBundle/Templating/Listing/FilterOrderHelper.php
src/Bundle/ChillMainBundle/Templating/Listing/FilterOrderHelperBuilder.php
src/Bundle/ChillMainBundle/Templating/Listing/FilterOrderHelperFactory.php
src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseWorkController.php
src/Bundle/ChillPersonBundle/Controller/SocialWorkSocialActionApiController.php
src/Bundle/ChillPersonBundle/Export/Aggregator/PersonAggregators/AgeAggregator.php
src/Bundle/ChillPersonBundle/Export/Export/ListAccompanyingPeriod.php
src/Bundle/ChillPersonBundle/Export/Export/ListHouseholdInPeriod.php
src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriodACLAwareRepository.php
src/Bundle/ChillPersonBundle/Security/Authorization/AccompanyingPeriodVoter.php
src/Bundle/ChillPersonBundle/Service/DocGenerator/AccompanyingPeriodContext.php
src/Bundle/ChillPersonBundle/Service/DocGenerator/AccompanyingPeriodWorkEvaluationContext.php
src/Bundle/ChillPersonBundle/Service/DocGenerator/PersonContext.php
src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadReports.php
src/Bundle/ChillTaskBundle/Controller/SingleTaskController.php
2023-07-17 12:49:13 +02:00
28c41aaf85
fix the number of parameters in the query
2023-07-13 10:32:56 +02:00
f3829d3390
adapt query to simplify join clauses (lightly improve perfs)
2023-07-12 10:50:17 +02:00