183 Commits

Author SHA1 Message Date
d3b68f8f8f
AuthorizationHelper: compare center and scope based on id, not on equality
For an unknown reason, in some circumstances, the use of the `===` comparator does not work when comparing Center instances and Scope instances. Then, we compare them based on the id.
2023-09-13 10:08:44 +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
9375d50112
Merge remote-tracking branch 'origin/master' into rector/rules-symfony
# Conflicts:
#	src/Bundle/ChillAsideActivityBundle/src/Entity/AsideActivity.php
#	src/Bundle/ChillAsideActivityBundle/src/Export/Export/ListAsideActivity.php
2023-09-12 15:21:15 +02:00
75bca46b98
cs fixer 2023-09-07 12:16:47 +02:00
7b28bb7561
Improve NotificationMailerTest by adding an assertion
This assertion is performed by Prophecy's shouldBeCalled* method.
2023-09-07 11:30:04 +02:00
34ee2b3ba5
Fix new CS 2023-09-06 16:18:28 +02:00
53cc43f8d3
NotificationMailer: add tests when user does not have any email 2023-09-06 15:59:36 +02:00
f3fbd5314a
Add test to NotificationMailer::postPersistComment 2023-09-06 15:47:45 +02:00
608663d25c
Fix path to comply with psr-4 2023-09-03 14:55:15 +02:00
2c52a5bffa
Fix tests 2023-09-01 16:10:04 +02:00
d8062be131
mark test as legacy 2023-09-01 11:08:13 +02:00
e72df84442
DX: rector corrections 2023-09-01 11:08:13 +02:00
d44f5d7af8
mark test as legacy 2023-09-01 10:53:53 +02:00
6f11dffcbd
Remove deprecation linked to kernel shutdown 2023-08-31 18:36:37 +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
1e353ed74b
Fix loading of random address reference in AddressToReferenceMatcherControllerTest.php 2023-08-25 18:26:32 +02:00
43ac6726aa
Fix selector button 2023-08-02 23:25:19 +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
b6a094aeee
force readonly properties on dummy class used in test 2023-07-28 01:33:00 +02:00
dd21694544
Fix RefreshAddressToGeographicalUnitMaterializedViewCronJobTest: use ClockInterface to handle properly now and use more random tests 2023-07-27 23:52:38 +02:00
5f6e506300
Fix: AuthorizationHelperTest: remove deprecated and deprecation of PrepareScopeTrait 2023-07-27 23:51:57 +02:00
9f63d9ed0f
Fix test on RefreshAddressToGeographicalUnitMaterializedViewCronJob
Alter the signature on run: add an empty array
2023-07-27 22:57:36 +02:00
97dad842ea
Fix test on DateNormalizer 2023-07-27 22:55:52 +02:00
da6f8511a8
Fix tests on ExportManager 2023-07-27 22:51:55 +02:00
9cdef5f951
Fix: remove data after executing CronJobDatabaseInteractionTest 2023-07-22 23:50:26 +02:00
df529be2ce
Fix: Add missing prophecy methods in CronManagerTest 2023-07-22 23:50:22 +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
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
b0fcffea2d
fixed: take into account the first iteration of the cronjob 2023-07-13 09:03:41 +02:00
a7842b2597
[Addresses] add a cronjob to collate addresses with reference 2023-07-12 18:00:29 +02:00
1552b3c9d7
[Addresses] create a service to collate addresses with the address reference 2023-07-12 17:30:46 +02:00
3f66e1a862
[cron-job] allow a cronjob to pass data from one execution to another
When a cronjob is executed, it may return an array of data.

This data will be passed as parameter on the next execution
2023-07-12 11:36:26 +02:00
efaa01f4f6
DX: rector apply rules 'symfony up to 4.4 2023-05-05 18:21:33 +02:00
6d63177ff4
apply rules rector up to php82 2023-05-01 21:39:45 +02:00
dde3002100
DX: apply rector rules up to php8.0 2023-04-28 22:30:33 +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
459b91001f
fix rector issues 2023-04-15 00:08:04 +02:00
19034ac1d8
Merge remote-tracking branch 'origin/master' into refactor-using-rector-202303 2023-04-15 00:07:09 +02:00
b0ac8ce5af
Merge remote-tracking branch 'origin/master' into track-address-reference-update 2023-04-12 09:45:19 +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
8177a0fcce
Feature: Provide api endpoint for reviewing addresses
Feature: show warning when address does not match the reference

Feature: [address] do update the address from address reference when clicked inside address details
2023-03-22 15:32:42 +01:00
71d0785ab4
Feature: add api endpoint for listing all geographical units covering an address 2023-03-22 15:32:40 +01:00
b740a88ae3
Feature: bootstrapping an app to show a modal for address details and showing it inside twig address's render box
Feature: showing map and link to external map, and address details inside address details modal

Feature: AddressDetailsMap show a warning if the address is incomplete
2023-03-22 15:32:40 +01:00
c56ae08fae
Feature: [address reference] write logic to match existing addresses with updates
Feature: [address reference] match addresses with reference after import

fix sql query for address reference matcher
2023-03-22 15:32:37 +01:00
c9fe5a393f
DX: [Address] fix inconsistencies between doctrine mapping and sql schema
DX: [Address] fix inconsistencies between doctrine mapping and sql schema

Fixed: Address vue module do now set empty value to empty string instead of null

DX: fixed AddressReferenceBaseImporterTest
2023-03-22 11:38:48 +01:00