Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Various API Filters not showing in the UI

Đang mở
#626 1 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
react, typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Tái hiện vấn đề với repository cee-jourlly được liên kết bằng các lệnh Docker và Symfony được cung cấp, sau đó kiểm tra các điểm vào của giao diện lọc và sắp xếp HydraAdmin. Được xem là hoàn tất khi các thuộc tính lồng nhau của SearchFilter, OrderFilter và RangeFilter xuất hiện trong Add Filter và Active Filters, đồng thời việc sắp xếp vẫn giữ thuộc tính lồng nhau như order=roaster.name.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

API Platform version(s) affected: v4.0.7

Description
Many of the available Filters in api-platform/core seem to not be properly supported by the PWA.

In my example, the following SearchFilter and OrderFilter attributes with nested properties are configured for the Coffee entity:

enter image description here

The backend part works as expected, so I can order and search by the given nested properties on the API itself. Also when I manually edit the respective query params in the HydraAdmin URL, it properly shows the searched and ordered results.

Here using beans.type=/bean_types/{id}
enter image description here

And here using beans.type.name={name}
enter image description here

The actual problem seems to be in the HydraAdmin so that it does not offer the nested properties in the "Add Filter" section and also it does not show it under "Active Filters".

A similar but a bit different problem happens for the OrderFilter with nested properties: When I manually set it in the query params it works, but when clicking on the roaster-order it sends order=roaster instead of order=roaster.name

enter image description here

Another broken case is the RangeFilter.

enter image description here

It passes the filter properly to the API but does not show it under add filters or active filters.

enter image description here

How to reproduce
use this repository: https://github.com/zolex/cee-jourlly

docker compose up
docker compose exec php bin/console doctrine:database:create --no-interaction
docker compose exec php bin/console doctrine:migrations:migrate --no-interaction
docker compose exec php bin/console hautelook:fixtures:load --no-interaction
Ngôn ngữ chính
TypeScript
Star
516
Fork
134
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của api-platform/admin

Tất cả issue của api-platform/admin

Issue tương tự

Thêm issue về TypeScript

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.