api-platform / api-platform/core

[Feature Request] Priority management between Default Data Providers

未關閉
#8,006 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
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 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。