Added trace date filter
testing/ogcore-api/pipeline/head There was a failure building this commit Details

tls^2
Manuel Aranda Rosales 2025-05-20 16:25:54 +02:00
parent 5cf001f3e2
commit a3f271a9ae
2 changed files with 7 additions and 0 deletions

View File

@ -9,6 +9,8 @@ resources:
filters: filters:
- 'api_platform.filter.trace.order' - 'api_platform.filter.trace.order'
- 'api_platform.filter.trace.search' - 'api_platform.filter.trace.search'
- 'api_platform.filter.trace.date'
ApiPlatform\Metadata\Get: ApiPlatform\Metadata\Get:
provider: App\State\Provider\TraceProvider provider: App\State\Provider\TraceProvider

View File

@ -304,6 +304,11 @@ services:
$orderParameterName: 'order' $orderParameterName: 'order'
tags: [ 'api_platform.filter' ] tags: [ 'api_platform.filter' ]
api_platform.filter.trace.date:
parent: 'api_platform.doctrine.orm.date_filter'
arguments: [ { 'executedAt': ~, 'createdAt': ~ } ]
tags: [ 'api_platform.filter' ]
api_platform.filter.user.order: api_platform.filter.user.order:
parent: 'api_platform.doctrine.orm.order_filter' parent: 'api_platform.doctrine.orm.order_filter'
arguments: arguments: