b9ae878791
Aggregators: Update test methods to static and return array
...
Modified aggregator test methods throughout the Chill project to be now static methods. Also updated yield construction to array returns for more standardised code.
2024-02-16 21:33:57 +01:00
35d55cced4
Update test methods to static in AbstractFilterTest
...
The methods getFormData() and getQueryBuilders() across multiple test classes have been updated to static methods. This refactoring is part of a broader effort to improve code structure and readability. A rector rule has been employed to assist in the systematic update of these existing methods.
2024-02-16 19:09:15 +01:00
37af488f69
Merge branch 'master' into upgrade-sf5
2024-02-12 21:50:34 +01:00
67c3de733f
Refactor ActivityReasonAggregator: can be applied also on export for Activities linked with accompanying period
...
This commit renames the ActivityReasonAggregator's namespace from PersonAggregators to Aggregator and modifies its methods. The join method in the query builder has been changed from innerJoin to leftJoin, 'group by' part is simplified, and the applyOn method now returns Declarations::ACTIVITY instead of Declarations::ACTIVITY_PERSON. Further modifications apply to the getFormDefaultData method and the corresponding test.
2024-02-07 16:47:33 +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
dab80a84d8
Merge branch '235-add-date-filter-course-by-activity' into 'master'
...
Add dates in the filter "filter course by activity type"
Closes #235
See merge request Chill-Projet/chill-bundles!632
2023-12-07 15:25:09 +00:00
fe54e51362
Add dates in the filter "filter course by activity type"
2023-12-04 18:17:00 +01:00
b17b2a8cfb
Export: add export "number of household associated with an activity"
2023-12-04 16:39:01 +01:00
af6bee2497
Export: add an export which count persons on activity
2023-11-15 13:25:08 +01:00
cbc83c0e63
Export: add grouping "group activity by person" (activites saved in person context)
2023-11-13 15:29:01 +01:00
27012d842d
Export: add an ActivityPresenceFilter
2023-11-13 15:29:01 +01:00
4112e59af4
Export: add an ActivityPresenceAggregator
2023-11-09 17:35:34 +01:00
bb1602934c
Fix "group activity by creator job" aggregator
2023-11-07 16:07:24 +01:00
83fe3ec3fc
Export: add a "filter activity by creator job" filter
2023-11-07 16:06:22 +01:00
6fd80f9f2e
[export] fix data type from form: either collection or array
2023-11-05 23:08:13 +01:00
461995b56b
Merge branch '172-missing-exports' into 'master'
...
Fix some issues with exports
Closes #172
See merge request Chill-Projet/chill-bundles!601
2023-10-24 13:47:30 +00:00
617d09ab8a
Merge branch '179-remove-filter-by-center-in-exports' into 'master'
...
Resolve "Export: permettre de ne pas filtrer les résultats par centre"
Closes #179
See merge request Chill-Projet/chill-bundles!599
2023-10-24 13:18:03 +00:00
7bff5ce39e
DX: rename UserScopeFilter to CreatorScopeFilter
2023-10-24 14:17:08 +02:00
a6e930958b
[export] create a parameter that will force to skip the filtering by center (ACL) when generating an export
2023-10-19 17:19:28 +02:00
981dc6a959
[export] add a filter and aggregator on accompanying periods: group by activity type (accompanying course having at least one activity from this type)
2023-10-19 10:33:56 +02:00
11fb9bcd0b
[export] add a filter and aggregator on activities: filter/group by persons taking part to the activity
2023-10-19 10:33:55 +02:00
bc2041cbdd
apply more cs rules for php-cs
2023-10-17 13:27:03 +02:00
63e9d1a96f
[export] add a filter and aggregator on activity: by creator job
2023-10-16 11:52:03 +02:00
b4e5618e00
fix phpunit tests errors
2023-10-04 10:06:46 +02:00
fa3fc2c781
[export] fix activity filters/aggregators + tests: 'at' based on activity date
2023-10-03 19:43:16 +02:00
65aa0a1588
Merge remote-tracking branch 'origin/master' into rector/rules-symfony
2023-09-27 15:25:29 +02:00
4e27d71bea
Re-associate activity exports and filters
...
Some filter can work on both exports and lists associated to persons and accompanyings periods. They are moved to a more common namespace.
The modifiers in list are also fixed to allow an association with these filters.
2023-09-26 17:59:04 +02:00
37c1dfb0ba
fix tests implementing AbstractAggregatorTest
2023-09-01 15:07:37 +02:00
a197a6b418
fix tests implementing AbstractFilterTest
2023-09-01 14:21:03 +02:00
c07cd2b715
Fixed: [export][activity] use createdBy property instead of user for
...
grouping or filtering by creator
2022-10-14 21:55:02 +02:00
36590e7810
fix cs: mismatch header and strict type declaration
2022-10-06 22:25:45 +02:00
9699e2304a
fix cs: declare type and license header mismatch
2022-10-06 22:25:43 +02:00
b394d7247d
fix cs: too much line before declaring strict type
2022-10-06 08:55:32 +02:00
67c3f3a840
fix cs with licencse header
2022-10-05 17:08:14 +02:00
a967e1ed17
fix cs
2022-10-05 15:23:28 +02:00
e737f20735
batch removing unused $request prophesise in Tests setup()
2022-09-29 20:46:18 +02:00
b7c2903815
keep prophecy when test get 'request_stack'
2022-09-29 20:46:18 +02:00
6bddd320fa
Add Activity Export/Export missing tests
2022-09-29 20:46:18 +02:00
f5fb721ddd
activity export export tests
2022-09-29 20:46:18 +02:00
2b8fe462ea
repair Activity Aggregator Tests
2022-09-29 20:46:18 +02:00
8d1160d093
delete duplicate AggregatorTest
2022-09-29 20:46:18 +02:00
37662a4187
batch replacing 'actacp' by 'acp'
2022-09-21 18:04:34 +02:00
3c8dbe56fc
exports: create new aggregator tests + minor corrections in aggregators
2022-09-21 14:31:46 +02:00
eb112b8a85
exports: remove duplicate test
...
cfr commit 18a6a5a7ebeefc5999d16f7a3edf9bf89ba8e9e8
2022-09-21 10:33:49 +02:00
390009b395
export: create new filter tests
2022-09-21 10:17:53 +02:00
b25a1c3cbb
correct import path with filter/aggr
2022-09-21 10:17:53 +02:00
Pol Dellaiera
0f31a49890
fix: Update namespace to prevent having issues with PSR4 autoloading.
2022-02-01 09:10:32 +01:00
Pol Dellaiera
70ca203e23
fix: Fix return types in tests.
2021-12-21 15:19:36 +01:00