api-platform / api-platform/core

Filter Only The Serializable Fields

Đang mở
#1,096 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Has a PR
Ngôn ngữ chính
PHP
Star
2.6k
Fork
980
Merge trung bình
2 ngày 5 giờ
Pull request đã merge (30 ngày)
48

Mô tả

Api Platform is the best API Framework Ever is used. It's great framework.

Recently, when we activate the filter feature without specific fields defined, for example
```
bisnis.filter.order_filter:
parent: 'api_platform.doctrine.orm.order_filter'
arguments: [ ~ ]
tags:
- { name: 'api_platform.filter', id: 'order.filter' }
```

The Api Platform (see Api Doc) processing all fields based on doctrine metadata even the fields is not displayed. Is good choice to filter only the fields that displayed by serialization not all fields.

Reference: https://github.com/api-platform/core/blob/master/src/Bridge/Doctrine/Orm/Filter/OrderFilter.php#L84

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.