27 Commits

Author SHA1 Message Date
9c6a3de0ff Allow to group exports 2019-06-18 21:01:32 +02:00
722274964c api for grouping centers, select centers as group in "pick centers" step
for exports
2019-01-28 15:21:31 +01:00
6ee7a834cb handle DirectExport in controller and export manager 2019-01-16 10:58:05 +01:00
6741eb949c rewrite export controller and manager
- upgrade to symfony 4 ;
- add support for directExportInterface
2019-01-15 20:23:06 +01:00
f937e9d12c adding formatter for list in spreadsheet (ods, xlsx) 2018-11-07 13:23:11 +01:00
c059fe8a95 add exportElementProvider to provide elements dynamically to export manager 2018-06-13 16:44:22 +02:00
587b248549 improve script for downloading exports 2018-06-12 17:58:02 +02:00
2cf948192c fix error with empty yield 2016-12-09 20:35:26 +01:00
9d18581db1 add an interface for export which are lists
Lists does not supports aggregators.

The export manager will filter the aggregators applying on the export
depending on the interface implemented by the export: if the export implements
`Export\ListInterface`, no aggregators will be returned for this export.
2016-12-09 19:52:54 +01:00
12dbb587df improve export to add filtering parameters on result
The csv formatter now add a message about filtering parameters.

The filterInterface has been adapted to render a message.
2016-12-01 22:29:41 +01:00
baba8dbe5f check that the export::getResult return an array
if the export does not return an array, and UnexpectedValueException is thrown
2016-05-25 10:56:37 +02:00
a182dcc1a1 allow exportInterface to return NativeQuery
ref #9
2016-04-25 21:57:23 +02:00
4bfe4b361f replacing the response of Export::getLabel by a Closure 2016-04-21 22:20:37 +02:00
e57b421aec handling form for exportInterface 2016-04-19 12:38:48 +02:00
f888b39cdb improve test, modify exportInterface, use constants for ExportType keys
- add a test for 'generate' ;
- the ExportType declare keys, and those keys are used in ExportManager;
- the export interface does not require the "has form" function, and
  export form is taken into account
2016-04-15 23:13:41 +02:00
bcdee0be94 bootstrap test for isGranted 2016-04-15 23:13:41 +02:00
a4fbf27519 fix bug when using isGrantedForElement with ModifierInstance with a Role 2016-04-15 23:13:41 +02:00
70806408fd rewrite interface and create first tests 2016-04-15 23:13:41 +02:00
df69448324 add acl for exports 2016-04-15 23:13:41 +02:00
8726f6faee make aggregators take role into accoutn 2016-04-15 23:13:41 +02:00
630be1d3d2 take into account all reachble centers by default for authorization 2016-04-15 23:13:41 +02:00
de27c50a5a begin to take ACL into account [WIP] [ci skip] 2016-04-15 23:13:41 +02:00
fa246b37b6 [wip] clean controller + column header [ci skip] 2016-04-15 23:13:41 +02:00
fa1be795ec add method helper on manager to simplify controller
The controller does not have to handle data of the form ExportType. The ExportManager now handles those data. This is supposed to limit the number of place where the form data are handled.
2016-04-15 23:13:40 +02:00
ce2119ee6f handle requests and form to build an export 2016-04-15 23:13:40 +02:00
e1a9ad1612 [wip] add different steps to handle request 2016-04-15 23:13:40 +02:00
b40b85527a create a first set of export framework
- create interfaces
- create an export manager
- add a compiler pass to gather services tagged for export
2016-04-15 23:13:40 +02:00