api-platform / api-platform/core
[Feature Request] Priority management between Default Data Providers
未關閉
doctrine
Elasticsearch
- 主要語言
- PHP
- 星號
- 2.6k
- 分支
- 980
- 平均合併
- 2 天 2 小時
- 30 天內合併 PR
- 51
描述
**Description**
Using Doctrine & ElasticSearch Provider, I would like to prioritize those. For example, currently, if my ES is down, my doctrine entities can't be reached and I get a 500 with `No alive nodes found in your cluster`.
It could be fixed by adding a priority order in the default providers as it exists in custom ones => https://api-platform.com/docs/core/data-providers/#custom-collection-data-provider
**Example**
For example, it could be a priority in `app/config/packages/api_platform.yaml` like
```
[...]
elasticsearch:
priority: 2
```
And doctrine would have a priority of 0 or -1
貢獻指南
評估
這個 Issue 還沒有評估資料。