Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up[Feature Request] Priority management between Default Data Providers #1641
Comments
Are you sure this is enough ? It appears to me that all useful data providers are instanciated, then passed to a |
You are right, would you have a better idea ? Maybe the best would be to be able to specify which resource depends on which |
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
likeAnd doctrine would have a priority of 0 or -1